aboutsummaryrefslogtreecommitdiffstats
path: root/testing/forked-daapd
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2015-03-31 22:55:56 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2015-03-31 22:58:09 +0000
commit3673cacf6d5ded37782e79be8de1adae64338a70 (patch)
tree548ed9710fdefa30f7b8378d92f371b4bc52ad6b /testing/forked-daapd
parent796bac11add9497785854e9884d80e65289be556 (diff)
downloadaports-3673cacf6d5ded37782e79be8de1adae64338a70.tar.bz2
aports-3673cacf6d5ded37782e79be8de1adae64338a70.tar.xz
testing/forked-daapd: new aport
Diffstat (limited to 'testing/forked-daapd')
-rw-r--r--testing/forked-daapd/APKBUILD67
1 files changed, 67 insertions, 0 deletions
diff --git a/testing/forked-daapd/APKBUILD b/testing/forked-daapd/APKBUILD
new file mode 100644
index 0000000000..18c544f821
--- /dev/null
+++ b/testing/forked-daapd/APKBUILD
@@ -0,0 +1,67 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=forked-daapd
+pkgver=22.3
+pkgrel=0
+pkgdesc="an updated version of the original forked-daapd"
+url="https://github.com/ejurgensen/forked-daapd"
+arch="all"
+license="custom"
+depends=""
+depends_dev="libgcrypt-dev ffmpeg-dev flac-dev avahi-dev gettext-dev alsa-lib-dev
+ sqlite-dev libantlr3c-dev libunistring-dev confuse-dev ffmpeg-dev
+ mxml-dev libevent-dev libogg-dev taglib-dev libavl-dev libplist-dev"
+makedepends="$depends_dev autoconf automake libtool openjdk7-jre-base gperf bash bsd-compat-headers"
+install=""
+subpackages="$pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/ejurgensen/forked-daapd/archive/$pkgver.tar.gz
+ http://www.antlr3.org/download/antlr-3.4-complete.jar"
+
+_builddir="$srcdir/$pkgname-$pkgver"
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ OLD_PATH=$PATH
+ export PATH="$srcdir:$PATH"
+ echo "#!/bin/bash" > $srcdir/antlr3
+ echo "exec java -cp $srcdir/antlr-3.4-complete.jar org.antlr.Tool \"\$@\"" >> $srcdir/antlr3
+ chmod a+x $srcdir/antlr3
+ autoreconf -i -v || return 1
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --enable-flac \
+ --enable-musepack \
+ --enable-itunes \
+ || return 1
+ make || return 1
+ export PATH=$OLD_PATH
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la \
+ "$pkgdir"/usr/lib/*/*.la
+}
+
+md5sums="f1862aa6e42dd3a432925cff5de5caed forked-daapd-22.3.tar.gz
+1b91dea1c7d480b3223f7c8a9aa0e172 antlr-3.4-complete.jar"
+sha256sums="0aaa5995d1bd10343890634bb0e3176b781175125a98f77d7f182402c8133c91 forked-daapd-22.3.tar.gz
+9d3e866b610460664522520f73b81777b5626fb0a282a5952b9800b751550bf7 antlr-3.4-complete.jar"
+sha512sums="b109b057c3b79054d52a9ab2d5aad4bc00dc828bba61e70bc405f526bf75fb6b3c5f4aca0981b332495aa9ef97731f84f440470edb9f21123e0e500091abc7a8 forked-daapd-22.3.tar.gz
+04be4dfba3a21f3ab9d9e439a64958bd8e844a9f151b798383bd9e0dd6ebc416783ae7cb1d1dbb27fb7288ab9756b13b8338cdb8ceb41a10949c852ad45ab1f2 antlr-3.4-complete.jar"