mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Make use of compier USES macro to determine compiler type.
This commit is contained in:
parent
e3608906ab
commit
605c98a482
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=333583
1 changed files with 2 additions and 7 deletions
|
@ -9,6 +9,7 @@ MASTER_SITES= CRITICAL
|
|||
MAINTAINER= ehaupt@FreeBSD.org
|
||||
COMMENT= Command-line Atari(TM) .sap player
|
||||
|
||||
USES= compiler
|
||||
USE_DOS2UNIX= yes
|
||||
|
||||
SOURCES= sapPokey pokey1 sapCpu sapEngine main pokey0
|
||||
|
@ -22,11 +23,8 @@ PLIST_FILES= bin/sap
|
|||
|
||||
.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
|
||||
.if empty(ISCLANG)
|
||||
.if ${COMPILER_TYPE} == "gcc"
|
||||
CXXFLAGS+= -fno-exceptions
|
||||
.endif
|
||||
|
||||
|
@ -46,7 +44,4 @@ do-build:
|
|||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/sap ${STAGEDIR}${PREFIX}/bin
|
||||
|
||||
post-install:
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
Loading…
Add table
Reference in a new issue