svn commit: r333582 - head/audio/xmms-sapplug
Emanuel Haupt
ehaupt at FreeBSD.org
Tue Nov 12 15:52:20 UTC 2013
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>
More information about the svn-ports-all
mailing list