diff options
author | jlam <jlam> | 2008-03-04 19:21:10 +0000 |
---|---|---|
committer | jlam <jlam> | 2008-03-04 19:21:10 +0000 |
commit | 476429c9f7b93362ea027fafcaa1bb835868c0d1 (patch) | |
tree | 49bcc2e4ee778e69c05972f13c0e319fdf272a66 /misc/emacs-wiki/Makefile | |
parent | df44780831cf4dadccea821bb560fbdd11bda60b (diff) | |
download | pkgsrc-476429c9f7b93362ea027fafcaa1bb835868c0d1.tar.gz |
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'misc/emacs-wiki/Makefile')
-rw-r--r-- | misc/emacs-wiki/Makefile | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/misc/emacs-wiki/Makefile b/misc/emacs-wiki/Makefile index 85e012488ff..15ba897657f 100644 --- a/misc/emacs-wiki/Makefile +++ b/misc/emacs-wiki/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1.1.1 2007/01/10 15:18:22 obache Exp $ +# $NetBSD: Makefile,v 1.2 2008/03/04 19:21:11 jlam Exp $ # DISTNAME= ${EMACSWIKI}-${EMACSWIKIVERSION} @@ -15,35 +15,41 @@ EMACSWIKI= emacs-wiki EMACSWIKIVERSION= 2.70 DEPENDS= semi>=1.14.6:../../devel/semi +PKG_DESTDIR_SUPPORT= user-destdir + #WRKSRC= ${WRKDIR}/${EMACSWIKI} .include "../../mk/emacs.mk" -LISPDIR=${EMACS_LISPPREFIX}/emacs-wiki +LISPDIR= ${EMACS_LISPPREFIX}/emacs-wiki -SRCS= emacs-wiki-colors.el emacs-wiki-httpd.el emacs-wiki-id.el emacs-wiki-macros.el emacs-wiki-mathml.el -SRCS+= emacs-wiki-menu.el emacs-wiki-pgg.el emacs-wiki-project.el emacs-wiki-publish.el emacs-wiki-regexps.el -SRCS+= emacs-wiki-srctag.el emacs-wiki-table.el emacs-wiki-transition.el emacs-wiki.el -SRCS+= contrib/cgi.el contrib/htmlize.el contrib/httpd.el contrib/table.el contrib/update-remote.el +SRCS= emacs-wiki-colors.el emacs-wiki-httpd.el emacs-wiki-id.el +SRCS+= emacs-wiki-macros.el emacs-wiki-mathml.el emacs-wiki-menu.el +SRCS+= emacs-wiki-pgg.el emacs-wiki-project.el emacs-wiki-publish.el +SRCS+= emacs-wiki-regexps.el emacs-wiki-srctag.el emacs-wiki-table.el +SRCS+= emacs-wiki-transition.el emacs-wiki.el contrib/cgi.el +SRCS+= contrib/htmlize.el contrib/httpd.el contrib/table.el +SRCS+= contrib/update-remote.el do-build: cd ${WRKSRC} ; \ for i in ${SRCS}; do \ - ${EMACS_BIN} --no-init-file --eval="(add-to-list 'load-path \"${WRKSRC}\")"\ + ${EMACS_BIN} --no-init-file \ + --eval="(add-to-list 'load-path \"${WRKSRC}\")"\ --eval="(add-to-list 'load-path \"${WRKSRC}/contrib\")"\ -batch -q -f batch-byte-compile $$i; \ done do-install: - ${MKDIR} ${LISPDIR} - ${MKDIR} ${LISPDIR}/contrib + ${MKDIR} ${DESTDIR}${LISPDIR} + ${MKDIR} ${DESTDIR}${LISPDIR}/contrib .for i in ${SRCS:Mcontrib/*} - ${INSTALL_DATA} ${WRKSRC}/${i} ${LISPDIR}/contrib - ${INSTALL_DATA} ${WRKSRC}/${i:R}.elc ${LISPDIR}/contrib + ${INSTALL_DATA} ${WRKSRC}/${i} ${DESTDIR}${LISPDIR}/contrib + ${INSTALL_DATA} ${WRKSRC}/${i:R}.elc ${DESTDIR}${LISPDIR}/contrib .endfor .for i in ${SRCS:Ncontrib/*} - ${INSTALL_DATA} ${WRKSRC}/${i} ${LISPDIR} - ${INSTALL_DATA} ${WRKSRC}/${i:R}.elc ${LISPDIR} + ${INSTALL_DATA} ${WRKSRC}/${i} ${DESTDIR}${LISPDIR} + ${INSTALL_DATA} ${WRKSRC}/${i:R}.elc ${DESTDIR}${LISPDIR} .endfor .include "../../mk/bsd.pkg.mk" |