diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-04 16:38:11 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-04 16:38:11 +0000 |
commit | 8bf74c5086e810635eb42ee6260913f330977167 (patch) | |
tree | 3b3e69289dd17a1030bb7365e1cb146dbfea41bd /lang/mercury | |
parent | 563238a90334d8045ade559a74f641eba13dbc99 (diff) | |
download | pkgsrc-8bf74c5086e810635eb42ee6260913f330977167.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/Makefile | 11 |
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" |