diff options
author | uebayasi <uebayasi> | 2007-10-29 04:37:51 +0000 |
---|---|---|
committer | uebayasi <uebayasi> | 2007-10-29 04:37:51 +0000 |
commit | c730766d10d47ee04d6a4074c5996892395d8d8c (patch) | |
tree | d3fc893715808b72d3c93f3d82677ae3858d7cf3 /chat | |
parent | 109f3ad764ebdfedeac3e1d13939df7b78eab9ba (diff) | |
download | pkgsrc-c730766d10d47ee04d6a4074c5996892395d8d8c.tar.gz |
Sort variables depending on ${EMACS_FLAVOR} (emacs or xemacs). Prefer
assignment to conditional. Include mk/emacs.mk lazily.
No functional changes intended.
Diffstat (limited to 'chat')
-rw-r--r-- | chat/navi2ch/Makefile | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/chat/navi2ch/Makefile b/chat/navi2ch/Makefile index e6244b91335..8de20a89327 100644 --- a/chat/navi2ch/Makefile +++ b/chat/navi2ch/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.19 2007/04/24 15:25:05 uebayasi Exp $ +# $NetBSD: Makefile,v 1.20 2007/10/29 04:37:51 uebayasi Exp $ DISTNAME= navi2ch-cvs_0.0.20070423-1 PKGNAME= ${EMACS_PKGNAME_PREFIX}navi2ch-1.7.5.99.20070423 @@ -16,15 +16,14 @@ USE_TOOLS+= gmake INFO_FILES= # PLIST EMACS_MODULES= base -.include "../../mk/emacs.mk" +# --with-emacs or --with-xemacs +CONFIGURE_ARGS+=--with-${EMACS_FLAVOR} +CONFIGURE_ARGS+=--with-icondir=${PREFIX}/share/navi2ch/icons +CONFIGURE_ARGS+=${CONFIGURE_ARGS.${EMACS_FLAVOR}} + +CONFIGURE_ARGS.emacs= --with-lispdir=${EMACS_LISPPREFIX}/navi2ch +CONFIGURE_ARGS.xemacs= --with-packagedir=${EMACS_LISPPREFIX:C|/lisp$||} -.if ${EMACS_FLAVOR} == "emacs" -CONFIGURE_ARGS+= --with-emacs -CONFIGURE_ARGS+= --with-lispdir=${EMACS_LISPPREFIX}/navi2ch -.elif ${EMACS_FLAVOR} == "xemacs" -CONFIGURE_ARGS+= --with-xemacs -CONFIGURE_ARGS+= --with-packagedir=${EMACS_LISPPREFIX:C|/lisp$||} -.endif -CONFIGURE_ARGS+= --with-icondir=${PREFIX}/share/navi2ch/icons +.include "../../mk/emacs.mk" .include "../../mk/bsd.pkg.mk" |