summaryrefslogtreecommitdiff
path: root/comms/asterisk-sounds-native/Makefile
diff options
context:
space:
mode:
authorjoerg <joerg>2007-06-29 22:54:06 +0000
committerjoerg <joerg>2007-06-29 22:54:06 +0000
commit256e95234e0d257d3476f73112e0b764e816060e (patch)
treef8ddb101494057cb16a7092da441c3df5c6462fc /comms/asterisk-sounds-native/Makefile
parent629064aaa218c28b2ec4d9a2f44d78f5a4aa077d (diff)
downloadpkgsrc-256e95234e0d257d3476f73112e0b764e816060e.tar.gz
Fix installation due to missing directories and add DESTDIR support.
Diffstat (limited to 'comms/asterisk-sounds-native/Makefile')
-rw-r--r--comms/asterisk-sounds-native/Makefile12
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"