GCC architectures don't support SSE, SSSE or AVX. Don't use them on GCC-based

architectures to fix build.

While here, set USES= gl gnome as per modern standards, and pet portlint.

PR:		235294
Submitted by:	Piotr Kubaj
Approved by:	portmgr (tier-2 blanket)
This commit is contained in:
Mark Linimon 2019-02-18 01:41:18 +00:00
parent 7a1e322eb4
commit 57d5efa3aa
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=493234

View File

@ -11,6 +11,8 @@ COMMENT= Concise ChartPlotter/Navigator
LICENSE= GPLv2+
BROKEN_aarch64= Fails to compile: use of undeclared identifier rand
LIB_DEPENDS= libportaudio.so:audio/portaudio \
libcurl.so:ftp/curl \
libexpat.so:textproc/expat2 \
@ -20,7 +22,7 @@ USE_GITHUB= yes
GH_ACCOUNT= ${GH_PROJECT}
GH_PROJECT= OpenCPN
USES= cmake compiler:c++11-lib gettext-tools localbase
USES= cmake compiler:c++11-lib gettext-tools gl gnome localbase
USE_CXXSTD= c++11
USE_GL= gl
USE_GNOME= cairo gdkpixbuf2 gtk20
@ -32,8 +34,6 @@ CMAKE_ARGS= -DBUNDLE_DOCS=ON -DBUNDLE_GSHHS=CRUDE -DBUNDLE_TCDATA=ON
LDFLAGS+= -Wl,-E # plugins
LDFLAGS+= -Wl,--as-needed # ICE, SM, Xext
BROKEN_aarch64= Fails to compile: use of undeclared identifier rand
OPTIONS_DEFINE= DOCS
post-patch:
@ -41,5 +41,9 @@ post-patch:
${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)
@${REINPLACE_CMD} -e '/-msse/d' -e '/-mssse3/d' \
-e '/-mavx2/d' ${WRKSRC}/CMakeLists.txt
.endif
.include <bsd.port.mk>