aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/cce/Makefile
blob: 4a475bd7c2ffcd9dba124bd8260b6de8d900dc28 (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
# New ports collection makefile for:   cce
# Date created:                10 Mar 2001
# Whom:                        Shen Chuan-Hsing
#
# $FreeBSD$
#

PORTNAME=   cce
PORTVERSION=    0.36
CATEGORIES= chinese
MASTER_SITES=   http://programmer.lib.sjtu.edu.cn/cce/ \
        ftp://freebsd.sinica.edu.tw/pub/statue/cce/
DISTNAME=   ${PORTNAME}-${PORTVERSION}-05052000

PATCH_SITES=    ${MASTER_SITES}
PATCHFILES= cce-0.36_security.ukai-lin-fok.patch.gz
PATCH_DIST_ARGS=    -d ${WRKSRC} -p1

MAINTAINER= statue@freebsd.sinica.edu.tw

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USE_REINPLACE=  yes

MAN1=       cce.1

pre-configure:
    (cd ${WRKSRC} && ${LN} -fs Makefile.FreeBSD Makefile )

.include <bsd.port.pre.mk>
post-patch:
.if ${OSVERSION} > 500012
    @${FIND} ${WRKSRC}/src/ -name "*.c" | ${XARGS} ${REINPLACE_CMD} -e 's,machine/console.h>,sys/consio.h>\n#include <sys/fbio.h>\n#include <sys/kbio.h>\n,'
.endif
.include <bsd.port.post.mk>