diff options
author | jlam <jlam> | 2008-03-03 17:45:33 +0000 |
---|---|---|
committer | jlam <jlam> | 2008-03-03 17:45:33 +0000 |
commit | 6382667881b228651106070be0587fe300bf858b (patch) | |
tree | 620d08cc8bf79f9bacb7746632192670c7d6350d /devel/rsltc | |
parent | 2faf5f3f31238b3c0a70766d4e716138a636c86b (diff) | |
download | pkgsrc-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/rsltc')
-rw-r--r-- | devel/rsltc/Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/devel/rsltc/Makefile b/devel/rsltc/Makefile index ca4e45fb195..719014a7c2e 100644 --- a/devel/rsltc/Makefile +++ b/devel/rsltc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.8 2007/11/17 12:04:12 rillig Exp $ +# $NetBSD: Makefile,v 1.9 2008/03/03 17:45:37 jlam Exp $ # DISTNAME= rsltcsrc @@ -15,18 +15,20 @@ COMMENT= RAISE Specification Language Type Checker BUILD_DEPENDS+= bison-[0-9]*:../../devel/bison DEPENDS+= gentle>=97:../../devel/gentle +PKG_DESTDIR_SUPPORT= user-destdir + MAKE_FILE= make_sunos USE_TOOLS+= gmake lex WRKSRC= ${WRKDIR}/rsl.2.4 INSTALLATION_DIRS= bin do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/rsltc ${PREFIX}/bin - ${INSTALL_DATA_DIR} ${PREFIX}/share/emacs/site-lisp/rsl + ${INSTALL_PROGRAM} ${WRKSRC}/rsltc ${DESTDIR}${PREFIX}/bin + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/emacs/site-lisp/rsl (cd ${WRKSRC} ; for i in rsltc.el tokenise.el rslconvert.el rsl-mode.el ; do\ ${EMACS_BIN} -batch -f batch-byte-compile $$i ;\ - ${INSTALL_DATA} $$i ${PREFIX}/share/emacs/site-lisp/rsl ;\ - ${INSTALL_DATA} $${i}c ${PREFIX}/share/emacs/site-lisp/rsl ;\ + ${INSTALL_DATA} $$i ${DESTDIR}${PREFIX}/share/emacs/site-lisp/rsl ;\ + ${INSTALL_DATA} $${i}c ${DESTDIR}${PREFIX}/share/emacs/site-lisp/rsl ;\ done) .include "../../mk/emacs.mk" |