diff options
author | Hiroki Sato <hrs@FreeBSD.org> | 2004-06-18 15:55:13 +0000 |
---|---|---|
committer | Hiroki Sato <hrs@FreeBSD.org> | 2004-06-18 15:55:13 +0000 |
commit | 92cb0a9c62514db5f506c0cddfa028c19edce324 (patch) | |
tree | 2c6becc7b0790bae04f2391a373a30baa6efe79c /japanese/dvipsk/Makefile | |
parent | e9544d19cf117728a660befe5d4b8020174b386d (diff) |
Fix dependencies (print/teTeX-*) and add some style changes.
Approved by: linimon (mentor)
Notes
Notes:
svn path=/head/; revision=111736
Diffstat (limited to 'japanese/dvipsk/Makefile')
-rw-r--r-- | japanese/dvipsk/Makefile | 49 |
1 files changed, 29 insertions, 20 deletions
diff --git a/japanese/dvipsk/Makefile b/japanese/dvipsk/Makefile index c52d203e2a96..976107179813 100644 --- a/japanese/dvipsk/Makefile +++ b/japanese/dvipsk/Makefile @@ -7,6 +7,7 @@ PORTNAME= dvipsk PORTVERSION= 5.92b +PORTREVISION= 1 CATEGORIES= japanese print MASTER_SITES= ftp://sunsite.informatik.rwth-aachen.de/pub/comp/tex/teTeX/2.0/distrib/ \ ${MASTER_SITE_TEX_CTAN} \ @@ -21,14 +22,25 @@ DIST_SUBDIR= teTeX MAINTAINER= hrs@FreeBSD.org COMMENT= A DVI to PostScript translator + Japanese patch -BUILD_DEPENDS= mktexlsr:${PORTSDIR}/print/teTeX +BUILD_DEPENDS= tetex-modesw:${PORTSDIR}/print/tex-texmflocal \ + ${LOCALBASE}/${TEXMF}/LICENSE.texmf:${PORTSDIR}/print/teTeX-texmf \ + mktexlsr:${PORTSDIR}/print/teTeX-base \ + ${LOCALBASE}/${TEXMF}/fonts/tfm/ptex/min10.tfm:${PORTSDIR}/japanese/ptex-tetex +RUN_DEPENDS= tetex-modesw:${PORTSDIR}/print/tex-texmflocal \ + ${LOCALBASE}/${TEXMF}/LICENSE.texmf:${PORTSDIR}/print/teTeX-texmf \ + mktexlsr:${PORTSDIR}/print/teTeX-base \ + ${LOCALBASE}/${TEXMF}/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 -RUN_DEPENDS= mktexlsr:${PORTSDIR}/print/teTeX -WRKSRC= ${WRKDIR}/tetex-src-${VER_TETEX} -PLIST_SUB= TEXMFDIR=${TEXMFDIR} MKTEXLSR=${MKTEXLSR} +PATCH_WRKSRC= ${WRKDIR}/tetex-src-${VER_TETEX}/texk +EXTRA_PATCHES= ${WRKDIR}/dvipsk-${PORTVERSION}-p${VER_JPATCH}.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 + +PLIST_SUB= TEXMF=${TEXMF} MKTEXLSR=${MKTEXLSR} GNU_CONFIGURE= yes CONFIGURE_ARGS= --prefix=${PREFIX} \ --disable-multiplatform \ @@ -50,30 +62,27 @@ INFO= dvips VER_TETEX= 2.0.2 VER_JPATCH= 1.6 MKTEXLSR?= ${LOCALBASE}/bin/mktexlsr -TEXMFDIR?= share/texmf +TEXMF?= 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' \ +TETEX_MODESW= ${PREFIX}/bin/tetex-modesw +PKGINSTALL_SUB= TETEX_MODESW=${TETEX_MODESW} \ + MKTEXLSR=${MKTEXLSR} + +post-configure: + ${SED} ${PKGINSTALL_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ < ${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: + ${INSTALL_DATA} \ + ${FILESDIR}/ptex-kanji.map \ + ${PREFIX}/${TEXMF}/dvips/ptex/ptex-kanji.map + ${INSTALL_DATA} \ + ${FILESDIR}/config.ps.ptex-tetex \ + ${PREFIX}/${TEXMF}/dvips/config/config.ps.ptex-tetex @${PKGINSTALL} ${PKGNAME} POST-INSTALL .include <bsd.port.mk> |