aboutsummaryrefslogtreecommitdiffstats
path: root/korean/han/Makefile
blob: a7f00e1c705047350a272e4487db48be3d513512 (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
# New ports collection makefile for:    han
# Date created:     12 Apr 1997
# Whom:         CHOI Junho <cjh@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   han
PORTVERSION=    1.0fb
PORTREVISION=   1
CATEGORIES= korean
MASTER_SITES=   ftp://ftp.kr.freebsd.org/pub/FreeBSD-kr/distfiles/

MAINTAINER= cjh@FreeBSD.org
COMMENT=    A hangul console

ONLY_FOR_ARCHS= i386

USE_GMAKE=  YES

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 502126
BROKEN=     "Does not compile on FreeBSD >= 5.x"
.endif

pre-patch:
    @${REINPLACE_CMD} -e 's,<malloc.h>,<stdlib.h>,' \
        ${WRKSRC}/src/vt.c ${WRKSRC}/lib/mem.c

post-configure:
    ${SED} -e 's%%WRKSRC%%${WRKSRC}' \
      -e 's%%PREFIX%%${PREFIX}' \
      -e 's%%DISTDIR%%${DISTDIR}' \
      ${FILESDIR}/dotconfig > ${WRKSRC}/.config
    ${SED} -e 's%%WRKSRC%%${WRKSRC}' \
      -e 's%%PREFIX%%${PREFIX}' \
      -e 's%%DISTDIR%%${DISTDIR}' \
      ${FILESDIR}/han.sh > ${WRKSRC}/han.sh

.include <bsd.port.post.mk>