From: Michael Tremer Date: Sun, 11 Nov 2018 16:21:01 +0000 (+0000) Subject: soxr: New package (0.1.3) X-Git-Tag: v2.21-core126~57 X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=commitdiff_plain;h=41f8d64284813e8f7144ac34a28e430a4f3d42f6 soxr: New package (0.1.3) 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 --- diff --git a/config/rootfiles/packages/soxr b/config/rootfiles/packages/soxr new file mode 100644 index 0000000000..2329a7c12f --- /dev/null +++ b/config/rootfiles/packages/soxr @@ -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 index 0000000000..261ab90814 --- /dev/null +++ b/lfs/soxr @@ -0,0 +1,86 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007-2018 IPFire Team # +# # +# 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 . # +# # +############################################################################### + +############################################################################### +# 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 7e69752999..7a053fd9c5 100755 --- 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