aboutsummaryrefslogtreecommitdiff
path: root/devel/tex-synctex/Makefile
blob: 20156853274c8eaa6724baf57037ced32caec6d7 (plain) (blame)
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
59
PORTNAME=	synctex
PORTVERSION=	2.0.0
PORTREVISION=	2
CATEGORIES=	devel
MASTER_SITES=	TEX_CTAN/systems/texlive/${TEXLIVE_YEAR}/
PKGNAMEPREFIX=	tex-
DISTNAME=	texlive-${TEXLIVE_VERSION}-source
DIST_SUBDIR=	TeX

MAINTAINER=	tex@FreeBSD.org
COMMENT=	Synchronization TeXnology parser library
WWW=		http://itexmac.sourceforge.net/SyncTeX.html

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/synctexdir/README.txt

USES=		libtool localbase pathfix pkgconfig tar:xz tex
USE_LDCONFIG=	yes
USE_TEX=	kpathsea

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	${EXCLUDE_ENGINES:S/^/--disable-/} \
		--with-system-kpathsea \
		--with-system-zlib \
		--without-gmp-includes \
		--without-gmp-libdir \
		--without-mf-x-toolkit \
		--without-mpfr-includes \
		--without-mpfr-libdir \
		--without-system-cairo \
		--without-system-freetype2 \
		--without-system-gmp \
		--without-system-graphite2 \
		--without-system-harfbuzz \
		--without-system-icu \
		--without-system-libpng \
		--without-system-mpfr \
		--without-system-pixman \
		--without-system-ptexenc \
		--without-system-teckit \
		--without-system-zziplib \
		--without-x

INSTALL_TARGET=	install-strip

EXTRACT_AFTER_ARGS=	${EXTRACT_FILES:S,^,${DISTNAME}/,}

WRKSRC=		${WRKDIR}/${DISTNAME}/texk/web2c

EXTRACT_FILES=		build-aux texk/web2c
EXCLUDE_ENGINES=	etex aleph luatex luajittex pdftex mf mf-nowin ptex \
			eptex uptex euptex xetex tex otangle mp pmp upmp web2c \
			web-progs luahbtex luajithbtex mflua mfluajit latex \
			pdftex hitex

post-extract:
	@${FIND} ${WRKSRC} -name '*.orig' -delete

.include <bsd.port.mk>