aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/dvi2ps/Makefile
blob: 17898832828576ba50b0b3bb51f1d6980f136efe (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
# New ports collection makefile for: jp-dvi2ps
# Date created:     15 Sep 1996
# Whom:         Mita Yoshio <mita@jp.FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   dvi2ps
PORTVERSION=    2.0
CATEGORIES= japanese print
MASTER_SITES=   ftp://ftp.math.s.chiba-u.ac.jp/tex/
DISTNAME=   ${PORTNAME}-${PORTVERSION}j

MAINTAINER= mita@jp.FreeBSD.org

BUILD_DEPENDS=  nkf:${PORTSDIR}/japanese/nkf
LIB_DEPENDS=    VFlib2.24:${PORTSDIR}/japanese/vflib

MAN1=       dvi2ps.1 ../ja/man1/dvi2ps.1

post-patch:
    @(cd ${WRKSRC}; make newlib)

post-build:
    @(cd ${WRKSRC}/tools; \
    cc -O -o nup nup.c; \
    cc -O -traditional -o texfix texfix.c\
        )
post-install:
    @(cd  ${WRKSRC}; \
    make install-lib; \
    ${CP} -R doc ${PREFIX}/lib/dvi2ps/ ;\
    ${MV} ${PREFIX}/lib/dvi2ps/doc/dvi2ps.man ${PREFIX}/man/man1/dvi2ps.1 ;\
    nkf -e ${PREFIX}/lib/dvi2ps/doc/dvi2ps.jman > \
            ${PREFIX}/man/ja/man1/dvi2ps.1 ;\
    ${RM} -f ${PREFIX}/lib/dvi2ps/doc/dvi2ps.jman ;\
    ${INSTALL_SCRIPT} tools/fontlink ${PREFIX}/lib/dvi2ps ;\
    ${INSTALL_PROGRAM} tools/nup ${PREFIX}/bin ;\
    ${INSTALL_PROGRAM} tools/texfix ${PREFIX}/bin ;\
    ${INSTALL_SCRIPT} tools/psstrip ${PREFIX}/bin ;\
    ${INSTALL_SCRIPT} tools/MakePK ${PREFIX}/bin ;\
    )
    @${SH} ${PKGDIR}/REQ ${PKGNAME} INSTALL

.include <bsd.port.mk>