aboutsummaryrefslogtreecommitdiffstats
path: root/devel/fb-adb
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2016-05-19 19:06:12 +0800
committermat <mat@FreeBSD.org>2016-05-19 19:06:12 +0800
commite9c317ffbac6a778828b3e70efdf887d9384e0c8 (patch)
tree48cfa028c7d1271e5d31fdf18a1edb70051071f2 /devel/fb-adb
parent7ebc8359e9ab0c7342b32b0d92e5c221c8371db4 (diff)
downloadfreebsd-ports-gnome-e9c317ffbac6a778828b3e70efdf887d9384e0c8.tar.gz
freebsd-ports-gnome-e9c317ffbac6a778828b3e70efdf887d9384e0c8.tar.zst
freebsd-ports-gnome-e9c317ffbac6a778828b3e70efdf887d9384e0c8.zip
Fixup the NDK distfile extraction, sometime, libarchive can't cope
with it. Reported by: jbeich Sponsored by: Absolight
Diffstat (limited to 'devel/fb-adb')
-rw-r--r--devel/fb-adb/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/devel/fb-adb/Makefile b/devel/fb-adb/Makefile
index 9835cfe9ba58..e5a000af46d9 100644
--- a/devel/fb-adb/Makefile
+++ b/devel/fb-adb/Makefile
@@ -56,16 +56,17 @@ WRKSRC_ndk= ${ANDROID_NDK}
.else
NDK_DISTFILES= ${DISTNAME_ndk}.bin:ndk
DISTNAME_ndk= android-ndk-r10e-linux-${LINUX_RPM_ARCH:C/i.86/x86/}
+EXTRACT_ONLY= ${DISTFILES:N${EXTRACT_ONLY_7z}*}
+EXTRACT_ONLY_7z= ${DISTNAME_ndk}.bin
WRKSRC_ndk= ${WRKDIR}/${DISTNAME_ndk:C/(-[^-]+){2}$//}
.endif
NDK_BUILD_DEPENDS= ${LINUX_BASE_PORT}
-NDK_USES= 7z:partial${NDK_7z_ARGS_${LINUX_RPM_ARCH}}
+NDK_USES= 7z:partial,p7zip
NDK_USE= LINUX=yes # build
NDK_SHELL= ${SETENV} UNAME_s=Linux UNAME_m=${LINUX_RPM_ARCH} ${SH}
NDK_CONFIGURE_ENV= ANDROID_NDK="${WRKSRC_ndk}" \
ANDROID_NDK_SHELL="${NDK_SHELL}" \
NDK_TMPDIR="${WRKDIR}"
-NDK_7z_ARGS_x86_64= ,p7zip # libarchive fails to read
NDK_BUILD_DEPENDS_OFF= ${LOCALBASE}/android/ARMv7/bin/arm-aux-linux-androideabi-gcc:lang/gnatdroid-armv7 \
${LOCALBASE}/android-x86/x86_32/bin/i686-aux-linux-android-gcc:lang/gnatdroid-x86
.if defined(.PARSEDIR)