Update print/foomatic-db to version 20161105
[dports.git] / print / tex-basic-engines / Makefile
1 # $FreeBSD$
2
3 PORTNAME=       basic-engines
4 PORTVERSION=    20150521
5 CATEGORIES=     print
6 MASTER_SITES=   TEX_CTAN/systems/texlive/Source/
7 PKGNAMEPREFIX=  tex-
8 DISTNAME=       texlive-20150521-source
9 DIST_SUBDIR=    TeX
10
11 MAINTAINER=     hrs@FreeBSD.org
12 COMMENT=        Basic TeX Engines
13
14 LIB_DEPENDS=    libpng.so:graphics/png
15
16 USES=           pkgconfig libtool tar:xz
17 USE_TEX=        kpathsea web2c>=20150521_1
18 EXTRACT_AFTER_ARGS=     ${EXTRACT_FILES:S,^,${DISTNAME}/,}
19 EXTRACT_FILES=  build-aux \
20                 libs/xpdf \
21                 texk/web2c
22 WRKSRC=         ${WRKDIR}/${DISTNAME}/texk/web2c
23 GNU_CONFIGURE=  yes
24 EXCLUDE_ENGINES=aleph luatex luajittex mf \
25                 mf-nowin ptex eptex uptex euptex xetex \
26                 otangle mp pmp upmp web2c web-progs synctex
27 CONFIGURE_ARGS= ${EXCLUDE_ENGINES:S/^/--disable-/} \
28                 --disable-missing \
29                 --with-x=no \
30                 --without-mf-x-toolkit \
31                 --with-system-zlib \
32                 --with-system-kpathsea
33 .for L in libpng
34 CONFIGURE_ARGS+=--with-system-$L \
35                 --with-$L-include=${LOCALBASE}/include \
36                 --with-$L-libdir=${LOCALBASE}/lib
37 .endfor
38 CFLAGS+=        -I${LOCALBASE}/include
39 INSTALL_TARGET= install-strip
40
41 post-configure:
42         cd ${WRKDIR}/${DISTNAME}/libs/xpdf && \
43             ${SETENV} CC="${CC}" CPP="${CPP}" CXX="${CXX}" \
44                 CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" \
45                 CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" \
46                 LIBS="${LIBS}" \
47                 ${CONFIGURE_ENV} ${SH} ${CONFIGURE_SCRIPT} \
48                     ${CONFIGURE_ARGS}
49
50 .include <bsd.port.mk>