]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
soxr: New package (0.1.3)
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 11 Nov 2018 16:21:01 +0000 (16:21 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 11 Nov 2018 16:21:01 +0000 (16:21 +0000)
The SoX Resampler library `libsoxr' performs one-dimensional sample-rate
conversion -- it may be used, for example, to resample PCM-encoded audio.
For higher-dimensional resampling, such as for visual-image processing, you
should look elsewhere.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/packages/soxr [new file with mode: 0644]
lfs/soxr [new file with mode: 0644]
make.sh

diff --git a/config/rootfiles/packages/soxr b/config/rootfiles/packages/soxr
new file mode 100644 (file)
index 0000000..2329a7c
--- /dev/null
@@ -0,0 +1,23 @@
+#usr/include/soxr-lsr.h
+#usr/include/soxr.h
+#usr/lib/libsoxr-lsr.so
+usr/lib/libsoxr-lsr.so.0
+usr/lib/libsoxr-lsr.so.0.1.9
+#usr/lib/libsoxr.so
+usr/lib/libsoxr.so.0
+usr/lib/libsoxr.so.0.1.2
+#usr/lib/pkgconfig/soxr-lsr.pc
+#usr/lib/pkgconfig/soxr.pc
+#usr/share/doc/libsoxr
+#usr/share/doc/libsoxr/LICENCE
+#usr/share/doc/libsoxr/NEWS
+#usr/share/doc/libsoxr/README
+#usr/share/doc/libsoxr/examples
+#usr/share/doc/libsoxr/examples/1-single-block.c
+#usr/share/doc/libsoxr/examples/1a-lsr.c
+#usr/share/doc/libsoxr/examples/2-stream.C
+#usr/share/doc/libsoxr/examples/3-options-input-fn.c
+#usr/share/doc/libsoxr/examples/4-split-channels.c
+#usr/share/doc/libsoxr/examples/5-variable-rate.c
+#usr/share/doc/libsoxr/examples/README
+#usr/share/doc/libsoxr/examples/examples-common.h
diff --git a/lfs/soxr b/lfs/soxr
new file mode 100644 (file)
index 0000000..261ab90
--- /dev/null
+++ b/lfs/soxr
@@ -0,0 +1,86 @@
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2018  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include Config
+
+VER        = 0.1.3
+
+THISAPP    = soxr-$(VER)
+DL_FILE    = $(THISAPP)-Source.tar.xz
+DL_FROM    = $(URL_IPFIRE)
+DIR_APP    = $(DIR_SRC)/$(THISAPP)-Source
+TARGET     = $(DIR_INFO)/$(THISAPP)
+PROG       = soxr
+PAK_VER    = 1
+
+DEPS       = ""
+
+###############################################################################
+# Top-level Rules
+###############################################################################
+
+objects = $(DL_FILE)
+
+$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
+
+$(DL_FILE)_MD5 = 3f16f4dcb35b471682d4321eda6f6c08
+
+install : $(TARGET)
+
+check : $(patsubst %,$(DIR_CHK)/%,$(objects))
+
+download :$(patsubst %,$(DIR_DL)/%,$(objects))
+
+md5 : $(subst %,%_MD5,$(objects))
+
+dist: 
+       @$(PAK)
+
+###############################################################################
+# Downloading, checking, md5sum
+###############################################################################
+
+$(patsubst %,$(DIR_CHK)/%,$(objects)) :
+       @$(CHECK)
+
+$(patsubst %,$(DIR_DL)/%,$(objects)) :
+       @$(LOAD)
+
+$(subst %,%_MD5,$(objects)) :
+       @$(MD5)
+
+###############################################################################
+# Installation Details
+###############################################################################
+
+$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
+       @$(PREBUILD)
+       @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
+       cd $(DIR_APP) && mkdir -p build
+       cd $(DIR_APP)/build && cmake -Wno-dev \
+               -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
+       cd $(DIR_APP)/build && make $(MAKETUNING)
+       cd $(DIR_APP)/build && make install
+       @rm -rf $(DIR_APP)
+       @$(POSTBUILD)
diff --git a/make.sh b/make.sh
index 7e6975299926a64554c3caa81ef0f0ae8d7d792a..7a053fd9c519e12f22eeffcf675adaea1dea327e 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -1372,6 +1372,7 @@ buildipfire() {
   lfsmake2 flac
   lfsmake2 lame
   lfsmake2 sox
+  lfsmake2 soxr
   lfsmake2 libshout
   lfsmake2 xvid
   lfsmake2 libmpeg2