summaryrefslogtreecommitdiff
path: root/graphics/artist/Makefile
diff options
context:
space:
mode:
authoruebayasi <uebayasi>2008-10-11 09:31:54 +0000
committeruebayasi <uebayasi>2008-10-11 09:31:54 +0000
commitc4b82a5cd529780fd545357545325d304952e605 (patch)
tree28f89f081daec07805c1f982f0bc63a420c005ba /graphics/artist/Makefile
parenta7300be85c95b1f5616bddb1498456305605775e (diff)
downloadpkgsrc-c4b82a5cd529780fd545357545325d304952e605.tar.gz
Move mk/emacs.mk to editors/emacs/modules.mk.
Don't call pkg_info to get the installed Emacs version; always use the version matching EMACS_TYPE set by users. Be DEPENDS to it. This should address pkg/37146 by Aleksey Cheusov. While here convert some emacs lisp packages to user-destdir.
Diffstat (limited to 'graphics/artist/Makefile')
-rw-r--r--graphics/artist/Makefile19
1 files changed, 10 insertions, 9 deletions
diff --git a/graphics/artist/Makefile b/graphics/artist/Makefile
index 060f491d63a..786138ca199 100644
--- a/graphics/artist/Makefile
+++ b/graphics/artist/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2006/03/04 21:29:46 jlam Exp $
+# $NetBSD: Makefile,v 1.9 2008/10/11 09:31:56 uebayasi Exp $
DISTNAME= artist-1.2.6
PKGNAME= ${EMACS_PKGNAME_PREFIX}${DISTNAME}
@@ -10,20 +10,21 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.lysator.liu.se/~tab/artist/
COMMENT= Elisp drawing package with mouse and keyboard support
+PKG_DESTDIR_SUPPORT= user-destdir
+INSTALLATION_DIRS+= ${DOCDIR} \
+ ${EMACS_LISPPREFIX:C|^${PREFIX}/||}/artist
+
GNU_CONFIGURE= yes
-.include "../../mk/emacs.mk"
+.include "../../editors/emacs/modules.mk"
-.if ${EMACS_FLAVOR} == "xemacs"
-MAKE_FLAGS+= EMACS=xemacs
-MAKE_FLAGS+= lispdir=${EMACS_LISPPREFIX}/artist
-.endif
+MAKE_FLAGS+= EMACS=${EMACS_FLAVOR} \
+ lispdir=${DESTDIR}${EMACS_LISPPREFIX}/artist
DOCS= BUGS COPYING ChangeLog INSTALL README TODO
-DOCDIR= ${PREFIX}/share/doc/artist
+DOCDIR= share/doc/artist
post-install:
- ${INSTALL_DATA_DIR} ${DOCDIR}
- cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DESTDIR}${PREFIX}/${DOCDIR}
.include "../../mk/bsd.pkg.mk"