1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/chinese/zhcon/Makefile
2003-02-21 11:08:38 +00:00

41 lines
1.1 KiB
Makefile

# Ports collection makefile for: zhcon
# Date created: Sun Sep 9, 2001
# Whom: statue@freebsd.sinica.edu.tw
#
# $FreeBSD$
#
PORTNAME= zhcon
PORTVERSION= 0.2.1
CATEGORIES= chinese
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= statue@freebsd.sinica.edu.tw
COMMENT= A fast Console Chinese System which supports framebuffer device
LIB_DEPENDS= intl.4:${PORTSDIR}/devel/gettext
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-included-gettext=${LOCALBASE}
USE_GMAKE= yes
USE_REINPLACE= yes
REINPLACE_ARGS= # empty
USE_XLIB= yes
ONLY_FOR_ARCHS= i386
MAN1= zhcon.1
.include <bsd.port.pre.mk>
post-patch:
.if ${OSVERSION} > 500012
.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
.endif
.include <bsd.port.post.mk>