blob: 892326bf85c6f890a9eb6aabbe699b469074c150 (
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
|
# 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
PORTREVISION= 1
CATEGORIES= chinese
MASTER_SITES= 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= ports@FreeBSD.org
ONLY_FOR_ARCHS= i386
EXTRACT_ONLY= ${DISTNAME}.tgz
USE_REINPLACE= yes
REINPLACE_ARGS= # empty
# 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
.for i in include/ksymdef.h src/term.c src/vc.c src/vga.c
@${REINPLACE_CMD} 's,machine/console.h>,sys/consio.h>@#include <sys/kbio.h>@,' ${WRKSRC}/${i} | tr '@' '\n' > ${WRKSRC}/${i}.bak && \
${MV} ${WRKSRC}/${i}.bak ${WRKSRC}/${i}
.endfor
.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>
|