Remove unnecessary dependency on freeswitch-core

(While here, use ECHO_CMD)

Approved by:	Richard Neese (maintainer)
This commit is contained in:
Chris Rees 2012-06-24 16:23:49 +00:00
parent 3c0834a35e
commit e19ea5b7c4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=299892

View file

@ -16,13 +16,14 @@ DIST_SUBDIR= freeswitch-sounds
MAINTAINER= r.neese@gmail.com MAINTAINER= r.neese@gmail.com
COMMENT= FreeSwitch Sounds (All Bitrates) COMMENT= FreeSwitch Sounds (All Bitrates)
RUN_DEPENDS= freeswitch:${PORTSDIR}/net/freeswitch-core
PLIST= ${WRKDIR}/plist PLIST= ${WRKDIR}/plist
NO_WRKSUBDIR= yes NO_WRKSUBDIR= yes
SHAREOWN= ${PORTNAME} SHAREOWN= ${PORTNAME}
SHAREGRP= ${SHAREOWN} SHAREGRP= ${SHAREOWN}
USERS= ${PORTNAME}
GROUPS= ${USERS}
OPTIONS= DOWNLOAD "Don't resample, download all." off \ OPTIONS= DOWNLOAD "Don't resample, download all." off \
8K "Compile sounds for 8K" on \ 8K "Compile sounds for 8K" on \
16K "Compile sounds for 16K" on \ 16K "Compile sounds for 16K" on \
@ -176,12 +177,15 @@ do-build:
pre-install: pre-install:
@${RM} ${PLIST} @${RM} ${PLIST}
@cd ${WRKDIR}/tmp && ${FIND} * ! -type d | ${SORT} >> ${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}; \ ${REINPLACE_CMD} -e "s:^:${DATADIR_REL}/sounds/:" ${PLIST}; \
${FIND} * -type d ! -empty | ${SORT} -r | ${SED} -e "s:^:@dirrm ${DATADIR_REL}/sounds/:" | ${GREP} / >> ${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: do-install:
@${ECHO_MSG} "Installing files..." @${ECHO_MSG} "Installing files..."
${MKDIR} ${DATADIR}/sounds
${TOUCH} ${DATADIR}/sounds/.freeswitch-sounds ${TOUCH} ${DATADIR}/sounds/.freeswitch-sounds
(cd ${WRKDIR}/tmp/ && ${COPYTREE_SHARE} \* ${DATADIR}/sounds/) (cd ${WRKDIR}/tmp/ && ${COPYTREE_SHARE} \* ${DATADIR}/sounds/)