summaryrefslogtreecommitdiff
path: root/lang/mercury
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-04 16:38:11 +0000
committerjlam <jlam@pkgsrc.org>2008-03-04 16:38:11 +0000
commit8216d744ac7ee52a87a0c54540fc68d487f4ad1f (patch)
tree3b3e69289dd17a1030bb7365e1cb146dbfea41bd /lang/mercury
parent642995a0c4f1913cc6893865f1f5905084199dc1 (diff)
downloadpkgsrc-8216d744ac7ee52a87a0c54540fc68d487f4ad1f.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'lang/mercury')
-rw-r--r--lang/mercury/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/lang/mercury/Makefile b/lang/mercury/Makefile
index 1a1d68f678b..b836dca32fa 100644
--- a/lang/mercury/Makefile
+++ b/lang/mercury/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2007/02/20 19:04:13 wiz Exp $
+# $NetBSD: Makefile,v 1.33 2008/03/04 16:38:12 jlam Exp $
DISTNAME= mercury-compiler-0.11.0
PKGNAME= mercury-0.11.0
@@ -11,6 +11,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.cs.mu.oz.au/research/mercury/
COMMENT= Modern logic/functional programming language
+PKG_DESTDIR_SUPPORT= user-destdir
+
GNU_CONFIGURE= yes
USE_TOOLS+= gmake
USE_GNU_READLINE= yes # rl_prep_term_function
@@ -46,10 +48,11 @@ do-build:
cd ${WRKSRC} && ${BUILD_MAKE_CMD} install
do-install:
- cd ${WRKSRC}/tmp && ${PAX} -rw . ${PREFIX}
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mercury
+ cd ${WRKSRC}/tmp && ${PAX} -rw . ${DESTDIR}${PREFIX}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/mercury
${FIND} ${WRKSRC} -type d -name "CVS" -print | ${XARGS} ${RM} -fr
${FIND} ${WRKSRC} -type f -name ".cvsignore" -print | ${XARGS} ${RM} -f
- cd ${WRKSRC}/samples && ${PAX} -rw . ${PREFIX}/share/examples/mercury
+ cd ${WRKSRC}/samples && \
+ ${PAX} -rw . ${DESTDIR}${PREFIX}/share/examples/mercury
.include "../../mk/bsd.pkg.mk"