diff options
author | joerg <joerg> | 2007-06-29 22:54:06 +0000 |
---|---|---|
committer | joerg <joerg> | 2007-06-29 22:54:06 +0000 |
commit | af892c3d125e9965f10dd6cdc2ba51de26e1635a (patch) | |
tree | f8ddb101494057cb16a7092da441c3df5c6462fc /comms | |
parent | df1802da025afa117676c529bf725fe5fa7d8e79 (diff) | |
download | pkgsrc-af892c3d125e9965f10dd6cdc2ba51de26e1635a.tar.gz |
Fix installation due to missing directories and add DESTDIR support.
Diffstat (limited to 'comms')
-rw-r--r-- | comms/asterisk-sounds-native/Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/comms/asterisk-sounds-native/Makefile b/comms/asterisk-sounds-native/Makefile index d3a20d46f6c..21b5cf795d3 100644 --- a/comms/asterisk-sounds-native/Makefile +++ b/comms/asterisk-sounds-native/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 2007/06/28 18:52:18 mjl Exp $ +# $NetBSD: Makefile,v 1.2 2007/06/29 22:54:06 joerg Exp $ # PKGNAME= asterisk-sounds-native-20060209 @@ -13,20 +13,26 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.astlinux.org/index.php COMMENT= Asterisk sound files in higher quality formats +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR}/sounds USE_LANGUAGES= # none NO_BUILD= yes +INSTALLATION_DIRS= libdata/asterisk/sounds/dictate \ + libdata/asterisk/sounds/digits \ + libdata/asterisk/sounds/letters \ + libdata/asterisk/sounds/phonetic + # work around bogosity in distfile: tarred with non-x directories post-extract: find ${WRKSRC} -type d -exec chmod a+x {} \; do-install: - ${INSTALL_DATA_DIR} ${PREFIX}/libdata/asterisk cd ${WRKDIR} && \ for f in `find sounds -type f -name \\*.?law` ; do \ - ${INSTALL_DATA} $$f ${PREFIX}/libdata/asterisk/$$f; \ + ${INSTALL_DATA} $$f ${DESTDIR}${PREFIX}/libdata/asterisk/$$f; \ done .include "../../mk/bsd.pkg.mk" |