[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / print / auctex

File: [cvs.NetBSD.org] / pkgsrc / print / auctex / Makefile (download)

Revision 1.66, Wed Oct 26 10:31:53 2022 UTC (3 months, 1 week ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2022Q4-base, pkgsrc-2022Q4
Changes since 1.65: +2 -1 lines

*: bump PKGREVISION for libunistring shlib major bump

# $NetBSD: Makefile,v 1.66 2022/10/26 10:31:53 wiz Exp $

DISTNAME=		auctex-13.1
PKGNAME=		${EMACS_PKGNAME_PREFIX}${DISTNAME}
PKGREVISION=		1
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]*:Nxemacs*}

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"