9f41aff296
Formats will be provided as separate packages.
90 lines
3.1 KiB
Makefile
90 lines
3.1 KiB
Makefile
# $NetBSD: Makefile,v 1.7 2009/01/06 05:30:47 minskim Exp $
|
|
|
|
DISTNAME= texlive-20080816-source
|
|
PKGNAME= web2c-7.5.7
|
|
CATEGORIES= print
|
|
MASTER_SITES= ${MASTER_SITE_TEX_CTAN:=systems/texlive/Source/}
|
|
EXTRACT_SUFX= .tar.lzma
|
|
|
|
MAINTAINER= minskim@NetBSD.org
|
|
HOMEPAGE= http://www.tug.org/kpathsea/
|
|
COMMENT= TeX implementation translating WEB to C
|
|
|
|
CONFLICTS+= teTeX-bin-[0-9]*
|
|
|
|
EXTRACT_ELEMENTS= ${DISTNAME}/config \
|
|
${DISTNAME}/libs/icu-xetex \
|
|
${DISTNAME}/libs/lua51 \
|
|
${DISTNAME}/libs/luafilesystem \
|
|
${DISTNAME}/libs/luafontforge \
|
|
${DISTNAME}/libs/luamd5 \
|
|
${DISTNAME}/libs/luapeg \
|
|
${DISTNAME}/libs/luazip \
|
|
${DISTNAME}/libs/luazlib \
|
|
${DISTNAME}/libs/md5 \
|
|
${DISTNAME}/libs/slnunicode \
|
|
${DISTNAME}/libs/xpdf ${DISTNAME}/libs/obsdcompat \
|
|
${DISTNAME}/texk/make \
|
|
${DISTNAME}/texk/config.guess \
|
|
${DISTNAME}/texk/config.sub \
|
|
${DISTNAME}/texk/install.sh \
|
|
${DISTNAME}/texk/mkinstalldirs \
|
|
${DISTNAME}/texk/web2c
|
|
|
|
GNU_CONFIGURE= yes
|
|
INFO_FILES= yes
|
|
USE_LANGUAGES= c c++
|
|
USE_LIBTOOL= yes
|
|
USE_TOOLS+= gmake lex perl yacc
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/texk/web2c
|
|
|
|
CONFIGURE_ARGS+= --with-mf-nowin
|
|
CONFIGURE_ARGS+= --with-system-freetype2 \
|
|
--with-freetype2-include=${BUILDLINK_PREFIX.freetype2}/include \
|
|
--with-freetype2-libdir=${BUILDLINK_PREFIX.freetype2}/lib
|
|
CONFIGURE_ARGS+= --with-fontconfig=${BUILDLINK_PREFIX.fontconfig}
|
|
CONFIGURE_ARGS+= --with-system-pnglib \
|
|
--with-pnglib-include=${BUILDLINK_PREFIX.png}/include \
|
|
--with-pnglib-libdir=${BUILDLINK_PREFIX.png}/lib
|
|
CONFIGURE_ARGS+= --with-system-zlib \
|
|
--with-zlib-include=${BUILDLINK_PREFIX.zlib}/include \
|
|
--with-zlib-libdir=${BUILDLINK_PREFIX.zlib}/lib
|
|
CONFIGURE_ARGS+= --enable-static
|
|
|
|
CONFIGURE_DIRS= ${WRKDIR}/${DISTNAME}/libs/icu-xetex \
|
|
${WRKDIR}/${DISTNAME}/libs/xpdf \
|
|
${WRKDIR}/${DISTNAME}/libs/obsdcompat \
|
|
${WRKDIR}/${DISTNAME}/texk/web2c
|
|
INSTALL_DIRS= ${WRKDIR}/${DISTNAME}/texk/web2c
|
|
|
|
MAKE_ENV+= KPATHSEA_PREFIX=${BUILDLINK_PREFIX.kpathsea}
|
|
MAKE_FLAGS+= LIBTOOL=${LIBTOOL:Q}
|
|
MAKE_FLAGS+= TECKITFLAGS=-I${BUILDLINK_PREFIX.TECkit}/include/teckit \
|
|
LDTECKIT="-L${BUILDLINK_PREFIX.TECkit}/lib -lTECkit" \
|
|
TECKITDEP="" \
|
|
GRAPHITESRCDIR=${BUILDLINK_PREFIX.silgraphite} \
|
|
LDGRAPHITE="-L${BUILDLINK_PREFIX.silgraphite}/lib -lgraphite" \
|
|
GRAPHITEDEP="" \
|
|
ZZIPLIBSRCDIR="" \
|
|
ZZIPLIBDEP=${BUILDLINK_PREFIX.zziplib}/lib/libzzip.la
|
|
|
|
FILES_SUBST+= KPSEWHICH=${BUILDLINK_PREFIX.kpathsea}/bin/kpsewhich \
|
|
MKTEXLSR=${BUILDLINK_PREFIX.kpathsea}/bin/mktexlsr
|
|
|
|
.include "../../archivers/zziplib/buildlink3.mk"
|
|
.include "../../converters/TECkit/buildlink3.mk"
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../fonts/fontconfig/buildlink3.mk"
|
|
.include "../../graphics/freetype2/buildlink3.mk"
|
|
.include "../../graphics/png/buildlink3.mk"
|
|
.include "../../graphics/silgraphite/buildlink3.mk"
|
|
.include "../../print/kpathsea/buildlink3.mk"
|
|
|
|
post-install:
|
|
${LN} -sf cweb.1 ${PREFIX}/${PKGMANDIR}/man1/ctangle.1
|
|
${LN} -sf cweb.1 ${PREFIX}/${PKGMANDIR}/man1/cweave.1
|
|
${LN} -sf mf.1 ${PREFIX}/${PKGMANDIR}/man1/mf-nowin.1
|
|
${LN} -sf dvicopy.1 ${PREFIX}/${PKGMANDIR}/man1/odvicopy.1
|
|
${LN} -sf dvitype.1 ${PREFIX}/${PKGMANDIR}/man1/odvitype.1
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|