# $NetBSD: Makefile,v 1.34 2009/01/08 22:09:35 minskim Exp $ DISTNAME= tetex-src-3.0 PKGNAME= ${DISTNAME:C/tetex/teTeX/:C/src/bin/} PKGREVISION= 22 CATEGORIES= print MASTER_SITES= ${MASTER_SITE_TEX_CTAN:=systems/unix/teTeX/3.0/distrib/} MAINTAINER= kei@NetBSD.org HOMEPAGE= http://www.tug.org/tetex/ COMMENT= TeX distribution for UNIX compatible systems - binaries PKG_DESTDIR_SUPPORT= user-destdir DEPENDS+= teTeX-texmf>=3.0nb3:../../print/teTeX3-texmf DEPENDS+= dialog>=0.6z:../../misc/dialog # games/omega previously installed an omega executable too CONFLICTS+= omega<0.90.4nb1 INFO_FILES= # PLIST USE_TOOLS+= bison lex REPLACE_PERL= texk/xdvik/t1mapper USE_LIBTOOL= yes CONFIGURE_ARGS+= --without-texinfo --without-texi2html CONFIGURE_ARGS+= --with-xdvi-x-toolkit=xaw MAKE_ENV+= KPATHSEA_PREFIX=${BUILDLINK_PREFIX.kpathsea} MAKE_FLAGS+= LIBTOOL=${LIBTOOL:Q} MAKE_FLAGS+= vartexfonts=${VARBASE:Q}/lib/texmf/fonts BUILD_DEFS+= VARBASE LOWER_PAPERSIZE_cmd= ${ECHO} ${PAPERSIZE} | ${TR} '[A-Z]' '[a-z]' LOWER_PAPERSIZE= ${LOWER_PAPERSIZE_cmd:sh} FILES_SUBST+= PAPERSIZE=${LOWER_PAPERSIZE:Q} PKG_SYSCONFSUBDIR= texmf CONF_FILES+= ${PREFIX}/share/texmf/web2c/fmtutil.cnf.dist \ ${PREFIX}/share/texmf/web2c/fmtutil.cnf OWN_DIRS+= ${VARBASE}/lib/texmf ${PREFIX}/share/texmf-local .for d in pk source tfm OWN_DIRS_PERMS+= ${VARBASE}/lib/texmf/fonts/${d} \ ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 1777 .endfor INSTALL_MAKE_FLAGS+= prefix=${DESTDIR}${PREFIX} INSTALL_MAKE_FLAGS+= texmf=${DESTDIR}${PREFIX}/share/texmf INSTALL_MAKE_FLAGS+= infodir=${DESTDIR}${PREFIX}/${PKGINFODIR} INSTALL_MAKE_FLAGS+= mandir=${DESTDIR}${PREFIX}/${PKGMANDIR} TEX_TEXMF_DIRS= ${PREFIX}/share/texmf .include "../../print/kpathsea/buildlink3.mk" .include "../../print/kpathsea/texmf.mk" .include "../../print/teTeX3-bin/Makefile.common" .include "../../x11/libXp/buildlink3.mk" .include "../../x11/libXpm/buildlink3.mk" .include "../../mk/xaw.buildlink3.mk" post-extract: ${RM} -rf ${WRKSRC}/texk/kpathsea .include "../../mk/bsd.pkg.mk"