diff options
author | uebayasi <uebayasi@pkgsrc.org> | 2007-10-29 04:37:51 +0000 |
---|---|---|
committer | uebayasi <uebayasi@pkgsrc.org> | 2007-10-29 04:37:51 +0000 |
commit | 5424cd00c120886d91987f6ba6e87f6c3abb1dee (patch) | |
tree | d3fc893715808b72d3c93f3d82677ae3858d7cf3 /chat/navi2ch/Makefile | |
parent | d6b79a8fb34277e062389b5ee0fb15e8cc3b5a81 (diff) | |
download | pkgsrc-5424cd00c120886d91987f6ba6e87f6c3abb1dee.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/navi2ch/Makefile')
-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" |