summaryrefslogtreecommitdiff
path: root/devel/gflib
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
commit4c8382aec039aefeebaf1aaac5cd7985337ed917 (patch)
tree620d08cc8bf79f9bacb7746632192670c7d6350d /devel/gflib
parent3a62565eb9471348d02d74145e302b5675905a43 (diff)
downloadpkgsrc-4c8382aec039aefeebaf1aaac5cd7985337ed917.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'devel/gflib')
-rw-r--r--devel/gflib/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/devel/gflib/Makefile b/devel/gflib/Makefile
index 914c45f0881..62f36f6a241 100644
--- a/devel/gflib/Makefile
+++ b/devel/gflib/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2007/04/15 21:35:06 agc Exp $
+# $NetBSD: Makefile,v 1.2 2008/03/03 17:45:35 jlam Exp $
#
DISTNAME= gflib
@@ -11,6 +11,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.cs.utk.edu/~plank/plank/gdlib/
COMMENT= Reed Solomon and Galois Field error correction library
+PKG_DESTDIR_SUPPORT= user-destdir
+
MAKE_FILE= makefile
BUILD_TARGET= w16
@@ -18,7 +20,8 @@ BUILD_TARGET= w16
do-install:
for f in gf_div gf_mult parity_test rs_decode_file \
rs_encode_file xor; do \
- ${INSTALL_PROGRAM} ${WRKSRC}/$$f ${PREFIX}/bin/$$f; \
+ ${INSTALL_PROGRAM} ${WRKSRC}/$$f \
+ ${DESTDIR}${PREFIX}/bin/$$f; \
done
.include "../../mk/bsd.pkg.mk"