diff options
Diffstat (limited to 'japanese/dvipsk/Makefile')
-rw-r--r-- | japanese/dvipsk/Makefile | 80 |
1 files changed, 43 insertions, 37 deletions
diff --git a/japanese/dvipsk/Makefile b/japanese/dvipsk/Makefile index 923ce0db34f7..96cd5941f80f 100644 --- a/japanese/dvipsk/Makefile +++ b/japanese/dvipsk/Makefile @@ -7,78 +7,84 @@ PORTNAME= dvipsk PORTVERSION= 5.94a -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= japanese print -MASTER_SITES= ftp://sunsite.informatik.rwth-aachen.de/pub/comp/tex/teTeX/2.0/distrib/ \ +MASTER_SITES= ftp://ftp.dante.de/tex-archive/systems/unix/teTeX-beta/ \ ${MASTER_SITE_TEX_CTAN} \ ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/dvips/:jpatch \ ${MASTER_SITE_RINGSERVER:S,%SUBDIR%,text/TeX/ptex-win32/utils,:S,$,:udvipspatch,} MASTER_SITE_SUBDIR= systems/unix/teTeX/2.0/distrib/ PKGNAMEPREFIX= ja- PKGNAMESUFFIX= -tetex -DISTFILES= tetex-src-${VER_TETEX}${EXTRACT_SUFX} \ +DISTFILES= ${TETEX_SRC}${EXTRACT_SUFX} \ dvipsk-jpatch-p${VER_JPATCH}${EXTRACT_SUFX}:jpatch \ - udvips-5.94a-p1.6a.patch:udvipspatch + udvips-5.94a-p1.6a1.patch:udvipspatch DIST_SUBDIR= teTeX -EXTRACT_ONLY= tetex-src-${VER_TETEX}${EXTRACT_SUFX} \ +EXTRACT_ONLY= ${TETEX_SRC}${EXTRACT_SUFX} \ dvipsk-jpatch-p${VER_JPATCH}${EXTRACT_SUFX} MAINTAINER= hrs@FreeBSD.org COMMENT= A DVI to PostScript translator + Japanese patch BUILD_DEPENDS= ${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal \ - ${LOCALBASE}/${TEXMF}/LICENSE.texmf:${PORTSDIR}/print/teTeX-texmf \ + ${LOCALBASE}/${TEXMFDISTDIR}/LICENSE.texmf:${PORTSDIR}/print/teTeX-texmf \ mktexlsr:${PORTSDIR}/print/teTeX-base \ - ${LOCALBASE}/${TEXMF}/fonts/tfm/ptex/min10.tfm:${PORTSDIR}/japanese/ptex-tetex + ${LOCALBASE}/${TEXMFDIR}/fonts/tfm/ptex/min10.tfm:${PORTSDIR}/japanese/ptex-tetex RUN_DEPENDS= ${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal \ - ${LOCALBASE}/${TEXMF}/LICENSE.texmf:${PORTSDIR}/print/teTeX-texmf \ + ${LOCALBASE}/${TEXMFDISTDIR}/LICENSE.texmf:${PORTSDIR}/print/teTeX-texmf \ mktexlsr:${PORTSDIR}/print/teTeX-base \ - ${LOCALBASE}/${TEXMF}/fonts/tfm/ptex/min10.tfm:${PORTSDIR}/japanese/ptex-tetex + ${LOCALBASE}/${TEXMFDIR}/fonts/tfm/ptex/min10.tfm:${PORTSDIR}/japanese/ptex-tetex LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \ wwwcore.1:${PORTSDIR}/www/libwww \ t1.5:${PORTSDIR}/devel/t1lib -PATCH_WRKSRC= ${WRKDIR}/tetex-src-${VER_TETEX}/texk +PATCH_WRKSRC= ${WRKDIR}/${TETEX_SRC}/texk EXTRA_PATCHES= ${WRKDIR}/dvipsk-5.92b-p${VER_JPATCH}.patch \ - ${DISTDIR}/${DIST_SUBDIR}/udvips-5.94a-p1.6a.patch -CONFIGURE_WRKSRC=${WRKDIR}/tetex-src-${VER_TETEX} -BUILD_WRKSRC= ${WRKDIR}/tetex-src-${VER_TETEX}/texk/dvipsk -INSTALL_WRKSRC= ${WRKDIR}/tetex-src-${VER_TETEX}/texk/dvipsk + ${DISTDIR}/${DIST_SUBDIR}/udvips-5.94a-p1.6a1.patch +CONFIGURE_WRKSRC=${WRKDIR}/${TETEX_SRC} +BUILD_WRKSRC= ${WRKDIR}/${TETEX_SRC}/texk/dvipsk +INSTALL_WRKSRC= ${WRKDIR}/${TETEX_SRC}/texk/dvipsk PLIST_SUB= DVIPSDIR=${DVIPSDIR} \ MKTEXLSR=${MKTEXLSR} \ - TEXMF=${TEXMF} + TEXMFDIR=${TEXMFDIR} \ + FONTSMAPDIR=${FONTSMAPDIR} USE_GMAKE= yes GNU_CONFIGURE= yes -CONFIGURE_ARGS= --prefix=${PREFIX} \ - --disable-multiplatform \ - --without-texinfo --without-dialog \ +CONFIGURE_ARGS= --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 -CONFLICTS= ja-ptex-base-[0-9]* dvips* + --with-t1lib-include=${LIBT1_PREFIX}/include \ + --without-xdvik --without-oxdvik +CONFLICTS= ja-ptex-base-[0-9]* \ + dvipsk-tetex-[0-9]* \ + dvips-[0-9]* MAN1= dvips.1 afm2tfm.1 INFO= dvips -VER_TETEX= 2.0.2 -VER_JPATCH= 1.6a +TETEX_SRC= tetex-src-2.0.2 +VER_JPATCH= 1.6a1 MKTEXLSR?= ${LOCALBASE}/bin/mktexlsr -TEXMF?= share/texmf -TEXMFLOCAL?= share/texmf-local -TEXMFLOCAL_LSR?=${LOCALBASE}/${TEXMFLOCAL}/ls-R -DVIPSDIR?= ${TEXMF}/dvips-ptex +TEXMFDIR= share/texmf +TEXMFDISTDIR= share/texmf-dist +TEXMFLOCALDIR= share/texmf-local +TEXMFLOCAL_LSR?=${LOCALBASE}/${TEXMFLOCALDIR}/ls-R +FONTSMAPDIR= ${TEXMFDIR}/fonts/map/dvips +DVIPSDIR?= ${TEXMFDIR}/dvips/ptex LIBPNG_PREFIX?= ${LOCALBASE} LIBWWW_PREFIX?= ${LOCALBASE} LIBT1_PREFIX?= ${LOCALBASE} UPDMAP_SUB= PREFIX=${PREFIX} \ - TEXMF=${TEXMF} \ + TEXMFDIR=${TEXMFDIR} \ DVIPSDIR=${DVIPSDIR} post-configure: @@ -87,11 +93,11 @@ post-configure: do-build: .for D in dvipsk odvipsk - cd ${WRKDIR}/tetex-src-${VER_TETEX}/texk/${D} &&\ + cd ${WRKDIR}/${TETEX_SRC}/texk/${D} &&\ ${SETENV} ${MAKE_ENV} ${GMAKE} \ ${MAKE_FLAGS} ${MAKEFILE} ${ALL_TARGET} .endfor - cd ${WRKDIR}/tetex-src-${VER_TETEX}/texk/udvipsk &&\ + cd ${WRKDIR}/${TETEX_SRC}/texk/udvipsk &&\ ${SETENV} ${MAKE_ENV} ${GMAKE} \ ${MAKE_FLAGS} ${MAKEFILE} \ program=udvips XDEFS=-DUDVIPS \ @@ -100,27 +106,27 @@ do-build: do-install: ${MKDIR} ${PREFIX}/${DVIPSDIR}/config .for D in dvipsk odvipsk - cd ${WRKDIR}/tetex-src-${VER_TETEX}/texk/${D} &&\ + cd ${WRKDIR}/${TETEX_SRC}/texk/${D} &&\ ${SETENV} ${MAKE_ENV} ${GMAKE} \ ${MAKE_FLAGS} ${MAKEFILE} ${INSTALL_TARGET} .endfor ${INSTALL_PROGRAM} \ ${PATCH_WRKSRC}/udvipsk/udvips \ ${PREFIX}/bin - ${RM} -f ${PREFIX}/${DVIPSDIR}/base/config.ps + ${MKDIR} ${PREFIX}/${FONTSMAPDIR}/ptex ${INSTALL_DATA} \ ${FILESDIR}/ptex-kanji.map \ - ${PREFIX}/${DVIPSDIR}/base/ptex-kanji.map - (${CAT} ${LOCALBASE}/${TEXMF}/web2c/updmap.cfg; \ - ${ECHO_CMD} "Map ptex-kanji.map" ) > ${WRKDIR}/updmap.cfg + ${PREFIX}/${FONTSMAPDIR}/ptex/kanji.map + (${CAT} ${LOCALBASE}/${TEXMFDISTDIR}/web2c/updmap.cfg; \ + ${ECHO_CMD} "Map kanji.map" ) > ${WRKDIR}/updmap.cfg ${INSTALL_DATA} \ ${WRKDIR}/updmap.cfg \ - ${PREFIX}/${TEXMF}/web2c-ptex/updmap.cfg + ${PREFIX}/${TEXMFDIR}/web2c/ptex/updmap.cfg ${SED} ${UPDMAP_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ ${FILESDIR}/updmap-ptex.in > ${WRKDIR}/updmap-ptex - ${INSTALL_SCRIPT} ${WRKDIR}/updmap-ptex ${PREFIX}/bin/updmap-ptex + ${INSTALL_SCRIPT} ${WRKDIR}/updmap-ptex ${PREFIX}/bin/updmap-sys-ptex ${MKTEXLSR} - ${SH} ${PREFIX}/bin/updmap-ptex --nohash + ${SH} ${PREFIX}/bin/updmap-sys-ptex --nohash post-install: ${MKTEXLSR} |