aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/platex209-euc/Makefile
blob: fdd8680e52cbe3beb3f13a22a4fe98d92f70b3e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# New ports collection makefile for:    platex209-euc
# Version required: 2.09
# Date created:     01 Jan 1998
# Whom:         Makoto WATANABE <watanabe@zlab.phys.nagoya-u.ac.jp>
#
# $FreeBSD$
#

DISTNAME=   platex209
PKGNAME=    ja-platex209-euc-1.0
CATEGORIES= japanese print
MASTER_SITES=   ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/platex/

MAINTAINER= watanabe@zlab.phys.nagoya-u.ac.jp

BUILD_DEPENDS=  ptex:${PORTSDIR}/japanese/ptex-euc \
        nkf:${PORTSDIR}/japanese/nkf
RUN_DEPENDS=    ptex:${PORTSDIR}/japanese/ptex-euc

MANUAL_PACKAGE_BUILD=   incompatible with other versions of platex209-*

TEXMF=      ${PREFIX}/share/texmf

pre-configure:
    @(cd ${WRKSRC} ; \
      for i in * ; do ${MV} $$i $$i.orig ; nkf -e $$i.orig > $$i ; done)

do-build:
    @(cd ${WRKSRC}; ptex -ini 'plplain.tex \dump')

do-install:
    ${MKDIR} ${TEXMF}/tex/platex209/doc
    ${MKDIR} ${TEXMF}/tex/platex209/general
    ${MKDIR} ${TEXMF}/tex/platex209/sty
    @${INSTALL_DATA} ${WRKSRC}/README.txt ${TEXMF}/tex/platex209
    @${INSTALL_DATA} ${WRKSRC}/*.doc ${TEXMF}/tex/platex209/doc
    @${INSTALL_DATA} ${WRKSRC}/*.tex ${TEXMF}/tex/platex209/general
    @${INSTALL_DATA} ${WRKSRC}/*.sty ${TEXMF}/tex/platex209/sty
    @${INSTALL_DATA} ${WRKSRC}/plplain.fmt ${TEXMF}/web2c/platex209.fmt
    ${LN} -fs ptex ${PREFIX}/bin/platex209

.include <bsd.port.mk>