pkgsrc/print/web2c/Makefile

76 lines
2.4 KiB
Makefile

# $NetBSD: Makefile,v 1.7 2009/06/09 22:39:41 minskim Exp $
DISTNAME= texlive-20080816-source
PKGNAME= web2c-7.5.7
PKGREVISION= 4
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_TEX_CTAN:=systems/texlive/Source/}
EXTRACT_SUFX= .tar.lzma
MAINTAINER= minskim@NetBSD.org
HOMEPAGE= http://www.tug.org/web2c/
COMMENT= TeX implementation translating WEB to C
CONFLICTS+= teTeX-bin<=3.0nb28
EXTRACT_ELEMENTS= ${DISTNAME}/config \
${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
PKG_DESTDIR_SUPPORT= user-destdir
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+= --without-luatex
CONFIGURE_ARGS+= --without-xetex
CONFIGURE_ARGS+= --with-mf-nowin
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/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+= ZZIPLIBSRCDIR="" \
ZZIPLIBDEP=${BUILDLINK_PREFIX.zziplib}/lib/libzzip.la
.include "../../archivers/zziplib/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../print/kpathsea/buildlink3.mk"
post-install:
${LN} -sf cweb.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/ctangle.1
${LN} -sf cweb.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/cweave.1
${LN} -sf mf.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/mf-nowin.1
${LN} -sf dvicopy.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/odvicopy.1
${LN} -sf dvitype.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/odvitype.1
.include "../../mk/bsd.pkg.mk"