Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Nov 2013 15:52:20 +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: r333582 - head/audio/xmms-sapplug
Message-ID:  <201311121552.rACFqK8B099600@svn.freebsd.org>

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

Log:
  - Support staging
  - Make use of compier USES macro to determine compiler type

Modified:
  head/audio/xmms-sapplug/Makefile

Modified: head/audio/xmms-sapplug/Makefile
==============================================================================
--- head/audio/xmms-sapplug/Makefile	Tue Nov 12 15:43:31 2013	(r333581)
+++ head/audio/xmms-sapplug/Makefile	Tue Nov 12 15:52:20 2013	(r333582)
@@ -16,8 +16,7 @@ LICENSE=	GPLv2
 BUILD_DEPENDS=	xmms:${PORTSDIR}/multimedia/xmms
 RUN_DEPENDS=	xmms:${PORTSDIR}/multimedia/xmms
 
-USES=		gmake
-NO_STAGE=	yes
+USES=		gmake compiler
 USE_GNOME=	glib12
 USE_LDCONFIG=	yes
 MAKE_JOBS_UNSAFE=	yes
@@ -28,13 +27,10 @@ PLIST_FILES=	lib/xmms/Input/libsap.so
 
 OPTIONS_DEFINE=	OPTIMIZED_CFLAGS
 
-.include <bsd.port.options.mk>
-
-_CLANG!=	${CXX} --version | ${HEAD} -1 | ${SED} -e 's/.*clang version \([0-9]\)\.\([0-9]\).*/\1\2/'
-ISCLANG=	${_CLANG:M[34][0-9]}
+.include <bsd.port.pre.mk>
 
 # clang can build this without -fno-exceptions
-.if empty(ISCLANG)
+.if ${COMPILER_TYPE} == "gcc"
 CXXFLAGS+=	-fno-exceptions
 .endif
 
@@ -56,9 +52,8 @@ post-patch:
 		${WRKSRC}/saplib/Makefile
 
 do-install:
-	${INSTALL_DATA} ${WRKSRC}/libsap.so ${PREFIX}/lib/xmms/Input/libsap.so
-
-post-install:
-	@${CAT} ${PKGMESSAGE}
+	${MKDIR} ${STAGEDIR}${PREFIX}/lib/xmms/Input
+	${INSTALL_DATA} ${WRKSRC}/libsap.so \
+		${STAGEDIR}${PREFIX}/lib/xmms/Input/libsap.so
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>



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