Mon Aug 3 15:19:17 2009 UTC ()
Fix DESTDIR installation.


(joerg)
diff -r1.4 -r1.5 pkgsrc/comms/p5-Asterisk/Makefile

cvs diff -r1.4 -r1.5 pkgsrc/comms/p5-Asterisk/Makefile (expand / switch to unified diff)

--- pkgsrc/comms/p5-Asterisk/Makefile 2009/07/07 15:42:13 1.4
+++ pkgsrc/comms/p5-Asterisk/Makefile 2009/08/03 15:19:17 1.5
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.4 2009/07/07 15:42:13 sno Exp $ 1# $NetBSD: Makefile,v 1.5 2009/08/03 15:19:17 joerg Exp $
2# 2#
3 3
4DISTNAME= asterisk-perl-1.01 4DISTNAME= asterisk-perl-1.01
5PKGNAME= p5-Asterisk-1.01 5PKGNAME= p5-Asterisk-1.01
6CATEGORIES= comms perl5 6CATEGORIES= comms perl5
7MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=../../authors/id/J/JA/JAMESGOL/} 7MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=../../authors/id/J/JA/JAMESGOL/}
8MASTER_SITES+= http://asterisk.gnuinter.net/files/ 8MASTER_SITES+= http://asterisk.gnuinter.net/files/
9 9
10MAINTAINER= pkgsrc-users@NetBSD.org 10MAINTAINER= pkgsrc-users@NetBSD.org
11HOMEPAGE= http://asterisk.gnuinter.net/ 11HOMEPAGE= http://asterisk.gnuinter.net/
12COMMENT= Collection of perl modules to be used with Asterisk 12COMMENT= Collection of perl modules to be used with Asterisk
13LICENSE= artistic 13LICENSE= artistic
14 14
@@ -16,21 +16,22 @@ PKG_DESTDIR_SUPPORT= user-destdir @@ -16,21 +16,22 @@ PKG_DESTDIR_SUPPORT= user-destdir
16PKG_INSTALLATION_TYPES= overwrite pkgviews 16PKG_INSTALLATION_TYPES= overwrite pkgviews
17 17
18PERL5_PACKLIST= auto/asterisk-perl/.packlist 18PERL5_PACKLIST= auto/asterisk-perl/.packlist
19EXAMPLES_DIR= ${PREFIX}/share/examples/p5-Asterisk 19EXAMPLES_DIR= ${PREFIX}/share/examples/p5-Asterisk
20 20
21EXAMPLE_FILES= agi-enum.agi agi-sayani.agi agi-test.agi 21EXAMPLE_FILES= agi-enum.agi agi-sayani.agi agi-test.agi
22EXAMPLE_FILES+= calleridnamelookup.agi directory.agi manager-test.pl 22EXAMPLE_FILES+= calleridnamelookup.agi directory.agi manager-test.pl
23EXAMPLE_FILES+= tts-bofh.agi tts-line.agi tts-ping.agi 23EXAMPLE_FILES+= tts-bofh.agi tts-line.agi tts-ping.agi
24 24
25.for file in ${EXAMPLE_FILES} 25.for file in ${EXAMPLE_FILES}
26REPLACE_PERL+= ${WRKSRC}/examples/${file} 26REPLACE_PERL+= ${WRKSRC}/examples/${file}
27.endfor 27.endfor
28 28
 29INSTALLATION_DIRS= ${EXAMPLES_DIR}
 30
29post-install: 31post-install:
30 ${INSTALL_SCRIPT_DIR} ${EXAMPLES_DIR} 
31.for file in ${EXAMPLE_FILES} 32.for file in ${EXAMPLE_FILES}
32 ${INSTALL_SCRIPT} ${WRKSRC}/examples/${file} ${EXAMPLES_DIR} 33 ${INSTALL_SCRIPT} ${WRKSRC}/examples/${file} ${DESTDIR}${EXAMPLES_DIR}
33.endfor 34.endfor
34 35
35.include "../../lang/perl5/module.mk" 36.include "../../lang/perl5/module.mk"
36.include "../../mk/bsd.pkg.mk" 37.include "../../mk/bsd.pkg.mk"