diff options
author | jlam <jlam> | 2008-03-04 15:39:09 +0000 |
---|---|---|
committer | jlam <jlam> | 2008-03-04 15:39:09 +0000 |
commit | d6b91adeba5668a57b81a911d8eddf78028e44dc (patch) | |
tree | 59c0548a0298c3f264975f618451fab4e14e6b25 /graphics/fly/Makefile | |
parent | 6dad5f5dc8c5cabc58dcc1203ff3621136e16ddf (diff) | |
download | pkgsrc-d6b91adeba5668a57b81a911d8eddf78028e44dc.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/Makefile')
-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" |