2002-12-29 19:49:40 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.21 2002/12/29 19:49:41 fgsch Exp $
|
2001-05-06 03:19:44 +00:00
|
|
|
|
|
|
|
COMMENT= "TeX distribution, executables"
|
1999-08-10 19:09:58 +00:00
|
|
|
|
2000-03-11 00:07:37 +00:00
|
|
|
PKGNAME= teTeX_base-1.0.7
|
1999-12-01 15:32:57 +00:00
|
|
|
CATEGORIES= print/teTeX
|
1999-08-10 19:09:58 +00:00
|
|
|
DIST_SUBDIR= teTeX
|
2002-05-14 11:49:22 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_TEX_CTAN:=systems/unix/teTeX/1.0/distrib/sources/}
|
2001-10-06 13:01:23 +00:00
|
|
|
#${MASTER_SITE_TEX_CTAN}/biblio/bibtex/8-bit/bt371src.zip
|
|
|
|
|
1999-08-10 19:09:58 +00:00
|
|
|
DISTFILES= ${TETEX_SRC}
|
2000-09-13 14:22:08 +00:00
|
|
|
WRKDIST= ${WRKDIR}/teTeX-1.0
|
|
|
|
|
2001-11-15 14:42:07 +00:00
|
|
|
HOMEPAGE= http://www.tug.org/tetex/
|
2000-10-09 00:21:14 +00:00
|
|
|
MAINTAINER= Marc Espie <espie@openbsd.org>, Anil Madhavapeddy <avsm@openbsd.org>
|
1999-08-10 19:09:58 +00:00
|
|
|
|
2000-03-11 00:07:37 +00:00
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
1999-08-10 19:09:58 +00:00
|
|
|
|
2000-09-13 14:22:08 +00:00
|
|
|
FLAVORS= no_x11
|
|
|
|
FLAVOR?=
|
|
|
|
|
2000-03-11 00:07:37 +00:00
|
|
|
TETEX_SRC=teTeX-src-1.0.7.tar.gz
|
1999-08-10 19:09:58 +00:00
|
|
|
|
2001-10-06 13:01:23 +00:00
|
|
|
RUN_DEPENDS=:teTeX_texmf-1.0.*:print/teTeX/texmf
|
|
|
|
RUN_DEPENDS+=:texi2html->=1.56:textproc/texi2html
|
|
|
|
|
2002-06-09 05:31:40 +00:00
|
|
|
BUILD_DEPENDS=:teTeX_texmf-1.0.*:print/teTeX/texmf
|
2001-05-24 02:27:06 +00:00
|
|
|
LIB_DEPENDS= png.2::graphics/png
|
1999-08-10 19:09:58 +00:00
|
|
|
|
|
|
|
PNGDIR=${PREFIX}
|
|
|
|
|
2000-09-13 14:22:08 +00:00
|
|
|
CONFIGURE_STYLE=gnu
|
2001-09-28 06:02:12 +00:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/texk ${WRKSRC}/config ${WRKSRC}/libs/ncurses ${WRKSRC}/texinfo ${WRKSRC}
|
2000-09-13 14:22:08 +00:00
|
|
|
CONFIGURE_ARGS= --disable-multiplatform --without-texinfo \
|
1999-08-10 19:09:58 +00:00
|
|
|
--with-system-ncurses --with-system-zlib --with-system-pnglib \
|
2002-07-19 23:43:11 +00:00
|
|
|
--with-pnglib-libdir=${PNGDIR}/lib --with-pnglib-include=${PNGDIR}/include/libpng
|
1999-08-10 19:09:58 +00:00
|
|
|
CONFIGURE_ENV=YACC=yacc
|
|
|
|
|
2000-09-13 14:22:08 +00:00
|
|
|
.if ${FLAVOR:L:Mno_x11}
|
|
|
|
CONFIGURE_ARGS+= --without-x11
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= Xaw3d.6.1::x11/Xaw3d
|
|
|
|
USE_X11= Yes
|
|
|
|
.endif
|
|
|
|
|
2000-03-11 00:07:37 +00:00
|
|
|
# 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
|
2002-04-05 22:07:00 +00:00
|
|
|
.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
|
2000-03-11 00:07:37 +00:00
|
|
|
cd ${WRKBUILD} && find . -name Makefile -print | \
|
|
|
|
while read i; do touch -r $$i.bak $$i; done
|
|
|
|
|
|
|
|
# need the texmf part visible...
|
|
|
|
pre-fake:
|
2001-03-22 22:06:35 +00:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/texmf
|
2000-03-11 00:07:37 +00:00
|
|
|
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
|
|
|
|
|
2000-09-13 14:22:08 +00:00
|
|
|
INSTALL_INFO=/usr/bin/install-info
|
1999-08-10 19:09:58 +00:00
|
|
|
SEPARATE_BUILD=concurrent
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|