diff options
author | joerg <joerg@pkgsrc.org> | 2008-06-12 02:14:13 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2008-06-12 02:14:13 +0000 |
commit | ba171a91fab519f587b027c1a2888cb6e3fce049 (patch) | |
tree | c12b9c282e2706cb6bac87456615dfdf2b256e55 /devel/patch | |
parent | 3ba79d294eb62e9c75cc32d37b4af7759af8c9d6 (diff) | |
download | pkgsrc-ba171a91fab519f587b027c1a2888cb6e3fce049.tar.gz |
Add DESTDIR support.
Diffstat (limited to 'devel/patch')
-rw-r--r-- | devel/patch/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/devel/patch/Makefile b/devel/patch/Makefile index c15886ade60..972c9c3dd99 100644 --- a/devel/patch/Makefile +++ b/devel/patch/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.29 2008/04/12 22:43:00 jlam Exp $ +# $NetBSD: Makefile,v 1.30 2008/06/12 02:14:27 joerg Exp $ # DISTNAME= patch-2.5.4 @@ -18,6 +18,7 @@ HOMEPAGE= http://www.gnu.org/software/patch/patch.html COMMENT= Patch files using diff output PKG_INSTALLATION_TYPES= overwrite pkgviews +PKG_DESTDIR_SUPPORT= user-destdir GNU_CONFIGURE= yes @@ -35,6 +36,9 @@ PLIST_VARS+= gpatch PLIST.gpatch= yes .endif +INSTALL_MAKE_FLAGS= bindir=${DESTDIR}${PREFIX}/bin \ + man1dir=${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 + do-patch: ${MV} ${WRKSRC}/pch.c ${WRKSRC}/pch.c.orig ${AWK} '/#include <pch.h>/{print $$0 "\n#include <sys/param.h>";next;}\ @@ -46,7 +50,7 @@ do-patch: .if !defined(GNU_PROGRAM_PREFIX) || ${GNU_PROGRAM_PREFIX} != "g" post-install: - ${LN} -sf ${GNU_PROGRAM_PREFIX}patch ${PREFIX}/bin/gpatch + ${LN} -sf ${GNU_PROGRAM_PREFIX}patch ${DESTDIR}${PREFIX}/bin/gpatch .endif .include "../../mk/bsd.pkg.mk" |