summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-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 fb7e581d2..94d6552c4 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
}