svn commit: r458512 - head/sysutils/ipdbtools

Alexey Dokuchaev danfe at FreeBSD.org
Tue Jan 9 07:28:23 UTC 2018


Author: danfe
Date: Tue Jan  9 07:28:22 2018
New Revision: 458512
URL: https://svnweb.freebsd.org/changeset/ports/458512

Log:
  Only pass `-mssse3' on amd64 where it is required, generally respect CFLAGS,
  and thus unbreak the port on some tier-2 architectures.
  
  Tested on:	i386, amd64, powerpc (gcc49), sparc64 (gcc47)

Modified:
  head/sysutils/ipdbtools/Makefile

Modified: head/sysutils/ipdbtools/Makefile
==============================================================================
--- head/sysutils/ipdbtools/Makefile	Tue Jan  9 07:25:51 2018	(r458511)
+++ head/sysutils/ipdbtools/Makefile	Tue Jan  9 07:28:22 2018	(r458512)
@@ -14,11 +14,11 @@ LICENSE=	BSD2CLAUSE
 BROKEN_aarch64=		fails to compile: error: invalid conversion between vector type and integer type
 BROKEN_armv6=		fails to compile: error: invalid conversion between vector type and integer type
 BROKEN_armv7=		fails to compile: error: invalid conversion between vector type and integer type
-BROKEN_powerpc64=	fails to compile: error: unrecognized command line option -mssse3
-BROKEN_sparc64=		fails to compile: error: unrecognized command line option -mssse3
 
 USES=		tar:bzip2 compiler:c11
 
+CFLAGS_amd64=	-mssse3
+
 PLIST_FILES=	bin/ipup \
 		bin/ipdb \
 		bin/ipdb-update.sh \
@@ -26,5 +26,10 @@ PLIST_FILES=	bin/ipup \
 		man/man1/ipup.1.gz \
 		man/man1/ipdb.1.gz \
 		man/man1/ipdb-update.sh.1.gz
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|-g0 -Ofast -mssse3|${CFLAGS}|' \
+		${WRKSRC}/Makefile
+	@${REINPLACE_CMD} -e '/tmmintrin\.h/d' ${WRKSRC}/store.c
 
 .include <bsd.port.mk>


More information about the svn-ports-head mailing list