2001-09-08 18:37:56 +02:00
|
|
|
# Ports collection makefile for: zhcon
|
|
|
|
# Date created: Sun Sep 9, 2001
|
|
|
|
# Whom: statue@freebsd.sinica.edu.tw
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= zhcon
|
2002-11-28 03:25:03 +01:00
|
|
|
PORTVERSION= 0.2.1
|
2001-09-08 18:37:56 +02:00
|
|
|
CATEGORIES= chinese
|
2002-03-06 04:29:13 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2001-09-08 18:37:56 +02:00
|
|
|
|
|
|
|
MAINTAINER= statue@freebsd.sinica.edu.tw
|
2003-02-21 12:08:38 +01:00
|
|
|
COMMENT= A fast Console Chinese System which supports framebuffer device
|
2001-09-08 18:37:56 +02:00
|
|
|
|
2002-08-01 18:22:41 +02:00
|
|
|
LIB_DEPENDS= intl.4:${PORTSDIR}/devel/gettext
|
2002-03-06 04:29:13 +01:00
|
|
|
|
2001-10-14 18:08:00 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2002-03-06 04:29:13 +01:00
|
|
|
CONFIGURE_ARGS= --with-included-gettext=${LOCALBASE}
|
2001-09-08 18:37:56 +02:00
|
|
|
USE_GMAKE= yes
|
2002-11-04 06:46:38 +01:00
|
|
|
USE_REINPLACE= yes
|
2002-11-28 03:25:03 +01:00
|
|
|
REINPLACE_ARGS= # empty
|
|
|
|
USE_XLIB= yes
|
2002-12-22 13:47:05 +01:00
|
|
|
ONLY_FOR_ARCHS= i386
|
2001-09-08 18:37:56 +02:00
|
|
|
|
|
|
|
MAN1= zhcon.1
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2001-09-11 06:49:46 +02:00
|
|
|
|
2001-09-08 18:37:56 +02:00
|
|
|
post-patch:
|
2001-09-11 06:49:46 +02:00
|
|
|
.if ${OSVERSION} > 500012
|
2002-11-28 03:25:03 +01:00
|
|
|
.for i in src/main.cpp src/zhcon.cpp src/inputmanager.cpp src/display/fbdev.cpp src/mouse.h
|
|
|
|
${REINPLACE_CMD} 's,machine/console.h>,sys/consio.h>@#include <sys/fbio.h>@#include <sys/kbio.h>,' ${WRKSRC}/${i} | tr '@' '\n' > ${WRKSRC}/${i}.bak && \
|
|
|
|
${MV} ${WRKSRC}/${i}.bak ${WRKSRC}/${i}
|
|
|
|
.endfor
|
|
|
|
${REINPLACE_CMD} -i.bak -e 's,machine/mouse.h>,sys/mouse.h>,' ${WRKSRC}/src/mouse.h
|
2001-09-11 06:49:46 +02:00
|
|
|
.endif
|
|
|
|
|
2001-09-08 18:37:56 +02:00
|
|
|
.include <bsd.port.post.mk>
|