2006-01-20 15:20:59 +01:00
|
|
|
# $NetBSD: Makefile,v 1.22 2006/01/20 14:20:59 tonio Exp $
|
2003-03-15 21:00:27 +01:00
|
|
|
|
|
|
|
DISTNAME= ptex-src-${PTEX_VERS}
|
|
|
|
PKGNAME= ja-ptex-bin-${PTEX_VERS}
|
2006-01-08 15:00:11 +01:00
|
|
|
PKGREVISION= 3
|
2003-03-15 21:00:27 +01:00
|
|
|
CATEGORIES= print japanese
|
|
|
|
MASTER_SITES= ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/tetex/ \
|
|
|
|
ftp://ring.gr.jp/pub/text/TeX/ascii-ptex/tetex/
|
|
|
|
DISTFILES+= ${DISTNAME}${EXTRACT_SUFX} # XXX
|
|
|
|
DISTFILES+= ${DF_DVIPSK_PATCH}
|
|
|
|
DISTFILES+= mendexk${MENDEXK_VERS}${EXTRACT_SUFX}
|
|
|
|
|
2003-07-18 00:50:55 +02:00
|
|
|
MAINTAINER= kei@NetBSD.org
|
2003-03-15 21:00:27 +01:00
|
|
|
HOMEPAGE= http://www.ascii.co.jp/pb/ptex/
|
2003-07-21 19:10:16 +02:00
|
|
|
COMMENT= Publishing TeX (pTeX)
|
2003-03-15 21:00:27 +01:00
|
|
|
|
|
|
|
# XXX ${MAKE_VARIABLES} won't be extracted here. strange...
|
|
|
|
SITES_dvipsk-jpatch-p1.6.tar.gz= \
|
|
|
|
ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/dvips/ \
|
|
|
|
ftp://ring.gr.jp/pub/text/TeX/ascii-ptex/dvips/
|
|
|
|
SITES_mendexk2.5.tar.gz= \
|
|
|
|
ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/mendex/ \
|
|
|
|
ftp://ring.gr.jp/pub/text/TeX/ascii-ptex/mendex/
|
|
|
|
|
|
|
|
DEPENDS+= ja-ptex-share>=2.1:../../print/ja-ptex-share
|
|
|
|
|
2003-09-19 11:38:03 +02:00
|
|
|
INSTALL_EXTRA_TMPL+= ${.CURDIR}/INSTALL
|
|
|
|
DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/DEINSTALL
|
|
|
|
|
2006-01-20 15:20:59 +01:00
|
|
|
.include "../../print/teTeX-bin/buildlink3.mk"
|
2003-12-24 14:02:00 +01:00
|
|
|
.include "../../print/teTeX-bin/Makefile.common"
|
2003-03-15 21:00:27 +01:00
|
|
|
|
|
|
|
PTEX_VERS= 3.1.2
|
|
|
|
DVIPSK_PATCH_VERS= p1.6
|
|
|
|
MENDEXK_VERS= 2.5
|
|
|
|
|
|
|
|
DF_TETEX_BIN= tetex-src-${TETEX_BIN_VERS}${EXTRACT_SUFX}
|
|
|
|
DF_DVIPSK_PATCH= dvipsk-jpatch-${DVIPSK_PATCH_VERS}${EXTRACT_SUFX}
|
|
|
|
DF_MENDEXK= mendexk${MENDEXK_VERS}${EXTRACT_SUFX}
|
|
|
|
|
2005-04-02 21:35:48 +02:00
|
|
|
WRKDIR_!= cd ${PKGSRCDIR}/print/teTeX-bin; ${MAKE} show-var VARNAME=WRKDIR
|
2003-03-15 21:00:27 +01:00
|
|
|
TETEX_DIR= ${WRKDIR_}/tetex-src-${TETEX_BIN_VERS}
|
|
|
|
WRKSRC= ${TETEX_DIR}
|
|
|
|
WRKSRC_PTEX= ${WRKSRC}/texk/web2c/${DISTNAME:S/-src//}
|
|
|
|
EXTRACT_ONLY= # none
|
|
|
|
|
2005-11-09 00:03:10 +01:00
|
|
|
TEXMF= ${PKG_TEXMFPREFIX}
|
2003-03-15 21:00:27 +01:00
|
|
|
TEXMFLOCAL= ${PREFIX}/share/texmf.local
|
2005-12-05 21:49:47 +01:00
|
|
|
FILES_SUBST+= TEXMFLOCAL=${TEXMFLOCAL:Q}
|
|
|
|
FILES_SUBST+= TEXMFSITE=${TEXMFSITE:Q}
|
|
|
|
FILES_SUBST+= WRKDIR_=${WRKDIR_:Q}
|
2003-03-15 21:00:27 +01:00
|
|
|
#FILES_SUBST+= FILESDIR=${FILESDIR}
|
2005-12-05 21:49:47 +01:00
|
|
|
FILES_SUBST+= PATCH=${PATCH:Q}
|
2003-03-15 21:00:27 +01:00
|
|
|
|
|
|
|
pre-extract:
|
2004-05-23 17:09:06 +02:00
|
|
|
if [ ! -r ${WRKSRC} ]; then \
|
2003-12-24 14:02:00 +01:00
|
|
|
cd ../../print/teTeX-bin && ${MAKE} patch; \
|
2004-05-23 17:09:06 +02:00
|
|
|
elif [ ! -r ${WRKSRC_PTEX} ]; then \
|
2003-12-24 14:02:00 +01:00
|
|
|
cd ../../print/teTeX-bin && ${MAKE} clean; ${MAKE} patch; \
|
2003-03-15 21:00:27 +01:00
|
|
|
fi;
|
|
|
|
|
|
|
|
post-extract:
|
2005-05-18 00:00:13 +02:00
|
|
|
cd ${WRKDIR_}; \
|
|
|
|
extract_file=${_DISTDIR:Q}/${DF_TETEX_BIN:Q}; \
|
|
|
|
${EXTRACT_CMD${EXTRACT_SUFX}}
|
|
|
|
cd ${WRKSRC}/texk/web2c; \
|
|
|
|
extract_file=${_DISTDIR:Q}/${DISTNAME:Q}${EXTRACT_SUFX}; \
|
|
|
|
${EXTRACT_CMD${EXTRACT_SUFX}}
|
|
|
|
cd ${WRKSRC}/texk; \
|
|
|
|
extract_file=${_DISTDIR:Q}/${DF_DVIPSK_PATCH:Q}; \
|
|
|
|
${EXTRACT_CMD${EXTRACT_SUFX}}
|
|
|
|
cd ${WRKSRC}/texk; \
|
|
|
|
extract_file=${_DISTDIR:Q}/${DF_MENDEXK:Q}; \
|
|
|
|
${EXTRACT_CMD${EXTRACT_SUFX}}
|
2003-03-15 21:00:27 +01:00
|
|
|
${SED} -e "s|\$$TEXMF/ptex/plain/||" \
|
|
|
|
${LOCALBASE}/share/texmf.local/ptex/plain/base/ptex.tex > \
|
|
|
|
${WRKSRC_PTEX}/ptex.tex
|
|
|
|
${RM} -f ${WRKSRC}/texmf ${WRKSRC}/texmf.local
|
|
|
|
${LN} -s ${LOCALBASE}/share/texmf ${WRKSRC}
|
|
|
|
${LN} -s ${LOCALBASE}/share/texmf.local ${WRKSRC}
|
|
|
|
|
|
|
|
pre-patch:
|
|
|
|
${PATCH} -d ${WRKSRC}/texk -p0 -s \
|
|
|
|
< ${WRKSRC}/texk/dvipsk-5.92b-${DVIPSK_PATCH_VERS}.patch
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
${MV} ${WRKSRC}/texk/kpathsea/texmf.in \
|
|
|
|
${WRKSRC}/texk/kpathsea/texmf.in.orig
|
|
|
|
${SED} -e 's,@texmfsite@,${TEXMFSITE},' \
|
|
|
|
-e 's,@texmflocal@,${TEXMFLOCAL},' \
|
|
|
|
${WRKSRC}/texk/kpathsea/texmf.in.orig > \
|
|
|
|
${WRKSRC}/texk/kpathsea/texmf.in
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
cd ${WRKSRC_PTEX}; ./configure EUC ${TEXMFLOCAL}
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC}/texk/web2c; ${MAKE_PROGRAM}
|
|
|
|
cd ${WRKSRC_PTEX}; ${MAKE_PROGRAM}
|
|
|
|
cd ${WRKSRC}/texk/dvipsk; ${MAKE_PROGRAM}
|
|
|
|
cd ${WRKSRC}/texk/mendexk${MENDEXK_VERS}; ${MAKE_PROGRAM}
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
cd ${WRKSRC_PTEX}; \
|
|
|
|
${SETENV} texmflcl=${TEXMFLOCAL} ${MAKE_PROGRAM} install
|
|
|
|
cd ${WRKSRC}/texk/dvipsk; \
|
|
|
|
${SETENV} texmflcl=${TEXMFLOCAL} ${MAKE_PROGRAM} install; \
|
|
|
|
${INSTALL_DATA} psfonts.map ${TEXMFLOCAL}/dvips/base
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/texk/mendexk${MENDEXK_VERS}/mendex \
|
|
|
|
${PREFIX}/bin
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/texk/PSTricks.patch ${TEXMF}/dvips/pstricks
|
|
|
|
|
|
|
|
pre-clean:
|
2003-12-24 14:02:00 +01:00
|
|
|
cd ../../print/teTeX-bin && ${MAKE} clean
|
2003-03-15 21:00:27 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|