From 2b4596927374a42b0041927d2534876d0bfc2cd6 Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Fri, 4 Jan 2013 19:44:29 +0100 Subject: main/v4l-utils: fix build on eglibc --- main/v4l-utils/APKBUILD | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'main/v4l-utils') 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 } -- cgit v1.2.3