summaryrefslogtreecommitdiff
path: root/print/teTeX1-bin/Makefile
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2003-12-24 12:57:29 +0000
committerjmmv <jmmv@pkgsrc.org>2003-12-24 12:57:29 +0000
commit239873daa1450b70decb3e4ff24768d15974030f (patch)
tree1ad4343fae0f7ab26089c8acee2c101427dccc27 /print/teTeX1-bin/Makefile
parent34ebce8453bf93f593cf95f7404861d505efafd4 (diff)
downloadpkgsrc-239873daa1450b70decb3e4ff24768d15974030f.tar.gz
Reimport of teTeX-bin version 1.0.7nb3 as teTeX1-bin:
This package contains the executables for the teTeX installation as well as other files that were created when generating the binaries: info files, format files and manual pages.
Diffstat (limited to 'print/teTeX1-bin/Makefile')
-rw-r--r--print/teTeX1-bin/Makefile107
1 files changed, 107 insertions, 0 deletions
diff --git a/print/teTeX1-bin/Makefile b/print/teTeX1-bin/Makefile
new file mode 100644
index 00000000000..224e4cdcd2a
--- /dev/null
+++ b/print/teTeX1-bin/Makefile
@@ -0,0 +1,107 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/12/24 12:57:30 jmmv Exp $
+
+DISTNAME= teTeX-src-1.0.7
+PKGNAME= teTeX-bin-1.0.7
+PKGREVISION= 3
+WRKSRC= ${WRKDIR}/teTeX-1.0
+CATEGORIES= print
+MASTER_SITES= ${MASTER_SITE_TEX_CTAN:=systems/unix/teTeX/1.0/distrib/sources/}
+
+MAINTAINER= hubertf@NetBSD.org
+HOMEPAGE= http://www.tug.org/tetex/
+COMMENT= TeX distribution for UNIX compatible systems - executables
+
+BUILD_DEPENDS+= bison-[0-9]*:../../devel/bison
+DEPENDS+= teTeX-share-1.0.[2-9]*:../teTeX1-share
+DEPENDS+= dialog-0.6z*:../../misc/dialog
+
+CONFLICTS+= omega-[0-9]*
+
+DIST_SUBDIR= teTeX
+ALL_TARGET= all
+INSTALL_TARGET= install strip
+
+USE_BUILDLINK2= yes
+USE_PKGINSTALL= yes
+USE_GCC_SHLIB= yes
+USE_GMAKE= yes
+USE_X11= yes
+CFLAGS+= -Dunix
+
+INFO_FILES= latex.info dvips.info web2c.info kpathsea.info
+
+INSTALL_EXTRA_TMPL+= ${.CURDIR}/INSTALL
+
+GNU_CONFIGURE= yes
+CONFIG_GUESS_OVERRIDE= ${WRKSRC}/texk/config.guess
+CONFIG_GUESS_OVERRIDE+= ${WRKSRC}/config/config.guess
+CONFIG_GUESS_OVERRIDE+= ${WRKSRC}/libs/ncurses/config.guess
+CONFIG_GUESS_OVERRIDE+= ${WRKSRC}/texinfo/config.guess
+CONFIG_SUB_OVERRIDE= ${WRKSRC}/texk/config.sub
+CONFIG_SUB_OVERRIDE+= ${WRKSRC}/config/config.sub
+CONFIG_SUB_OVERRIDE+= ${WRKSRC}/libs/ncurses/config.sub
+CONFIG_SUB_OVERRIDE+= ${WRKSRC}/texinfo/config.sub
+CONFIGURE_ARGS+= --without-texinfo
+CONFIGURE_ARGS+= --without-dialog
+CONFIGURE_ARGS+= --disable-multiplatform
+CONFIGURE_ARGS+= --enable-ipc
+CONFIGURE_ARGS+= --with-epsfwin
+CONFIGURE_ARGS+= --with-hp2627win
+CONFIGURE_ARGS+= --with-mftalkwin
+CONFIGURE_ARGS+= --with-x11
+CONFIGURE_ARGS+= --with-libwww-config=${LOCALBASE}/bin/libwww-config
+CONFIGURE_ARGS+= --with-system-pnglib
+CONFIGURE_ARGS+= --with-pnglib-include=${BUILDLINK_PREFIX.png}/include
+CONFIGURE_ARGS+= --with-pnglib-libdir=${BUILDLINK_PREFIX.png}/lib
+CONFIGURE_ARGS+= --with-system-zlib
+CONFIGURE_ARGS+= --with-zlib-include=${BUILDLINK_PREFIX.zlib}/include
+CONFIGURE_ARGS+= --with-zlib-libdir=${BUILDLINK_PREFIX.zlib}/lib
+
+.include "../../mk/bsd.prefs.mk"
+# sysutils/coreutils installs a 'readlink' program, so conflict with it if
+# GNU_PROGRAM_PREFIX == ''
+.if ${GNU_PROGRAM_PREFIX} == ""
+CONFLICTS+= coreutils-[0-9]*
+.endif
+
+.if defined(PAPERSIZE) && ${PAPERSIZE} == "A4"
+CONFIGURE_ARGS+= --enable-a4
+.endif
+
+.if ${OPSYS} != "SunOS"
+CONFIGURE_ARGS+= --enable-auto-core
+.endif
+
+.if ${OPSYS} == "Darwin" && ${OS_VERSION:R} == "6"
+# Darwin 6.x's default (3.1ish) g++ has a bug that breaks the xpdf build
+CXX= g++2
+.endif
+
+CONFIGURE_ENV+= INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
+ INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
+ INSTALL_DATA="${INSTALL_DATA}"
+
+TEXFONTSDIR= /var/spool/texfonts
+OWN_DIRS= ${TEXFONTSDIR}
+OWN_DIRS_PERMS= ${TEXFONTSDIR}/pk ${ROOT_USER} ${ROOT_GROUP} 1777
+OWN_DIRS_PERMS+= ${TEXFONTSDIR}/source ${ROOT_USER} ${ROOT_GROUP} 1777
+OWN_DIRS_PERMS+= ${TEXFONTSDIR}/tfm ${ROOT_USER} ${ROOT_GROUP} 1777
+
+post-install:
+ @${RM} ${PREFIX}/share/texmf/web2c/*.log
+.if defined(PAPERSIZE)
+ ${LOCALBASE}/bin/texconfig dvips paper ${PAPERSIZE:tl}
+. if ${PAPERSIZE} == "Letter"
+ ${LOCALBASE}/bin/texconfig xdvi us
+. else
+ ${LOCALBASE}/bin/texconfig xdvi ${PAPERSIZE:tl}
+. endif
+.endif
+ ${LOCALBASE}/bin/texconfig font ro
+ ${LOCALBASE}/bin/texconfig font vardir /var/spool/texfonts
+ ${LOCALBASE}/bin/texconfig font options appendonlydir varfonts
+
+.include "../../graphics/png/buildlink2.mk"
+.include "../../www/libwww/buildlink2.mk"
+
+.include "../../mk/bsd.pkg.mk"