summaryrefslogtreecommitdiff
path: root/devel/libwhisker2
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-03 17:45:33 +0000
committerjlam <jlam@pkgsrc.org>2008-03-03 17:45:33 +0000
commite655762fb793a09bcd629a5ee8889dfe5b1550a0 (patch)
tree620d08cc8bf79f9bacb7746632192670c7d6350d /devel/libwhisker2
parent2d370b7fe4d16560d65355fc39f74d9ef5e1f0c9 (diff)
downloadpkgsrc-e655762fb793a09bcd629a5ee8889dfe5b1550a0.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'devel/libwhisker2')
-rw-r--r--devel/libwhisker2/Makefile22
1 files changed, 12 insertions, 10 deletions
diff --git a/devel/libwhisker2/Makefile b/devel/libwhisker2/Makefile
index 1844b208d37..fd9c8744824 100644
--- a/devel/libwhisker2/Makefile
+++ b/devel/libwhisker2/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2007/04/14 10:30:37 adrianp Exp $
+# $NetBSD: Makefile,v 1.5 2008/03/03 17:45:36 jlam Exp $
DISTNAME= libwhisker2-2.4
CATEGORIES= devel
@@ -10,6 +10,8 @@ COMMENT= Perl module geared specifically for HTTP testing
DEPENDS+= p5-Net-SSLeay>=1.20:../../security/p5-Net-SSLeay
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_TOOLS+= perl:run
REPLACE_PERL= scripts/api_demo.pl scripts/crawl_demo.pl \
scripts/simple_demo.pl scripts/form_demo1.pl \
@@ -19,19 +21,19 @@ do-build:
@cd ${WRKSRC} && ${PERL5} Makefile.pl lib
do-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/libwhisker2
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/libwhisker2
- ${INSTALL_DATA_DIR} ${PREFIX}/libdata/libwhisker2
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/libwhisker2
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/libwhisker2
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/libdata/libwhisker2
- ${INSTALL_DATA} ${WRKSRC}/docs/*.txt ${PREFIX}/share/doc/libwhisker2
- ${INSTALL_DATA} ${WRKSRC}/docs/*.gif ${PREFIX}/share/doc/libwhisker2
- ${INSTALL_DATA} ${WRKSRC}/KNOWNBUGS ${PREFIX}/share/doc/libwhisker2
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/libwhisker2
- ${INSTALL_DATA} ${WRKSRC}/LW2.pm ${PREFIX}/libdata/libwhisker2
+ ${INSTALL_DATA} ${WRKSRC}/docs/*.txt ${DESTDIR}${PREFIX}/share/doc/libwhisker2
+ ${INSTALL_DATA} ${WRKSRC}/docs/*.gif ${DESTDIR}${PREFIX}/share/doc/libwhisker2
+ ${INSTALL_DATA} ${WRKSRC}/KNOWNBUGS ${DESTDIR}${PREFIX}/share/doc/libwhisker2
+ ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/libwhisker2
+ ${INSTALL_DATA} ${WRKSRC}/LW2.pm ${DESTDIR}${PREFIX}/libdata/libwhisker2
. for f in ${REPLACE_PERL}
${INSTALL_SCRIPT} ${WRKSRC}/${f} \
- ${PREFIX}/share/examples/libwhisker2
+ ${DESTDIR}${PREFIX}/share/examples/libwhisker2
. endfor
.include "../../mk/bsd.pkg.mk"