summaryrefslogtreecommitdiff
path: root/print/xetex/Makefile
blob: d0efbcd20752b704ac9514c5d6f5a83eb329dba8 (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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# $NetBSD: Makefile,v 1.17 2012/10/03 21:57:22 wiz Exp $

DISTNAME=	texlive-20120701-source
PKGNAME=	xetex-0.9998
PKGREVISION=	4
CATEGORIES=	print
MASTER_SITES=	ftp://tug.org/historic/systems/texlive/2012/
EXTRACT_SUFX=	.tar.xz

MAINTAINER=	minskim@NetBSD.org
HOMEPAGE=	http://www.tug.org/xetex/
COMMENT=	TeX system with Unicode and modern font technologies

CONFLICTS+=	web2c<=7.5.7
DEPENDS+=	xdvipdfmx-[0-9]*:../../print/xdvipdfmx

EXTRACT_ELEMENTS=	${DISTNAME}/build-aux \
			${DISTNAME}/libs/graphite ${DISTNAME}/libs/icu \
			${DISTNAME}/libs/xpdf ${DISTNAME}/libs/obsdcompat \
			${DISTNAME}/texk/web2c

PKG_DESTDIR_SUPPORT=	user-destdir

GNU_CONFIGURE=	yes
USE_LANGUAGES=	c c++
USE_LIBTOOL=	yes
USE_TOOLS+=	gmake lex perl pkg-config yacc
CONFIGURE_ARGS+=	--disable-aleph --disable-etex --disable-pdftex \
			--disable-luatex --disable-mf --disable-mf-nowin \
			--disable-mp \
			--disable-ptex --disable-eptex --disable-uptex --disable-euptex \
			--disable-web-progs \
			--enable-web2c --enable-xetex
CONFIGURE_ARGS+=	--with-system-poppler
CONFIGURE_ARGS+= \
	--with-fontconfig-includes=${BUILDLINK_PREFIX.fontconfig}/include \
	--with-fontconfig-libdir=${BUILDLINK_PREFIX.fontconfig}/lib
CONFIGURE_ARGS+=	--with-system-kpathsea \
	--with-kpathsea-includes=${BUILDLINK_PREFIX.kpathsea}/include \
	--with-kpathsea-libdir=${BUILDLINK_PREFIX.kpathsea}/lib
CONFIGURE_ARGS+=	--with-system-zlib \
	--with-zlib-includes=${BUILDLINK_PREFIX.zlib}/include \
	--with-zlib-libdir=${BUILDLINK_PREFIX.zlib}/lib
CONFIGURE_ARGS+=	--with-system-libpng \
	--with-libpng-includes=${BUILDLINK_PREFIX.libpng}/include \
	--with-libpng-libdir=${BUILDLINK_PREFIX.libpng}/lib
CONFIGURE_ARGS+=	--with-system-freetype2
CONFIGURE_ARGS+=	--with-system-teckit \
	--with-teckit-includes=${BUILDLINK_PREFIX.TECkit}/include/teckit \
	--with-teckit-libdir=${BUILDLINK_PREFIX.TECkit}/lib

CONFIGURE_DIRS=		libs/graphite
CONFIGURE_DIRS+=	libs/icu
CONFIGURE_DIRS+=	libs/xpdf
CONFIGURE_DIRS+=	libs/obsdcompat
CONFIGURE_DIRS+=	texk/web2c

EVAL_PREFIX+=	XDVIPDFMX_PREFIX=xdvipdfmx

SUBST_CLASSES+=		paths
SUBST_MESSAGE.paths=	Setting paths to commands.
SUBST_STAGE.paths=	pre-configure
SUBST_FILES.paths=	texk/web2c/xetexdir/XeTeX_ext.c
SUBST_SED.paths=	-e 's,@XDVIPDFMX@,${XDVIPDFMX_PREFIX}/bin/xdvipdfmx,g'

INSTALLATION_DIRS+=	bin

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

# ATSUI is deprecated in Mac OS X Snow Leopard
.if !empty(MACHINE_PLATFORM:MDarwin-1[0-9]*)
CONFIGURE_ENV+=	kpse_cv_have_Carbon=no
.endif

CFLAGS.SunOS+= -std=gnu99 -D_XOPEN_SOURCE_EXTENDED=0

.include "../../converters/TECkit/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../fonts/fontconfig/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../print/kpathsea/buildlink3.mk"
.include "../../print/poppler/buildlink3.mk"
.include "../../print/poppler-includes/buildlink3.mk"

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/texk/web2c/xetex ${DESTDIR}${PREFIX}/bin

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