- Fix build with clang
- Support staging - Make installation of examples optional
This commit is contained in:
parent
983682fc72
commit
e5f33c73de
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=332299
2 changed files with 20 additions and 22 deletions
|
@ -18,24 +18,22 @@ BUILD_DEPENDS= xmms:${PORTSDIR}/multimedia/xmms
|
|||
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>
|
||||
|
|
|
@ -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%%
|
||||
|
|
Loading…
Reference in a new issue