aboutsummaryrefslogtreecommitdiffstats
path: root/audio/penguinsap
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2013-11-12 23:59:47 +0800
committerehaupt <ehaupt@FreeBSD.org>2013-11-12 23:59:47 +0800
commit4c3f3116c04db40c18380324c3368736e603f3da (patch)
tree6a527c95a79d232ebcb50746ac258d2c487b5fd1 /audio/penguinsap
parentfcb859477d7bd91a650f0dcb88c3ad3c72a838f2 (diff)
downloadfreebsd-ports-gnome-4c3f3116c04db40c18380324c3368736e603f3da.tar.gz
freebsd-ports-gnome-4c3f3116c04db40c18380324c3368736e603f3da.tar.zst
freebsd-ports-gnome-4c3f3116c04db40c18380324c3368736e603f3da.zip
Make use of compier USES macro to determine compiler type.
Diffstat (limited to 'audio/penguinsap')
-rw-r--r--audio/penguinsap/Makefile9
1 files changed, 2 insertions, 7 deletions
diff --git a/audio/penguinsap/Makefile b/audio/penguinsap/Makefile
index 507b4e09adc2..9501067e07cc 100644
--- a/audio/penguinsap/Makefile
+++ b/audio/penguinsap/Makefile
@@ -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>