aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Demelier <markand@malikania.fr>2020-04-17 23:14:29 +0200
committerRasmus Thomsen <oss@cogitri.dev>2020-05-27 15:55:46 +0000
commit99407bb3d36aade42d606c65101b9af627cce3fd (patch)
treefc4457643385587674d07b444ec5d611f90f119d
parentd378948d72aafb68e0f6ee3abbadfbd33ceda2fa (diff)
downloadaports-99407bb3d36aade42d606c65101b9af627cce3fd.tar.gz
aports-99407bb3d36aade42d606c65101b9af627cce3fd.tar.bz2
aports-99407bb3d36aade42d606c65101b9af627cce3fd.tar.xz
testing/zita-resampler: new aport
https://kokkinizita.linuxaudio.org/linuxaudio library for resampling audio signals
-rw-r--r--testing/zita-resampler/APKBUILD30
-rw-r--r--testing/zita-resampler/patch-Makefile.patch35
2 files changed, 65 insertions, 0 deletions
diff --git a/testing/zita-resampler/APKBUILD b/testing/zita-resampler/APKBUILD
new file mode 100644
index 0000000000..2a641d7091
--- /dev/null
+++ b/testing/zita-resampler/APKBUILD
@@ -0,0 +1,30 @@
+# Contributor: David Demelier <markand@malikania.fr>
+# Maintainer: David Demelier <markand@malikania.fr>
+pkgname=zita-resampler
+pkgver=1.6.2
+pkgrel=0
+pkgdesc="library for resampling audio signals"
+url="https://kokkinizita.linuxaudio.org/linuxaudio"
+arch="all"
+license="GPL-3.0-only"
+makedepends="libsndfile-dev"
+subpackages="$pkgname-dev $pkgname-doc"
+source="https://kokkinizita.linuxaudio.org/linuxaudio/downloads/zita-resampler-$pkgver.tar.bz2
+ patch-Makefile.patch"
+options="!check" # No tests
+
+build() {
+ make -C source
+ # Poorly written makefile that may only build apps if the library
+ # is installed system wide. Fake it locally.
+ ln -sv lib$pkgname.so.$pkgver source/lib$pkgname.so
+ make CXXFLAGS="-I../source $CXXFLAGS" LDFLAGS="-L../source $LDFLAGS" -C apps
+}
+
+package() {
+ make PREFIX=/usr LIBDIR=/usr/lib DESTDIR="$pkgdir" -C source install
+ make PREFIX=/usr LIBDIR=/usr/lib DESTDIR="$pkgdir" -C apps install
+}
+
+sha512sums="d547419dd222c8a399d8f196efa1ec88a3f781275b696ae2fe1bb6e2fc329285affb8aace85972c304ad256becc4a155534dd5ef4ce3c57cbc9dcca0122b670c zita-resampler-1.6.2.tar.bz2
+2b69d34c768465ac92a3f6e3fbccb89099b221c097c22323f10b6db0a7d8941d805dc1869f51d172bfe0e86ce53e0f112c5cce9647f24795c1faa09573b1531d patch-Makefile.patch"
diff --git a/testing/zita-resampler/patch-Makefile.patch b/testing/zita-resampler/patch-Makefile.patch
new file mode 100644
index 0000000000..a7b0925575
--- /dev/null
+++ b/testing/zita-resampler/patch-Makefile.patch
@@ -0,0 +1,35 @@
+Calls ldconfig which is not available and remove -march=native because it's not
+portable across platforms.
+
+Upstream: not yet, in touch with the author.
+--- a/apps/Makefile 2020-04-17 19:56:50.213695405 +0200
++++ b/apps/Makefile 2020-04-17 19:56:59.230416753 +0200
+@@ -55,8 +55,8 @@
+
+
+ install: all
+- install -d $(BINDIR)
+- install -d $(MANDIR)
++ install -d $(DESTDIR)$(BINDIR)
++ install -d $(DESTDIR)$(MANDIR)
+ install -m 755 zresample $(DESTDIR)$(BINDIR)
+ install -m 755 zretune $(DESTDIR)$(BINDIR)
+ install -m 644 zresample.1.gz $(DESTDIR)$(MANDIR)
+--- a/source/Makefile 2020-04-19 10:26:26.758860827 +0200
++++ b/source/Makefile 2020-04-19 10:26:38.365583098 +0200
+@@ -33,7 +33,6 @@
+
+ CPPFLAGS += -I. -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
+ CXXFLAGS += -Wall -fPIC -O2 -ffast-math
+-CXXFLAGS += -march=native
+ LDFLAGS +=
+ LDLIBS +=
+
+@@ -58,7 +57,6 @@
+ install -d $(DESTDIR)$(LIBDIR)
+ install -m 644 $(ZITA-RESAMPLER_H) $(DESTDIR)$(INCDIR)/zita-resampler
+ install -m 755 $(ZITA-RESAMPLER_MIN) $(DESTDIR)$(LIBDIR)
+- ldconfig
+ ln -sf $(ZITA-RESAMPLER_MIN) $(DESTDIR)$(LIBDIR)/$(ZITA-RESAMPLER_SO)
+
+ uninstall: