summaryrefslogtreecommitdiff
path: root/biology/phylip/Makefile
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-03 00:51:43 +0000
committerjlam <jlam>2008-03-03 00:51:43 +0000
commit5e34b9c7fc714e656c1f1792189c0cc3e5349236 (patch)
treecdb67462b5541a6566af441ea620d49ad326d24e /biology/phylip/Makefile
parent09af58dd14701cbbb6f38bbd905462b016dc40c5 (diff)
downloadpkgsrc-5e34b9c7fc714e656c1f1792189c0cc3e5349236.tar.gz
Mechanical changes to add full DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'biology/phylip/Makefile')
-rw-r--r--biology/phylip/Makefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/biology/phylip/Makefile b/biology/phylip/Makefile
index ae7d8ca806a..585777b4de9 100644
--- a/biology/phylip/Makefile
+++ b/biology/phylip/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2007/01/26 22:06:38 joerg Exp $
+# $NetBSD: Makefile,v 1.17 2008/03/03 01:10:06 jlam Exp $
DISTNAME= phylip-3.61
PKGREVISION= 2
@@ -14,6 +14,8 @@ RESTRICTED= No commercial distribution without a royalty agreement with the aut
NO_SRC_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_CDROM= ${RESTRICTED}
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/${DISTNAME}/src
INSTALLATION_DIRS= bin
@@ -25,14 +27,14 @@ do-install:
mix move neighbor pars penny proml promlk protdist \
protpars restdist restml retree seqboot treedist \
drawgram drawtree
- ${INSTALL_PROGRAM} ${WRKSRC}/${PROGRAM} ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PROGRAM} ${DESTDIR}${PREFIX}/bin
.endfor
- ${INSTALL_DATA_DIR} ${PREFIX}/share/fonts/phylip
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/fonts/phylip
.for FONT in font1 font2 font3 font4 font5 font6
- ${INSTALL_DATA} ${WRKSRC}/${FONT} ${PREFIX}/share/fonts/phylip
+ ${INSTALL_DATA} ${WRKSRC}/${FONT} ${DESTDIR}${PREFIX}/share/fonts/phylip
.endfor
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/phylip
-.for HTML in clique.html consense.html contchar.html contml.html \
+.for HTML in clique.html consense.html contchar.html contml.html \
contrast.html discrete.html distance.html dnacomp.html \
dnadist.html dnainvar.html dnaml.html dnamlk.html \
dnamove.html dnapars.html dnapenny.html dollop.html \
@@ -43,7 +45,8 @@ do-install:
promlk.html protdist.html protpars.html restdist.html \
restml.html retree.html seqboot.html sequence.html \
treedist.html
- ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/doc/${HTML} ${PREFIX}/share/doc/html/phylip
+ ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/doc/${HTML} \
+ ${DESTDIR}${PREFIX}/share/doc/html/phylip
.endfor
MAKE_ENV+= X11_LDFLAGS=${X11_LDFLAGS:Q}