Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Oct 2013 23:33:14 +0000 (UTC)
From:      "Jason E. Hale" <jhale@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r332299 - head/audio/xmmsctrl
Message-ID:  <201310312333.r9VNXE3a010969@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhale
Date: Thu Oct 31 23:33:13 2013
New Revision: 332299
URL: http://svnweb.freebsd.org/changeset/ports/332299

Log:
  - Fix build with clang
  - Support staging
  - Make installation of examples optional

Modified:
  head/audio/xmmsctrl/Makefile
  head/audio/xmmsctrl/pkg-plist   (contents, props changed)

Modified: head/audio/xmmsctrl/Makefile
==============================================================================
--- head/audio/xmmsctrl/Makefile	Thu Oct 31 23:33:06 2013	(r332298)
+++ head/audio/xmmsctrl/Makefile	Thu Oct 31 23:33:13 2013	(r332299)
@@ -18,24 +18,22 @@ BUILD_DEPENDS=	xmms:${PORTSDIR}/multimed
 RUN_DEPENDS=	xmms:${PORTSDIR}/multimedia/xmms
 
 USES=		gmake
-NO_STAGE=	yes
+USE_CSTD=	gnu89
 MAKE_ENV=	PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
 		PTHREAD_LIBS="${PTHREAD_LIBS}"
 
 PORTDOCS=	Changelog README
 
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE=	DOCS EXAMPLES
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/xmmsctrl ${PREFIX}/bin
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
-.endif
-	${MKDIR} ${EXAMPLESDIR}
+	${INSTALL_PROGRAM} ${WRKSRC}/xmmsctrl ${STAGEDIR}${PREFIX}/bin
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	cd ${WRKSRC}/samples && \
 		${INSTALL_DATA} emacs-transcriber twmrc_bindings \
-			${EXAMPLESDIR} && \
-		${INSTALL_SCRIPT} *.sh ${EXAMPLESDIR}
+			${STAGEDIR}${EXAMPLESDIR} && \
+		${INSTALL_SCRIPT} *.sh ${STAGEDIR}${EXAMPLESDIR}
 
 .include <bsd.port.mk>

Modified: head/audio/xmmsctrl/pkg-plist
==============================================================================
--- head/audio/xmmsctrl/pkg-plist	Thu Oct 31 23:33:06 2013	(r332298)
+++ head/audio/xmmsctrl/pkg-plist	Thu Oct 31 23:33:13 2013	(r332299)
@@ -1,13 +1,13 @@
 bin/xmmsctrl
-%%EXAMPLESDIR%%/emacs-transcriber
-%%EXAMPLESDIR%%/pause_stop_play.sh
-%%EXAMPLESDIR%%/play_pause.sh
-%%EXAMPLESDIR%%/play_unpause_next.sh
-%%EXAMPLESDIR%%/playlist2html.sh
-%%EXAMPLESDIR%%/twmrc_bindings
-%%EXAMPLESDIR%%/win_playlist.sh
-%%EXAMPLESDIR%%/window_shown.sh
-%%EXAMPLESDIR%%/xmmsnext.sh
-%%EXAMPLESDIR%%/xmmsprev.sh
-%%EXAMPLESDIR%%/xmmsswitch.sh
-@dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/emacs-transcriber
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pause_stop_play.sh
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/play_pause.sh
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/play_unpause_next.sh
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/playlist2html.sh
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/twmrc_bindings
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/win_playlist.sh
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/window_shown.sh
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/xmmsnext.sh
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/xmmsprev.sh
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/xmmsswitch.sh
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%



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