svn commit: r506431 - head/astro/opencpn
Mark Linimon
linimon at FreeBSD.org
Fri Jul 12 02:14:25 UTC 2019
Author: linimon
Date: Fri Jul 12 02:14:23 2019
New Revision: 506431
URL: https://svnweb.freebsd.org/changeset/ports/506431
Log:
Correct the test for whether to disable sse extensions to x86-only.
While here, standardize on compiler:c++11-lang rather than -lib;
these days, they are equivalent.
Approved by: portmgr (tier-2 blanket)
Modified:
head/astro/opencpn/Makefile
Modified: head/astro/opencpn/Makefile
==============================================================================
--- head/astro/opencpn/Makefile Fri Jul 12 01:57:57 2019 (r506430)
+++ head/astro/opencpn/Makefile Fri Jul 12 02:14:23 2019 (r506431)
@@ -22,7 +22,7 @@ USE_GITHUB= yes
GH_ACCOUNT= ${GH_PROJECT}
GH_PROJECT= OpenCPN
-USES= cmake compiler:c++11-lib gettext-tools gl gnome localbase
+USES= cmake compiler:c++11-lang gettext-tools gl gnome localbase
USE_CXXSTD= c++11
USE_GL= gl
USE_GNOME= cairo gdkpixbuf2 gtk20
@@ -36,14 +36,16 @@ LDFLAGS+= -Wl,--as-needed # ICE, SM, Xext
OPTIONS_DEFINE= DOCS
+.include <bsd.port.pre.mk>
+
post-patch:
@${REINPLACE_CMD} -e 's,/usr/local,${PREFIX},' \
${WRKSRC}/src/mygdal/cpl_csv.cpp \
${WRKSRC}/src/mygdal/cpl_findfile.cpp \
${WRKSRC}/data/doc/help_en_US.html
-.if exists(/usr/lib/libstdc++.so)
+.if ${ARCH} != amd64 && ${ARCH} != i386
@${REINPLACE_CMD} -e '/-msse/d' -e '/-mssse3/d' \
-e '/-mavx2/d' ${WRKSRC}/CMakeLists.txt
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
More information about the svn-ports-all
mailing list