diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-04 15:39:09 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-04 15:39:09 +0000 |
commit | 4b86e2bfab114a3edb0ceea2883a66b1745f9f06 (patch) | |
tree | 59c0548a0298c3f264975f618451fab4e14e6b25 /graphics/fly | |
parent | a6923789124411b85aaa9c9d97b6522350124999 (diff) | |
download | pkgsrc-4b86e2bfab114a3edb0ceea2883a66b1745f9f06.tar.gz |
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'graphics/fly')
-rw-r--r-- | graphics/fly/Makefile | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/graphics/fly/Makefile b/graphics/fly/Makefile index 3915571acb5..b67a2a4f89e 100644 --- a/graphics/fly/Makefile +++ b/graphics/fly/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.33 2006/12/15 20:32:57 joerg Exp $ +# $NetBSD: Makefile,v 1.34 2008/03/04 15:39:09 jlam Exp $ DISTNAME= fly-1.6.5 PKGREVISION= 8 @@ -11,6 +11,8 @@ COMMENT= Command-file interface for creating and modifying PNG images BUILD_DEPENDS+= gif2png>=2.4.2:../../graphics/gif2png +PKG_DESTDIR_SUPPORT= user-destdir + USE_TOOLS+= perl:run REPLACE_PERL= examples/cgi-perl-example.pl \ examples/fly-tester.pl \ @@ -27,13 +29,15 @@ pre-configure: ${WRKSRC}/examples/cgi-perl-example.pl do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/fly ${PREFIX}/bin - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/fly - ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/fly + ${INSTALL_PROGRAM} ${WRKSRC}/fly ${DESTDIR}${PREFIX}/bin + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/fly + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/fly cd ${WRKSRC}/doc; ${LOCALBASE}/bin/gif2png *.gif - cd ${WRKSRC}/doc; ${INSTALL_DATA} *.html *.png ${PREFIX}/share/doc/fly + cd ${WRKSRC}/doc; ${INSTALL_DATA} *.html *.png \ + ${DESTDIR}${PREFIX}/share/doc/fly ${RM} -f ${WRKSRC}/examples/*.orig - cd ${WRKSRC}/examples; ${INSTALL_DATA} * ${PREFIX}/share/examples/fly + cd ${WRKSRC}/examples; ${INSTALL_DATA} * \ + ${DESTDIR}${PREFIX}/share/examples/fly .include "../../graphics/freetype-lib/buildlink3.mk" .include "../../graphics/gd/buildlink3.mk" |