Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jan 2018 07:28:22 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r458512 - head/sysutils/ipdbtools
Message-ID:  <201801090728.w097SMlJ054172@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



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