From 5221a22db38db801c06df121f77369f640b460bc Mon Sep 17 00:00:00 2001 From: joerg Date: Fri, 29 Jun 2007 22:54:06 +0000 Subject: Fix installation due to missing directories and add DESTDIR support. --- comms/asterisk-sounds-native/Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'comms') 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" -- cgit v1.2.3