diff options
author | uebayasi <uebayasi@pkgsrc.org> | 2008-10-11 09:31:54 +0000 |
---|---|---|
committer | uebayasi <uebayasi@pkgsrc.org> | 2008-10-11 09:31:54 +0000 |
commit | b887f5681b4a4a2ce89af874eb1f9c822306ac8d (patch) | |
tree | 28f89f081daec07805c1f982f0bc63a420c005ba /mail/mew | |
parent | 5382ccf1d8130e9becd9b52c424e302b2acaf056 (diff) | |
download | pkgsrc-b887f5681b4a4a2ce89af874eb1f9c822306ac8d.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 'mail/mew')
-rw-r--r-- | mail/mew/Makefile | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/mail/mew/Makefile b/mail/mew/Makefile index 2fdf404fc29..5637bc6bbe6 100644 --- a/mail/mew/Makefile +++ b/mail/mew/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.74 2007/12/30 16:24:54 cjep Exp $ +# $NetBSD: Makefile,v 1.75 2008/10/11 09:31:57 uebayasi Exp $ DISTNAME= mew-5.2 PKGREVISION= 1 @@ -10,6 +10,9 @@ MAINTAINER= uebayasi@NetBSD.org HOMEPAGE= http://www.mew.org/ COMMENT= Messaging in the Emacs World +PKG_DESTDIR_SUPPORT= user-destdir +INSTALLATION_DIRS= ${MEW_CONTRIB_DIR:C|^${PREFIX}/||} + CONFLICTS+= mew-xemacs-[0-9]* incm-[0-9]* INFO_FILES= yes @@ -21,11 +24,13 @@ EMACS_MODULES+= base MEW_CONTRIB_DIR=${EMACS_LISPPREFIX}/mew/contrib +MAKE_FLAGS+= DESTDIR=${DESTDIR:Q} MAKE_FLAGS+= prefix=${PREFIX:Q} +MAKE_FLAGS+= exec_prefix=${PREFIX:Q} MAKE_FLAGS+= EMACS=${EMACS_BIN:Q} -MAKE_FLAGS+= elispdir=${EMACS_LISPPREFIX}/mew -MAKE_FLAGS+= etcdir=${EMACS_ETCPREFIX}/mew -MAKE_FLAGS+= infodir=${EMACS_INFOPREFIX} +MAKE_FLAGS+= elispdir=${EMACS_LISPPREFIX:Q}/mew +MAKE_FLAGS+= etcdir=${EMACS_ETCPREFIX:Q}/mew +MAKE_FLAGS+= infodir=${EMACS_INFOPREFIX:Q} MAKE_FLAGS+= mandir=${PREFIX:Q}/${PKGMANDIR:Q}/man1 CONFIGURE_ARGS+= --with-etcdir=${EMACS_ETCPREFIX}/mew @@ -40,9 +45,8 @@ post-configure: ${WRKSRC}/mew-key.el.1 > ${WRKSRC}/mew-key.el post-install: - ${INSTALL_DATA_DIR} ${MEW_CONTRIB_DIR} - ${INSTALL_DATA} ${WRKSRC}/contrib/* ${MEW_CONTRIB_DIR} + ${INSTALL_DATA} ${WRKSRC}/contrib/* ${DESTDIR}${MEW_CONTRIB_DIR} .include "../../devel/zlib/buildlink3.mk" -.include "../../mk/emacs.mk" +.include "../../editors/emacs/modules.mk" .include "../../mk/bsd.pkg.mk" |