summaryrefslogtreecommitdiff
path: root/graphics/png2html
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-04 15:39:09 +0000
committerjlam <jlam@pkgsrc.org>2008-03-04 15:39:09 +0000
commit4b86e2bfab114a3edb0ceea2883a66b1745f9f06 (patch)
tree59c0548a0298c3f264975f618451fab4e14e6b25 /graphics/png2html
parenta6923789124411b85aaa9c9d97b6522350124999 (diff)
downloadpkgsrc-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/png2html')
-rw-r--r--graphics/png2html/Makefile17
1 files changed, 10 insertions, 7 deletions
diff --git a/graphics/png2html/Makefile b/graphics/png2html/Makefile
index 5a7affc232e..169d1918dda 100644
--- a/graphics/png2html/Makefile
+++ b/graphics/png2html/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2006/04/17 13:46:34 wiz Exp $
+# $NetBSD: Makefile,v 1.20 2008/03/04 15:39:10 jlam Exp $
#
DISTNAME= png2html-1.1
@@ -10,17 +10,20 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.engr.mun.ca/~holden/png2html.html
COMMENT= Takes a PNG image and transforms it to a web page
+PKG_DESTDIR_SUPPORT= user-destdir
+
FIX_RPATH+= CFLAGS
-CFLAGS+= -L${BUILDLINK_PREFIX.gd}/lib ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.gd}/lib
+CFLAGS+= -L${BUILDLINK_PREFIX.gd}/lib \
+ ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.gd}/lib
INSTALLATION_DIRS= bin
do-install:
- ${INSTALL_MAN_DIR} ${PREFIX}/share/doc/png2html
- ${INSTALL_MAN} ${WRKSRC}/COPYING ${PREFIX}/share/doc/png2html
- ${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/png2html
- ${INSTALL_MAN} ${WRKSRC}/CHANGES ${PREFIX}/share/doc/png2html
- ${INSTALL_PROGRAM} ${WRKSRC}/png2html ${PREFIX}/bin
+ ${INSTALL_MAN_DIR} ${DESTDIR}${PREFIX}/share/doc/png2html
+ ${INSTALL_MAN} ${WRKSRC}/COPYING ${DESTDIR}${PREFIX}/share/doc/png2html
+ ${INSTALL_MAN} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/png2html
+ ${INSTALL_MAN} ${WRKSRC}/CHANGES ${DESTDIR}${PREFIX}/share/doc/png2html
+ ${INSTALL_PROGRAM} ${WRKSRC}/png2html ${DESTDIR}${PREFIX}/bin
.include "../../graphics/gd/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"