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
|
2006-06-09 19:13:28 +02:00
|
|
|
PORTVERSION= 0.2.5
|
2008-06-06 16:17:21 +02:00
|
|
|
PORTREVISION= 2
|
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
|
|
|
|
2006-10-03 17:34:44 +02:00
|
|
|
MAINTAINER= chinsan@FreeBSD.org
|
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
|
|
|
|
2008-08-30 13:03:36 +02:00
|
|
|
PORTSCOUT= limit:^0\.2.[0-9]*
|
|
|
|
|
2001-10-14 18:08:00 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2002-12-22 13:47:05 +01:00
|
|
|
ONLY_FOR_ARCHS= i386
|
2006-06-11 22:24:44 +02:00
|
|
|
USE_ICONV= yes
|
|
|
|
# Don't bother to add ".if !defined(WITHOUT_NLS)", zhcon requires libintl
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
CONFIGURE_ARGS= --with-libintl-prefix=${LOCALBASE}
|
2007-06-06 01:33:44 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2004-10-26 18:37:44 +02:00
|
|
|
|
2006-05-05 17:35:02 +02:00
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
SUB_FILES= pkg-message
|
2001-09-08 18:37:56 +02:00
|
|
|
MAN1= zhcon.1
|
|
|
|
|
2003-11-07 18:36:28 +01:00
|
|
|
post-patch:
|
2007-08-04 13:41:30 +02:00
|
|
|
@${REINPLACE_CMD} -e 's,/etc,${PREFIX}/etc,' ${WRKSRC}/doc/zhcon.1.in
|
2005-05-01 06:53:09 +02:00
|
|
|
@${REINPLACE_CMD} -Ee 's,/dev/vga,/dev/ttyv0,g' ${WRKSRC}/src/display/fbdev.cpp
|
2006-06-09 19:13:28 +02:00
|
|
|
@${REINPLACE_CMD} -Ee 's,endian,sys/endian,g' ${WRKSRC}/src/display/fblinear4.cpp \
|
|
|
|
${WRKSRC}/src/display/fblinear8.cpp ${WRKSRC}/src/display/fblinear16.cpp \
|
|
|
|
${WRKSRC}/src/display/fblinear24.cpp
|
2007-08-04 13:41:30 +02:00
|
|
|
@${REINPLACE_CMD} -e '5 s,#,,; s,/usr/lib,${PREFIX}/lib,' ${WRKSRC}/src/zhcon.conf
|
|
|
|
@${REINPLACE_CMD} -e 's,"/etc,"${PREFIX}/etc,' ${WRKSRC}/src/zhcon.cpp
|
|
|
|
@${REINPLACE_CMD} -Ee 's,(\s*=\s*)("?)/usr/local([^"]*)("?),\1\2${PREFIX}\3\4,g' \
|
2004-10-26 18:37:44 +02:00
|
|
|
-e '/_nl_expand_alias/s,\(0\),\(\),g' ${WRKSRC}/${CONFIGURE_SCRIPT}
|
2006-06-09 19:13:28 +02:00
|
|
|
.if defined(WITH_BIG5)
|
|
|
|
@${REINPLACE_CMD} -e '11 s,gb2312,big5,' ${WRKSRC}/src/zhcon.conf
|
|
|
|
.endif
|
2003-11-07 18:36:28 +01:00
|
|
|
|
2006-05-05 17:35:02 +02:00
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2003-10-16 06:15:48 +02:00
|
|
|
.include <bsd.port.mk>
|