1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00
freebsd-ports/japanese/dvipsk/Makefile
Hiroki Sato 24aebae479 Update to 5.92b, and depend on print/teTeX.
Approved by:	linimon (mentor)
2004-05-12 17:17:40 +00:00

80 lines
2.6 KiB
Makefile

# New ports collection makefile for: dvipsk + jpatch
# Date created: 25 Aug 1997
# Whom: Makoto WATANABE <watanabe@zlab.phys.nagoya-u.ac.jp>
#
# $FreeBSD$
#
PORTNAME= dvipsk
PORTVERSION= 5.92b
CATEGORIES= japanese print
MASTER_SITES= ftp://sunsite.informatik.rwth-aachen.de/pub/comp/tex/teTeX/2.0/distrib/ \
${MASTER_SITE_TEX_CTAN} \
ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/dvips/:1
MASTER_SITE_SUBDIR= systems/unix/teTeX/2.0/distrib/
PKGNAMEPREFIX= ja-
PKGNAMESUFFIX= -tetex
DISTFILES= tetex-src-${VER_TETEX}${EXTRACT_SUFX} \
dvipsk-jpatch-p${VER_JPATCH}${EXTRACT_SUFX}:1
DIST_SUBDIR= teTeX
MAINTAINER= hrs@FreeBSD.org
COMMENT= A DVI to PostScript translator + Japanese patch
BUILD_DEPENDS= mktexlsr:${PORTSDIR}/print/teTeX
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
wwwcore.1:${PORTSDIR}/www/libwww \
t1.5:${PORTSDIR}/devel/t1lib
RUN_DEPENDS= mktexlsr:${PORTSDIR}/print/teTeX
WRKSRC= ${WRKDIR}/tetex-src-${VER_TETEX}
PLIST_SUB= TEXMFDIR=${TEXMFDIR} MKTEXLSR=${MKTEXLSR}
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX} \
--disable-multiplatform \
--without-texinfo --without-dialog \
--with-system-ncurses --with-system-zlib \
--with-system-wwwlib --with-libwww-libdir=${LIBWWW_PREFIX}/lib \
--with-libwww-include=${LIBWWW_PREFIX}/include/w3c-libwww \
--with-system-pnglib --with-pnglib-libdir=${LIBPNG_PREFIX}/lib \
--with-pnglib-include=${LIBPNG_PREFIX}/include \
--with-system-t1lib --with-t1lib-libdir=${LIBT1_PREFIX}/lib \
--with-t1lib-include=${LIBT1_PREFIX}/include
PKGINSTALL= ${WRKDIR}/pkg-install.sh
PKGDEINSTALL= ${WRKDIR}/pkg-install.sh
CONFLICTS= ja-ptex-base* dvips* ja-dvipsk-vflib-*
MAN1= dvips.1 afm2tfm.1
INFO= dvips
VER_TETEX= 2.0.2
VER_JPATCH= 1.6
MKTEXLSR?= ${LOCALBASE}/bin/mktexlsr
TEXMFDIR?= share/texmf
LIBPNG_PREFIX?= ${LOCALBASE}
LIBWWW_PREFIX?= ${LOCALBASE}
LIBT1_PREFIX?= ${LOCALBASE}
DVIPSKCNF= ${PREFIX}/${TEXMFDIR}/dvips/config/config.ps
do-patch:
cd ${WRKSRC}/texk &&\
${PATCH} -p0 < ${WRKDIR}/dvipsk-${PORTVERSION}-p${VER_JPATCH}.patch
${SED} -e 's,%%TEXMFCNF%%,${TEXMFCNF},g;s,%%DVIPSKCNF%%,${DVIPSKCNF},g;s,%%MKTEXLSR%%,${MKTEXLSR},g' \
< ${FILESDIR}/pkg-install.in > ${PKGINSTALL}
${CHMOD} 0755 ${PKGINSTALL}
do-build:
cd ${WRKSRC}/texk/dvipsk &&\
${MAKE_ENV} ${MAKE} ${ALL_TARGET}
do-install:
cd ${WRKSRC}/texk/dvipsk &&\
${MAKE_ENV} ${MAKE} ${INSTALL_TARGET}
${INSTALL_DATA} ${FILESDIR}/kanji.map ${PREFIX}/${TEXMFDIR}/dvips/config
${INSTALL_DATA} ${FILESDIR}/config.ps ${PREFIX}/${TEXMFDIR}/dvips/config/config.ps.ptex-tetex
post-install:
@${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>