2010-11-22 05:16:08 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.44 2010/11/22 10:16:08 espie Exp $
|
2007-07-17 17:53:25 -04:00
|
|
|
|
2008-10-21 16:57:57 -04:00
|
|
|
COMMENT = base binaries for TeXLive typesetting distribution
|
2007-07-17 17:53:25 -04:00
|
|
|
|
2009-12-12 12:48:34 -05:00
|
|
|
DISTNAME = texlive-${DIST_V}-source
|
2010-07-17 12:37:33 -04:00
|
|
|
PKGNAME = texlive_base-${V}
|
2010-11-14 14:53:51 -05:00
|
|
|
REVISION = 9
|
2009-12-12 12:48:34 -05:00
|
|
|
SHARED_LIBS = kpathsea 2.0
|
2007-07-17 17:53:25 -04:00
|
|
|
|
2010-11-14 11:58:39 -05:00
|
|
|
WANTLIB = m X11 ICE freetype Xt c Xext fontconfig Xpm SM Xmu gd \
|
|
|
|
ncurses openjpeg Xaw Xau Xdmcp expat iconv jpeg lcms \
|
2010-11-22 05:16:08 -05:00
|
|
|
png>=3 poppler pthread pthread-stubs stdc++ t1>=4 \
|
2010-11-14 11:58:39 -05:00
|
|
|
ttf xcb xml2 z
|
2007-07-17 17:53:25 -04:00
|
|
|
|
2010-11-20 04:48:38 -05:00
|
|
|
RUN_DEPENDS = print/ghostscript/gnu \
|
|
|
|
print/detex \
|
|
|
|
print/dvi2tty \
|
|
|
|
print/ps2eps \
|
|
|
|
print/psutils \
|
|
|
|
print/t1utils \
|
|
|
|
texlive_texmf-minimal-${V}:print/texlive/texmf,-main
|
2008-10-21 16:57:57 -04:00
|
|
|
|
2010-11-20 04:48:38 -05:00
|
|
|
LIB_DEPENDS = devel/t1lib \
|
|
|
|
graphics/png \
|
|
|
|
graphics/gd \
|
|
|
|
print/freetype \
|
|
|
|
print/poppler
|
2007-07-17 17:53:25 -04:00
|
|
|
|
2008-10-21 16:57:57 -04:00
|
|
|
# Never set SEPARATE_BUILD
|
|
|
|
CONFIGURE_STYLE = gnu
|
2009-12-12 12:48:34 -05:00
|
|
|
|
|
|
|
# Don't put ${PREFIX}/include in CPPFLAGS or system icu .h's are picked up
|
2010-09-14 16:29:56 -04:00
|
|
|
CONFIGURE_ENV += TL_MAKE=${GMAKE} \
|
2010-09-24 15:35:27 -04:00
|
|
|
CPPFLAGS=-I${LOCALBASE}/include/poppler
|
2009-12-12 12:48:34 -05:00
|
|
|
|
|
|
|
WRKBUILD = ${WRKSRC}/Work # Can't build in same dir
|
|
|
|
CONFIGURE_SCRIPT = ../configure
|
2008-10-21 16:57:57 -04:00
|
|
|
MAKE_ENV = ${CONFIGURE_ENV}
|
2009-12-12 12:48:34 -05:00
|
|
|
NO_REGRESS = Yes # not worth the effort.
|
2007-09-10 09:37:26 -04:00
|
|
|
|
2008-10-21 16:57:57 -04:00
|
|
|
USE_GMAKE = Yes
|
|
|
|
USE_LIBTOOL = Yes
|
2010-10-18 17:25:07 -04:00
|
|
|
USE_GROFF = Yes
|
2007-07-17 17:53:25 -04:00
|
|
|
|
2008-10-29 05:26:20 -04:00
|
|
|
.if ${MACHINE_ARCH} == "sparc64"
|
|
|
|
CFLAGS += -fPIC
|
|
|
|
.endif
|
|
|
|
|
2009-12-12 12:48:34 -05:00
|
|
|
# clisp limits which arches we can use xindy on
|
|
|
|
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
|
2010-11-20 04:48:38 -05:00
|
|
|
BUILD_DEPENDS += lang/clisp
|
|
|
|
LIB_DEPENDS += devel/libsigsegv \
|
|
|
|
devel/ffcall
|
2010-07-17 12:37:33 -04:00
|
|
|
WANTLIB += sigsegv avcall callback
|
2009-12-12 12:48:34 -05:00
|
|
|
CONFIGURE_ARGS += --enable-xindy
|
|
|
|
PKG_ARGS += -Dxindy=1
|
|
|
|
WANTLIB += readline
|
|
|
|
MODULES += devel/gettext
|
|
|
|
.else
|
|
|
|
PKG_ARGS += -Dxindy=0
|
|
|
|
.endif
|
|
|
|
|
2007-07-17 17:53:25 -04:00
|
|
|
# Do not link with system icu. TeXLive ICU is not vanilla (Yet)!
|
2009-12-12 12:48:34 -05:00
|
|
|
CONFIGURE_ARGS += --x-includes=${X11BASE}/include \
|
|
|
|
--x-libraries=${X11BASE}/lib \
|
2007-07-17 17:53:25 -04:00
|
|
|
--with-system-freetype2 \
|
2009-12-12 12:48:34 -05:00
|
|
|
--with-system-freetype \
|
|
|
|
--with-freetype-includes=${LOCALBASE}/include/freetype1/freetype \
|
|
|
|
--with-freetype-libdir=${LOCALBASE}/lib \
|
|
|
|
--with-system-gd \
|
|
|
|
--with-gd-libdir=${LOCALBASE}/lib \
|
|
|
|
--with-system-libpng \
|
|
|
|
--with-libpng-includes=${LOCALBASE}/include/libpng \
|
|
|
|
--with-libpng-libdir=${LOCALBASE}/lib \
|
2007-07-17 17:53:25 -04:00
|
|
|
--with-system-ncurses \
|
|
|
|
--with-system-pnglib \
|
2008-06-30 17:38:28 -04:00
|
|
|
--with-pnglib-libdir=${LOCALBASE}/lib \
|
|
|
|
--with-pnglib-include=${LOCALBASE}/include/libpng \
|
2007-07-17 17:53:25 -04:00
|
|
|
--with-system-zlib \
|
|
|
|
--with-system-t1lib \
|
2008-06-30 17:38:28 -04:00
|
|
|
--with-t1lib-libdir=${LOCALBASE}/lib \
|
2009-12-12 12:48:34 -05:00
|
|
|
--with-t1lib-includes=${LOCALBASE}/include \
|
|
|
|
--with-xpdf-includes=${LOCALBASE}/include/poppler \
|
|
|
|
--with-xpdf-libdir=${LOCALBASE}/lib \
|
|
|
|
--enable-texinfo=no \
|
2007-07-17 17:53:25 -04:00
|
|
|
--with-xdvi-x-toolkit=xaw \
|
2009-12-12 12:48:34 -05:00
|
|
|
--enable-texi2html=no \
|
|
|
|
--enable-detex=no \
|
|
|
|
--enable-dvi2tty=no \
|
|
|
|
--enable-ps2eps=no \
|
|
|
|
--enable-psutils=no \
|
|
|
|
--enable-t1utils=no \
|
2008-10-21 16:57:57 -04:00
|
|
|
--disable-threads \
|
|
|
|
--with-old-mac-fonts \
|
2009-12-12 12:48:34 -05:00
|
|
|
--with-tex-banner=PuffTeX-2009 \
|
|
|
|
--disable-multiplatform \
|
|
|
|
--disable-native-texlive-build \
|
|
|
|
--with-system-xpdf # link poppler, yay :)
|
2008-10-21 16:57:57 -04:00
|
|
|
|
2009-12-12 12:48:34 -05:00
|
|
|
SUBST_VARS += TRUEPREFIX LOCALBASE
|
2009-04-22 20:18:17 -04:00
|
|
|
|
2009-12-12 12:48:34 -05:00
|
|
|
# clear upstreams .orig files, so update-patches is not confused
|
|
|
|
post-extract:
|
2008-10-21 16:57:57 -04:00
|
|
|
find ${WRKDIST} -name '*.orig' | xargs rm
|
2007-09-10 09:37:26 -04:00
|
|
|
|
2009-12-12 12:48:34 -05:00
|
|
|
post-patch:
|
|
|
|
${SUBST_CMD} ${WRKSRC}/utils/xindy/rte/ordrules/Makefile.in
|
|
|
|
|
|
|
|
# just to silence error - never used
|
|
|
|
pre-install:
|
|
|
|
mkdir ${WRKSRC}/inst
|
|
|
|
|
2008-10-21 16:57:57 -04:00
|
|
|
post-install:
|
2009-12-12 12:48:34 -05:00
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/tl-link-config ${PREFIX}/bin
|
2009-04-22 20:18:17 -04:00
|
|
|
${SUBST_CMD} ${PREFIX}/bin/tl-link-config
|
2009-12-12 12:48:34 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/texmf/web2c
|
|
|
|
${INSTALL_DATA} -c ${FILESDIR}/fmtutil.cnf-minimal \
|
|
|
|
${PREFIX}/share/texmf/web2c
|
2007-07-17 17:53:25 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|