diff options
author | uebayasi <uebayasi@pkgsrc.org> | 2007-10-29 04:43:17 +0000 |
---|---|---|
committer | uebayasi <uebayasi@pkgsrc.org> | 2007-10-29 04:43:17 +0000 |
commit | 1414e8a6c974b76dbec030c902c493b1b72d4abe (patch) | |
tree | 6bf4cd7c4b41ca3d5567234bd690364aafed1cdc /print/auctex | |
parent | 9fcd0707398aa3dec5dd30af72d448dd17ad32a8 (diff) | |
download | pkgsrc-1414e8a6c974b76dbec030c902c493b1b72d4abe.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 'print/auctex')
-rw-r--r-- | print/auctex/Makefile | 13 | ||||
-rw-r--r-- | print/auctex/buildlink3.mk | 22 |
2 files changed, 29 insertions, 6 deletions
diff --git a/print/auctex/Makefile b/print/auctex/Makefile index 900b2866533..e08ad6d394e 100644 --- a/print/auctex/Makefile +++ b/print/auctex/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.32 2007/01/17 13:18:42 tonio Exp $ +# $NetBSD: Makefile,v 1.33 2007/10/29 04:44:04 uebayasi Exp $ DISTNAME= auctex-11.84 PKGNAME= ${EMACS_PKGNAME_PREFIX}${DISTNAME} @@ -11,18 +11,19 @@ COMMENT= Enhanced LaTeX mode for Emacs EMACS_MODULES= base -.include "../../mk/emacs.mk" - USE_TOOLS+= gmake GNU_CONFIGURE= YES -.if ${EMACS_FLAVOR} == "xemacs" -CONFIGURE_ARGS+= --with-packagedir=${EMACS_LISPPREFIX:C|/lisp||} -.endif +CONFIGURE_ARGS+= ${CONFIGURE_ARGS.${EMACS_FLAVOR}} CONFIGURE_ARGS+= --disable-preview MAKEFLAGS+= EMACS=${EMACS_BIN:Q} MESSAGE_SUBST+= LISPDIR=${EMACS_LISPPREFIX:Q} INFO_FILES= YES +CONFIGURE_ARGS.emacs= --with-lispdir=${EMACS_LISPPREFIX} +CONFIGURE_ARGS.xemacs= --with-packagedir=${EMACS_LISPPREFIX:C|/lisp||} + +.include "../../mk/emacs.mk" + .include "../../mk/bsd.pkg.mk" diff --git a/print/auctex/buildlink3.mk b/print/auctex/buildlink3.mk new file mode 100644 index 00000000000..1a878e06050 --- /dev/null +++ b/print/auctex/buildlink3.mk @@ -0,0 +1,22 @@ +# $NetBSD: buildlink3.mk,v 1.1 2007/10/29 04:44:04 uebayasi Exp $ +# + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +AUCTEX_BUILDLINK3_MK:= ${AUCTEX_BUILDLINK3_MK}+ + +.if ${BUILDLINK_DEPTH} == "+" +BUILDLINK_DEPENDS+= auctex +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nauctex} +BUILDLINK_PACKAGES+= auctex +BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}auctex + +.if ${AUCTEX_BUILDLINK3_MK} == "+" +BUILDLINK_API_DEPENDS.auctex+= ${EMACS_PKGNAME_PREFIX}auctex>=11 +BUILDLINK_PKGSRCDIR.auctex?= ../../print/auctex +.endif # AUCTEX_BUILDLINK3_MK + +BUILDLINK_CONTENTS_FILTER.auctex= ${EGREP} '.*\.el$$|.*\.elc$$' + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} |