Merge from vendor branch TNF:
[pkgsrcv2.git] / devel / doxymacs / Makefile
1 # $NetBSD: Makefile,v 1.6 2008/10/11 09:31:55 uebayasi Exp $
2 #
3
4 DISTNAME=       doxymacs-1.8.0
5 PKGNAME=        ${EMACS_PKGNAME_PREFIX}${DISTNAME}
6 PKGREVISION=    1
7 CATEGORIES=     devel
8 MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE:=doxymacs/}
9
10 MAINTAINER=     dsainty@NetBSD.org
11 HOMEPAGE=       http://doxymacs.sourceforge.net/
12 COMMENT=        Doxygen editing support for Emacs
13
14 PKG_DESTDIR_SUPPORT=    user-destdir
15
16 .include "../../editors/emacs/modules.mk"
17
18 #
19 # "www/w3" (Emacs/W3) currently does not work with Emacs 22.  Emacs/W3
20 # is documented as a requirement for Doxymacs, but it appears that it
21 # is only used for the url-* support introduced in Emacs/W3.
22 # Fortunately, the url-* support from Emacs/W3 has been integrated
23 # into Emacs version 22.  The same support for XEmacs is available in
24 # editors/xemacs-packages.
25 #
26 .if ${EMACS_FLAVOR} == xemacs
27 DEPENDS+=       xemacs-packages-[0-9]*:../../editors/xemacs-packages
28 .elif ${EMACS_VERSION_MAJOR} <= 21
29 DEPENDS+=       w3-[0-9]*:../../www/w3
30 .endif
31
32 GNU_CONFIGURE=          yes
33 CONFIGURE_ENV+=         EMACS=${EMACS_BIN:Q}
34 CONFIGURE_ARGS+=        --with-lispdir=${EMACS_LISPPREFIX:Q}
35
36 .include "../../textproc/libxml2/buildlink3.mk"
37 .include "../../mk/bsd.pkg.mk"