aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2013-01-04 19:44:29 +0100
committerCarlo Landmeter <clandmeter@gmail.com>2013-01-04 19:44:29 +0100
commit2b4596927374a42b0041927d2534876d0bfc2cd6 (patch)
tree089474f2b4d97875b92381c6bdd2908cb1c29a18
parent3c92102a129acbc4520b824347fa5d61a1606207 (diff)
downloadaports-2b4596927374a42b0041927d2534876d0bfc2cd6.tar.bz2
aports-2b4596927374a42b0041927d2534876d0bfc2cd6.tar.xz
main/v4l-utils: fix build on eglibc
-rw-r--r--main/v4l-utils/APKBUILD22
1 files changed, 15 insertions, 7 deletions
diff --git a/main/v4l-utils/APKBUILD b/main/v4l-utils/APKBUILD
index fb7e581d2f..94d6552c48 100644
--- a/main/v4l-utils/APKBUILD
+++ b/main/v4l-utils/APKBUILD
@@ -20,17 +20,25 @@ _builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
- export ARGP_LIBS="-largp"
- export ICONV_LIBS="-liconv"
- sed -i 's|CFLAGS :=|CFLAGS ?=|' Make.rules
- sed -ie 's/\$\^/$\^\ \$(ARGP_LIBS)/' utils/decode_tm6000/Makefile
- sed -ie 's/\$\^/$\^\ \$(ARGP_LIBS)/' utils/keytable/Makefile
- sed -ie 's/\$\^/$\^\ \$(ARGP_LIBS)/' utils/v4l2-sysfs-path/Makefile
+
+ sed -i 's|CFLAGS :=|CFLAGS ?=|' \
+ Make.rules || return 1
+
+ if [ "$ALPINE_LIBC" != "eglibc" ]; then
+ export ARGP_LIBS="-largp"
+ export ICONV_LIBS="-liconv"
+ sed -ie 's/\$\^/$\^\ \$(ARGP_LIBS)/' \
+ utils/decode_tm6000/Makefile || return 1
+ sed -ie 's/\$\^/$\^\ \$(ARGP_LIBS)/' \
+ utils/keytable/Makefile || return 1
+ sed -ie 's/\$\^/$\^\ \$(ARGP_LIBS)/' \
+ utils/v4l2-sysfs-path/Makefile || return 1
+ export LDLIBS="$ARGP_LIBS $ICONV_LIBS"
+ fi
}
build() {
cd "$_builddir"
- export LDLIBS="$ARGP_LIBS $ICONV_LIBS"
make PREFIX="/usr" || return 1
}