diff options
author | joerg <joerg@pkgsrc.org> | 2007-06-29 22:54:06 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2007-06-29 22:54:06 +0000 |
commit | d8cb0bbc05a0cf508e0d7a9c63be15adf1228d21 (patch) | |
tree | f8ddb101494057cb16a7092da441c3df5c6462fc /comms | |
parent | a3b1edde68fdae691fccf4b50c938c1a83c6072c (diff) | |
download | pkgsrc-d8cb0bbc05a0cf508e0d7a9c63be15adf1228d21.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" |