aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/mendexk-sjis/Makefile
blob: 4df62f6400c0277042c98ae24389cf4ce888b204 (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
43
44
45
46
47
48
49
50
51
52
53
54
# New ports collection makefile for:    mendexk-sjis
# Date created:         1 Dec 1997
# Whom:                 Makoto WATANABE <watanabe@zlab.phys.nagoya-u.ac.jp>
#
# $FreeBSD$
#

PORTNAME=   mendexk
PKGNAMESUFFIX=  -sjis
PORTVERSION=    2.4d
CATEGORIES= japanese print
MASTER_SITES=   ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/mendex/ \
        ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/ptex218/web2c/
DISTNAME=   ${PORTNAME}${PORTVERSION}

DISTFILES=  ${DISTNAME}${EXTRACT_SUFX} ${KPATHSEA_PARENT}${EXTRACT_SUFX}

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

BUILD_DEPENDS=  nkf:${PORTSDIR}/japanese/nkf

USE_GMAKE=  yes
DIST_SUBDIR=    ptex

MANLANG=    ja
MAN1=       mendex.1

KPATHSEA_PARENT=    web2c-7.2

KANJI_FILES=    kana.h ktable.h

pre-configure:
    @( cd ${WRKDIR}/${KPATHSEA_PARENT}/kpathsea ; \
        ./configure --prefix=${PREFIX} )
    @( cd ${WRKSRC} ; \
        for i in ${KANJI_FILES}; do \
          ${MV} $$i $$i.orig ; \
          nkf -s $$i.orig > $$i ; \
        done )

do-build:
    @( cd ${WRKDIR}/${KPATHSEA_PARENT}/kpathsea ; ${GMAKE} )
    @( cd ${WRKSRC} ; ${MAKE} kpathsea_parent=../${KPATHSEA_PARENT} )

do-install:
    @${INSTALL_PROGRAM} ${WRKSRC}/mendex ${PREFIX}/bin
    @${MKDIR} ${PREFIX}/man/${MANLANG}/man1
    @${INSTALL_MAN} ${WRKSRC}/mendex.1 ${PREFIX}/man/${MANLANG}/man1
.if !defined(NOPORTDOCS)
    @${MKDIR} ${PREFIX}/share/doc/mendex
    @${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/mendex
.endif

.include <bsd.port.mk>