diff options
author | jlam <jlam> | 2008-03-03 17:45:33 +0000 |
---|---|---|
committer | jlam <jlam> | 2008-03-03 17:45:33 +0000 |
commit | 7a1142123798f48c48fc2d1fe38690a6b94d1df7 (patch) | |
tree | 620d08cc8bf79f9bacb7746632192670c7d6350d /devel/rsltc | |
parent | e629efdae96bb93a089e74409a36149a86e10f81 (diff) | |
download | pkgsrc-7a1142123798f48c48fc2d1fe38690a6b94d1df7.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" |