summaryrefslogtreecommitdiff
path: root/devel/ratfor
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-03 17:45:33 +0000
committerjlam <jlam>2008-03-03 17:45:33 +0000
commit6382667881b228651106070be0587fe300bf858b (patch)
tree620d08cc8bf79f9bacb7746632192670c7d6350d /devel/ratfor
parent2faf5f3f31238b3c0a70766d4e716138a636c86b (diff)
downloadpkgsrc-6382667881b228651106070be0587fe300bf858b.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'devel/ratfor')
-rw-r--r--devel/ratfor/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/devel/ratfor/Makefile b/devel/ratfor/Makefile
index 3a04106853d..c0514873486 100644
--- a/devel/ratfor/Makefile
+++ b/devel/ratfor/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2007/11/18 10:39:58 wiz Exp $
+# $NetBSD: Makefile,v 1.14 2008/03/03 17:45:37 jlam Exp $
DISTNAME= ratfor77
PKGNAME= ratfor-1.0
@@ -10,12 +10,15 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://sepwww.stanford.edu/software/ratfor.html
COMMENT= Preprocessor for the Ratfor dialect of Fortran
+PKG_DESTDIR_SUPPORT= user-destdir
+
BUILD_TARGET= ratfor77
USE_TOOLS+= gmake
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/ratfor77 ${PREFIX}/bin/ratfor
- ${INSTALL_MAN} ${WRKSRC}/ratfor.man ${PREFIX}/${PKGMANDIR}/man1/ratfor.1
+ ${INSTALL_PROGRAM} ${WRKSRC}/ratfor77 ${DESTDIR}${PREFIX}/bin/ratfor
+ ${INSTALL_MAN} ${WRKSRC}/ratfor.man \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/ratfor.1
.include "../../mk/bsd.pkg.mk"