Make use of compier USES macro to determine compiler type.

This commit is contained in:
Emanuel Haupt 2013-11-12 15:59:47 +00:00
parent e3608906ab
commit 605c98a482
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=333583

View file

@ -9,6 +9,7 @@ MASTER_SITES= CRITICAL
MAINTAINER= ehaupt@FreeBSD.org MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Command-line Atari(TM) .sap player COMMENT= Command-line Atari(TM) .sap player
USES= compiler
USE_DOS2UNIX= yes USE_DOS2UNIX= yes
SOURCES= sapPokey pokey1 sapCpu sapEngine main pokey0 SOURCES= sapPokey pokey1 sapCpu sapEngine main pokey0
@ -22,11 +23,8 @@ PLIST_FILES= bin/sap
.include <bsd.port.pre.mk> .include <bsd.port.pre.mk>
_CLANG!= ${CXX} --version | ${HEAD} -1 | ${SED} -e 's/.*clang version \([0-9]\)\.\([0-9]\).*/\1\2/'
ISCLANG= ${_CLANG:M[34][0-9]}
# clang can build this without -fno-exceptions # clang can build this without -fno-exceptions
.if empty(ISCLANG) .if ${COMPILER_TYPE} == "gcc"
CXXFLAGS+= -fno-exceptions CXXFLAGS+= -fno-exceptions
.endif .endif
@ -46,7 +44,4 @@ do-build:
do-install: do-install:
${INSTALL_PROGRAM} ${WRKSRC}/sap ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/sap ${STAGEDIR}${PREFIX}/bin
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk> .include <bsd.port.post.mk>