summaryrefslogtreecommitdiff
path: root/print/auctex/Makefile
blob: 5ede8b280e76a42bd802d8fe30c9b1ea3dcbbab8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# $NetBSD: Makefile,v 1.63 2022/06/28 11:35:27 wiz Exp $

DISTNAME=		auctex-11.92
PKGNAME=		${EMACS_PKGNAME_PREFIX}${DISTNAME}
PKGREVISION=		15
CATEGORIES=		print
MASTER_SITES=		${MASTER_SITE_GNU:=auctex/}

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		https://www.gnu.org/software/auctex/
COMMENT=		Enhanced LaTeX mode for Emacs
LICENSE=		gnu-gpl-v3

# Emacsen pre-22 lack graphics support
EMACS_VERSIONS_ACCEPTED=	${_EMACS_VERSIONS_ALL:Nemacs2[01]*}

BUILD_DEPENDS+=		tex-texlive-scripts-extra-[0-9]*:../../print/tex-texlive-scripts-extra
DEPENDS+=		texlive-collection-latex>=2014:../../meta-pkgs/texlive-collection-latex

.include "../../mk/bsd.prefs.mk"

USE_TOOLS+=		gmake makeinfo perl
GNU_CONFIGURE=		YES

CONFIGURE_ENV=		GS=${PREFIX}/bin/gs
CONFIGURE_ARGS+=	${CONFIGURE_ARGS.${EMACS_FLAVOR}}
CONFIGURE_ARGS+=	--enable-preview
CONFIGURE_ARGS+=	--localstatedir=${VARBASE}

CONFIGURE_ARGS.emacs=	--with-lispdir=${EMACS_LISPPREFIX}

# We are not building an XEmacs package!
CONFIGURE_ARGS.xemacs=	--without-packagedir
CONFIGURE_ARGS.xemacs+=	--with-lispdir=${EMACS_LISPPREFIX}

MAKEFLAGS+=		EMACS=${EMACS_BIN:Q}

BUILD_DEFS+=		VARBASE

EMACS_MODULES=		base

MESSAGE_SUBST+=		LISPDIR=${EMACS_LISPPREFIX:Q}
INFO_FILES=		YES

TEXMFDIR=		share/texmf-local

INSTALLATION_DIRS=	share/doc/auctex
INSTALLATION_DIRS+=	${EMACS_INFOPREFIX}
INSTALLATION_DIRS+=	${EMACS_LISPPREFIX}
INSTALLATION_DIRS+=	${EMACS_LISPPREFIX}/auctex
INSTALLATION_DIRS+=	${TEXMFDIR}/tex/latex/preview

MAKE_DIRS_PERMS+=	${VARBASE}/auctex ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 1777

.include "../../print/ghostscript/buildlink3.mk"
.include "../../editors/emacs/modules.mk"

.include "../../mk/bsd.pkg.mk"