summaryrefslogtreecommitdiffstats
path: root/devel/tex-web2c/Makefile
blob: d3be1f5200fa203de46a85f3853b78c7d6dd176d (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
59
60
61
62
# $FreeBSD$

PORTNAME=	web2c
PORTVERSION=	20140525
CATEGORIES=	devel
MASTER_SITES=	ftp://tug.org/historic/systems/texlive/2014/
PKGNAMEPREFIX=	tex-
DISTNAME=	texlive-${PORTVERSION}-source
DIST_SUBDIR=	TeX

MAINTAINER=	hrs@FreeBSD.org
COMMENT=	TeX implementation translating WEB to C

LIB_DEPENDS=	libopenjpeg.so:${PORTSDIR}/graphics/openjpeg15 \
		libpng.so:${PORTSDIR}/graphics/png \
		libzzip.so:${PORTSDIR}/devel/zziplib

USE_TEX=	kpathsea
USE_XORG=	pixman
USES=		pkgconfig gmake tar:xz
EXTRACT_AFTER_ARGS=	${EXTRACT_FILES}
EXTRACT_FILES=	${DISTNAME}/build-aux \
		${DISTNAME}/libs/xpdf \
		${DISTNAME}/libs/cairo \
		${DISTNAME}/libs/pixman \
		${DISTNAME}/texk/web2c
WRKSRC=		${WRKDIR}/${DISTNAME}/texk/web2c
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	OBSDCOMPAT_INCLUDES=-I${WRKSRC}/../../libs/obsdcompat
CONFIGURE_ARGS=	--disable-luatex \
		--disable-luajittex \
		--disable-xetex \
		--disable-aleph \
		--disable-ptex \
		--disable-eptex \
		--disable-uptex \
		--disable-euptex \
		--with-x=no \
		--without-mf-x-toolkit \
		--with-system-icu \
		--with-icu-includes=${LOCALBASE}/include \
		--with-icu-libdir=${LOCALBASE}/lib \
		--with-system-kpathsea \
		--with-kpathsea-includes=${LOCALBASE}/include \
		--with-kpathsea-libdir=${LOCALBASE}/lib \
		--with-system-libpng \
		--with-libpng-includes=${LOCALBASE}/include \
		--with-libpng-libdir=${LOCALBASE}/lib \
		--with-system-pixman \
		--with-system-zlib \
		--with-system-zziplib
CFLAGS+=	-I${LOCALBASE}/include

INFO=	web2c

pre-configure:
	for D in libs/xpdf libs/cairo; do \
		cd ${WRKDIR}/${DISTNAME}/$$D && \
		${SETENV} ${CONFIGURE_ENV} ${SH} ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}; \
	done

.include <bsd.port.mk>
OpenPOWER on IntegriCloud