aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rees <crees@FreeBSD.org>2012-06-24 16:23:49 +0000
committerChris Rees <crees@FreeBSD.org>2012-06-24 16:23:49 +0000
commite19ea5b7c4f9be6c537ca8f8d17b99a9bbbf4c29 (patch)
tree7ed23bab3eee30cbe127c67cf73c5980b44ac41a
parent3c0834a35e9453982c2c2dc9364ec923198aca56 (diff)
downloadports-e19ea5b7c4f9be6c537ca8f8d17b99a9bbbf4c29.tar.gz
ports-e19ea5b7c4f9be6c537ca8f8d17b99a9bbbf4c29.zip
Notes
-rw-r--r--audio/freeswitch-sounds/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/audio/freeswitch-sounds/Makefile b/audio/freeswitch-sounds/Makefile
index 6f43d6c6231a..a3e3201598cf 100644
--- a/audio/freeswitch-sounds/Makefile
+++ b/audio/freeswitch-sounds/Makefile
@@ -16,13 +16,14 @@ DIST_SUBDIR= freeswitch-sounds
MAINTAINER= r.neese@gmail.com
COMMENT= FreeSwitch Sounds (All Bitrates)
-RUN_DEPENDS= freeswitch:${PORTSDIR}/net/freeswitch-core
-
PLIST= ${WRKDIR}/plist
NO_WRKSUBDIR= yes
SHAREOWN= ${PORTNAME}
SHAREGRP= ${SHAREOWN}
+USERS= ${PORTNAME}
+GROUPS= ${USERS}
+
OPTIONS= DOWNLOAD "Don't resample, download all." off \
8K "Compile sounds for 8K" on \
16K "Compile sounds for 16K" on \
@@ -176,12 +177,15 @@ do-build:
pre-install:
@${RM} ${PLIST}
@cd ${WRKDIR}/tmp && ${FIND} * ! -type d | ${SORT} >> ${PLIST}; \
- ${ECHO} .${PORTNAME}${PKGNAMESUFFIX} >> ${PLIST}; \
+ ${ECHO_CMD} .${PORTNAME}${PKGNAMESUFFIX} >> ${PLIST}; \
${REINPLACE_CMD} -e "s:^:${DATADIR_REL}/sounds/:" ${PLIST}; \
${FIND} * -type d ! -empty | ${SORT} -r | ${SED} -e "s:^:@dirrm ${DATADIR_REL}/sounds/:" | ${GREP} / >> ${PLIST}
+ @${ECHO_CMD} "@dirrmtry ${DATADIR_REL}/sounds" >> ${PLIST}
+ @${ECHO_CMD} "@dirrmtry ${DATADIR_REL}" >> ${PLIST}
do-install:
@${ECHO_MSG} "Installing files..."
+ ${MKDIR} ${DATADIR}/sounds
${TOUCH} ${DATADIR}/sounds/.freeswitch-sounds
(cd ${WRKDIR}/tmp/ && ${COPYTREE_SHARE} \* ${DATADIR}/sounds/)