aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/big5con/Makefile
blob: bf24fd75299d4e1e4efca7300439209cb05ccca6 (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:    big5con
# Date created:     07 Jan 1997
# Whom:         Hung-Chi Chu <hcchu@r350.ee.ntu.edu.tw>
#
# $FreeBSD$
#

PORTNAME=   big5con
PORTVERSION=    0.92e
CATEGORIES= chinese
MASTER_SITES=   ftp://bsd.sinica.edu.tw/pub/FreeBSD/taiwan/users/woju/source/ \
        ftp://bsd.sinica.edu.tw/pub/FreeBSD/taiwan/users/woju/binary/ \
        ftp://freebsd.csie.nctu.edu.tw/pub/taiwan/NTU/woju/source/ \
        ftp://freebsd.csie.nctu.edu.tw/pub/taiwan/NTU/woju/binary/
DISTFILES=  big5con-0.92e.tgz b5cbin-pa.tgz

MAINTAINER= woju@freebsd.ee.ntu.edu.tw

ONLY_FOR_ARCHS= i386

EXTRACT_ONLY=   ${DISTNAME}.tgz

# With the help from pa@freebsd.ee.ntu.edu.tw
# +0.92d use kc-fonts, whcih can be included in cdrom, instead of taipei-fonts.
# Note: 0.92c is restricted due to the taipei-fonts-copyright.
# 
# 1999/02/12: 0.92d -> 0.92e
# Fix some bugs
# ftp://bsd.sinica.edu.tw/pub/FreeBSD/taiwan/users/woju/source/b5c-d2e.patch

.include <bsd.port.pre.mk>
post-patch:
.if ${OSVERSION} > 500012
    @${PERL} -pi -e 's,machine/console.h>,sys/consio.h>\n#include\t<sys/kbio.h>\n,' ${WRKSRC}/include/*
    @${PERL} -pi -e 's,machine/console.h>,sys/consio.h>\n#include\t<sys/kbio.h>\n,' ${WRKSRC}/src/*
.endif
pre-install:
    @if [ ! -f ${PREFIX}/lib/fonts/kc16.smf ]; then \
        tar xvfzp ${DISTDIR}/b5cbin-pa.tgz -C ${PREFIX}; \
    fi

post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>