Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jan 2017 09:03:55 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r432101 - in head/multimedia/libvpx: . files
Message-ID:  <201701220903.v0M93t4A026615@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Sun Jan 22 09:03:55 2017
New Revision: 432101
URL: https://svnweb.freebsd.org/changeset/ports/432101

Log:
  multimedia/libvpx: grab and drop architecture whitelist
  
  PR:		216191
  Approved by:	ashish (previous maintainer)
  MFH:		2017Q1

Deleted:
  head/multimedia/libvpx/files/extra-patch-build_make_Makefile
  head/multimedia/libvpx/files/patch-configure
Modified:
  head/multimedia/libvpx/Makefile   (contents, props changed)

Modified: head/multimedia/libvpx/Makefile
==============================================================================
--- head/multimedia/libvpx/Makefile	Sun Jan 22 09:01:20 2017	(r432100)
+++ head/multimedia/libvpx/Makefile	Sun Jan 22 09:03:55 2017	(r432101)
@@ -6,7 +6,7 @@ DISTVERSIONPREFIX=	v
 DISTVERSION=	1.6.1
 CATEGORIES=	multimedia
 
-MAINTAINER=	ashish@FreeBSD.org
+MAINTAINER=	jbeich@FreeBSD.org
 COMMENT=	VP8/VP9 Codec SDK
 
 LICENSE=	BSD3CLAUSE
@@ -34,7 +34,17 @@ SHARED_DESC=	Enable shared-library suppo
 SIZE_LIMIT_DESC=Maximum size allowed by decoder: ${SIZE_LIMIT}
 
 ALL_TARGET=
-CONFIGURE_ARGS+=--prefix=${PREFIX} \
+CONFIGURE_ENV=	ASFLAGS="${ASFLAGS}"
+# Only explicitly list ARCHs with SIMD optimizations
+CONFIGURE_ARGS_aarch64=	--target=arm64-linux-gcc
+CONFIGURE_ARGS_amd64=	--target=x86_64-linux-gcc
+CONFIGURE_ARGS_i386=	--target=x86-linux-gcc
+.if ${CFLAGS:M-march=armv[78]*}
+CONFIGURE_ARGS+=	--target=armv7-linux-gcc
+ASFLAGS+=		-meabi=5
+.endif
+CONFIGURE_ARGS+=${CONFIGURE_ARGS_${ARCH}} \
+		--prefix=${PREFIX} \
 		--disable-install-docs \
 		--disable-install-srcs \
 		--enable-pic \
@@ -57,29 +67,6 @@ THREADS_CONFIGURE_OFF=	--disable-multith
 
 SHEBANG_FILES=	build/make/ads2gas.pl
 
-.include <bsd.port.options.mk>
-
-.if ${ARCH} == "amd64"
-CONFIGURE_ARGS+=	--target=x86_64-linux-gcc
-.elif ${ARCH} == "i386"
-CONFIGURE_ARGS+=	--target=x86-linux-gcc
-.elif ${ARCH} == "ia64"
-CONFIGURE_ARGS+=	--target=ia64-linux-gcc
-.elif ${ARCH} == "powerpc"
-CONFIGURE_ARGS+=	--target=ppc32-linux-gcc
-.elif ${ARCH} == "powerpc64"
-CONFIGURE_ARGS+=	--target=ppc64-linux-gcc
-.elif ${ARCH} == "sparc64"
-CONFIGURE_ARGS+=	--target=sparc64-linux-gcc
-.elif ${ARCH} == "aarch64"
-CONFIGURE_ARGS+=	--target=arm64-linux-gcc
-.elif ${ARCH} == "armv6"
-CONFIGURE_ARGS+=	--target=armv6-linux-gcc --cpu=armv6
-EXTRA_PATCHES+=	${FILESDIR}/extra-patch-build_make_Makefile
-.else
-IGNORE=	no support for ${ARCH} the moment. testing/patches are welcome
-.endif
-
 post-patch:
 	@${REINPLACE_CMD} 's|\(link_with_cc\)=gcc|\1=$${CC}|' \
 		${WRKSRC}/build/make/configure.sh



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701220903.v0M93t4A026615>