summaryrefslogtreecommitdiffstats
path: root/devel/tex-web2c/Makefile
blob: 651148c59559c7b33a318aacf8de89a81d7c6b1a (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
63
64
65
66
# $FreeBSD$

PORTNAME=	web2c
PORTVERSION=	20150521
PORTREVISION=	1
CATEGORIES=	devel
MASTER_SITES=	TEX_CTAN/systems/texlive/Source/
PKGNAMEPREFIX=	tex-
DISTNAME=	texlive-${PORTVERSION}-source
DIST_SUBDIR=	TeX

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

LIB_DEPENDS=	libopenjpeg.so:graphics/openjpeg15 \
		libpng.so:graphics/png \
		libzzip.so:devel/zziplib \
		libmpfr.so:math/mpfr

USES=		pathfix pkgconfig libtool tar:xz
USE_TEX=	kpathsea ptexenc
USE_XORG=	pixman
USE_GNOME=	cairo
USE_LDCONFIG=	yes
EXTRACT_AFTER_ARGS=	${EXTRACT_FILES:S,^,${DISTNAME}/,}
EXTRACT_FILES=	build-aux \
		libs/xpdf \
		texk/web2c
WRKSRC=		${WRKDIR}/${DISTNAME}/texk/web2c
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--disable-luatex \
		--disable-luajittex \
		--disable-xetex \
		--disable-aleph \
		--disable-ptex \
		--disable-tex \
		--disable-latex \
		--disable-pdftex \
		--disable-eptex \
		--disable-uptex \
		--disable-euptex \
		--disable-synctex \
		--with-x=no \
		--without-mf-x-toolkit \
		--with-system-zlib \
		--with-system-zziplib
.for L in pixman cairo gmp mpfr libpng icu kpathsea ptexenc
CONFIGURE_ARGS+=--with-system-$L \
		--with-$L-include=${LOCALBASE}/include \
		--with-$L-libdir=${LOCALBASE}/lib
.endfor
CFLAGS+=	-I${LOCALBASE}/include
INSTALL_TARGET=	install-strip

INFO=	web2c

pre-configure:
	for D in libs/xpdf; do \
		cd ${WRKDIR}/${DISTNAME}/$$D && \
		${SETENV} CC="${CC}" CPP="${CPP}" CXX="${CXX}" \
			CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" CXXFLAGS="${CXXFLAGS}" \
			LDFLAGS="${LDFLAGS}" LIBS="${LIBS}" \
			${CONFIGURE_ENV} ${SH} ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}; \
	done

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