aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/vflib/Makefile
blob: 7d3430e4777cdb9fad3a333e9102ec9eabb05dc3 (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:    jp-vflib
# Version required: 2.22
# Date created:     10 May 1996
# Whom:         Mita Yoshio <mita@jp.FreeBSD.org>
#
# $Id: Makefile,v 1.5 1996/12/05 12:04:39 asami Exp $
#

DISTNAME=   VFlib-2.22
PKGNAME=    jp-vflib-2.22
CATEGORIES= japanese print
MASTER_SITES=   ftp://gull.se.hiroshima-u.ac.jp/pub/VFlib/
DISTFILES=  VFlib-2.22.tar.gz watanabe-vf.tar.Z \
        VFlib-2.22-PATCH-1 VFlib-2.22-PATCH-2 \
        VFlib-2.22-PATCH-3 VFlib-2.22-PATCH-4.updated

MAINTAINER= mita@jp.FreeBSD.org

EXTRACT_ONLY=   VFlib-2.22.tar.gz

pre-patch:
    @(cd ${WRKSRC}; \
     uudecode ${DISTDIR}/VFlib-2.22-PATCH-1 ; \
     cd tools ; \
     tar xzf ../ktestdiff.tar.gz ; \
     ${PATCH} -s < Imakefile.diff ; \
     ${PATCH} -s < ktest.diff ; \
     cd ../src ; \
     ${PATCH} -s < ${DISTDIR}/VFlib-2.22-PATCH-2 ; \
     ${PATCH} -s < ${DISTDIR}/VFlib-2.22-PATCH-3 )
    (cd ${WRKSRC}; \
     uudecode ${DISTDIR}/VFlib-2.22-PATCH-4.updated ; \
     gzcat VF_FNTWV.patch.gz | ${PATCH} -s -p1  \
    )

do-build:
    @(cd ${WRKSRC}/src; make)
    @(cd ${WRKSRC}/tools; xmkmf; make)

do-install:
    ${MKDIR} ${PREFIX}/lib/VFlib
    @(cd ${WRKSRC}/src; make install)
    @(cd ${WRKSRC}/tools; \
      ${INSTALL_PROGRAM} fmtest disol kban ktest vfperf vftest \
        ${PREFIX}/lib/VFlib)
    @(cd ${WRKSRC}; \
      ${CP} -R doc jTeX COPYING README.txt.JP_EUC vfontcap \
        ${PREFIX}/lib/VFlib)
    ${MKDIR} ${PREFIX}/share/fonts/watanabe_font
    tar -C ${PREFIX}/share/fonts/watanabe_font \
      -xzf ${DISTDIR}/watanabe-vf.tar.Z
    /sbin/ldconfig -m ${PREFIX}/lib

.include <bsd.port.mk>