openbsd-ports/print/teTeX/base/Makefile
2002-12-29 19:49:40 +00:00

73 lines
2.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.21 2002/12/29 19:49:41 fgsch Exp $
COMMENT= "TeX distribution, executables"
PKGNAME= teTeX_base-1.0.7
CATEGORIES= print/teTeX
DIST_SUBDIR= teTeX
MASTER_SITES= ${MASTER_SITE_TEX_CTAN:=systems/unix/teTeX/1.0/distrib/sources/}
#${MASTER_SITE_TEX_CTAN}/biblio/bibtex/8-bit/bt371src.zip
DISTFILES= ${TETEX_SRC}
WRKDIST= ${WRKDIR}/teTeX-1.0
HOMEPAGE= http://www.tug.org/tetex/
MAINTAINER= Marc Espie <espie@openbsd.org>, Anil Madhavapeddy <avsm@openbsd.org>
PERMIT_DISTFILES_CDROM= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_PACKAGE_FTP= Yes
FLAVORS= no_x11
FLAVOR?=
TETEX_SRC=teTeX-src-1.0.7.tar.gz
RUN_DEPENDS=:teTeX_texmf-1.0.*:print/teTeX/texmf
RUN_DEPENDS+=:texi2html->=1.56:textproc/texi2html
BUILD_DEPENDS=:teTeX_texmf-1.0.*:print/teTeX/texmf
LIB_DEPENDS= png.2::graphics/png
PNGDIR=${PREFIX}
CONFIGURE_STYLE=gnu
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/texk ${WRKSRC}/config ${WRKSRC}/libs/ncurses ${WRKSRC}/texinfo ${WRKSRC}
CONFIGURE_ARGS= --disable-multiplatform --without-texinfo \
--with-system-ncurses --with-system-zlib --with-system-pnglib \
--with-pnglib-libdir=${PNGDIR}/lib --with-pnglib-include=${PNGDIR}/include/libpng
CONFIGURE_ENV=YACC=yacc
.if ${FLAVOR:L:Mno_x11}
CONFIGURE_ARGS+= --without-x11
.else
LIB_DEPENDS+= Xaw3d.6.1::x11/Xaw3d
USE_X11= Yes
.endif
# TeTeX configure resists having --prefix=${DESTDIR}/usr/local, so do the
# change after the fact.
post-configure:
cd ${WRKBUILD} && find . -name Makefile -print | PREFIX=${PREFIX} \
xargs perl -pi.bak ${FILESDIR}/fix-Makefiles
.if ${MACHINE_ARCH} == "alpha"
# work around internal compiler error in gcc 2.95.3
perl -pi -e 's|(\$$\(CC\) \$$\(CFLAGS_NORMAL\) )(-c \$$\(srcdir\)/softscroll.c)|$$1-O0 $$2|;' ${WRKBUILD}/libs/ncurses/ncurses/Makefile
.endif
cd ${WRKBUILD} && find . -name Makefile -print | \
while read i; do touch -r $$i.bak $$i; done
# need the texmf part visible...
pre-fake:
${INSTALL_DATA_DIR} ${PREFIX}/share/texmf
lndir ${TRUEPREFIX}/share/texmf ${PREFIX}/share/texmf
# mktexlsr is too smart for its own good
rm ${PREFIX}/share/texmf/ls-R
cp ${TRUEPREFIX}/share/texmf/ls-R ${PREFIX}/share/texmf/ls-R
INSTALL_INFO=/usr/bin/install-info
SEPARATE_BUILD=concurrent
.include <bsd.port.mk>