Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Nov 2013 15:59:48 +0000 (UTC)
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r333583 - head/audio/penguinsap
Message-ID:  <201311121559.rACFxmXv000554@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ehaupt
Date: Tue Nov 12 15:59:47 2013
New Revision: 333583
URL: http://svnweb.freebsd.org/changeset/ports/333583

Log:
  Make use of compier USES macro to determine compiler type.

Modified:
  head/audio/penguinsap/Makefile

Modified: head/audio/penguinsap/Makefile
==============================================================================
--- head/audio/penguinsap/Makefile	Tue Nov 12 15:52:20 2013	(r333582)
+++ head/audio/penguinsap/Makefile	Tue Nov 12 15:59:47 2013	(r333583)
@@ -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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311121559.rACFxmXv000554>