1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Fix leftovers, NO_WRKSUBDIR and * do not play well together

- Stage support
- Use OPTIONS helpers
This commit is contained in:
Antoine Brodin 2013-12-07 09:07:40 +00:00
parent 977e393e72
commit 7c66b0b577
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=335817
2 changed files with 12 additions and 30 deletions

View File

@ -15,10 +15,7 @@ COMMENT= FreeSwitch Music - All Bitrates
NO_WRKSUBDIR= yes
NO_BUILD= yes
USERS= ${PORTNAME}
NO_STAGE= yes
GROUPS= ${USERS}
SHAREOWN= ${USERS}
SHAREGRP= ${SHAREOWN}
LATEST_LINK= ${PORTNAME}${PKGNAMESUFFIX}
OPTIONS_DEFINE= 8K 16K 32K 48K
@ -31,36 +28,17 @@ OPTIONS_DEFINE= 8K 16K 32K 48K
OPTIONS_DEFAULT= 8K 16K
NO_OPTIONS_SORT= yes
.include <bsd.port.options.mk>
8K_DISTFILES= freeswitch-sounds-music-8000-${DISTVERSION}${EXTRACT_SUFX}
16K_DISTFILES= freeswitch-sounds-music-16000-${DISTVERSION}${EXTRACT_SUFX}
32K_DISTFILES= freeswitch-sounds-music-32000-${DISTVERSION}${EXTRACT_SUFX}
48K_DISTFILES= freeswitch-sounds-music-48000-${DISTVERSION}${EXTRACT_SUFX}
.if ${PORT_OPTIONS:M8K}
DISTFILES+= freeswitch-sounds-music-8000-${DISTVERSION}${EXTRACT_SUFX}
.endif
.if ${PORT_OPTIONS:M16K}
DISTFILES+= freeswitch-sounds-music-16000-${DISTVERSION}${EXTRACT_SUFX}
.endif
.if ${PORT_OPTIONS:M32K}
DISTFILES+= freeswitch-sounds-music-32000-${DISTVERSION}${EXTRACT_SUFX}
.endif
.if ${PORT_OPTIONS:M48K}
DISTFILES+= freeswitch-sounds-music-48000-${DISTVERSION}${EXTRACT_SUFX}
.endif
.for opt in ${ALL_OPTIONS}
.if ${PORT_OPTIONS:M${opt}}
PLIST_SUB+= ${opt}=""
.else
PLIST_SUB+= ${opt}="@comment "
.endif
.endfor
OPTIONS_SUB= yes
do-install:
@${ECHO_MSG} "Installing files..."
${MKDIR} ${DATADIR}/sounds
${TOUCH} ${DATADIR}/sounds/.freeswitch-music
(cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${DATADIR}/sounds/)
@${MKDIR} ${STAGEDIR}${DATADIR}/sounds
${TOUCH} ${STAGEDIR}${DATADIR}/sounds/.freeswitch-music
cd ${WRKSRC} && ${COPYTREE_SHARE} music ${STAGEDIR}${DATADIR}/sounds
.include <bsd.port.mk>

View File

@ -1,3 +1,5 @@
@owner freeswitch
@group freeswitch
%%DATADIR%%/sounds/.freeswitch-music
%%8K%%%%DATADIR%%/sounds/music/8000/partita-no-3-in-e-major-bwv-1006-1-preludio.wav
%%8K%%%%DATADIR%%/sounds/music/8000/ponce-preludio-in-e-major.wav
@ -21,4 +23,6 @@
%%48K%%@dirrm %%DATADIR%%/sounds/music/48000
@dirrm %%DATADIR%%/sounds/music
@dirrmtry %%DATADIR%%/sounds
@owner
@group
@dirrmtry %%DATADIR%%