2012-02-28 16:38:41 +01:00
|
|
|
# New ports collection makefile for: Zhcon
|
|
|
|
# Date created: Sun Sep 9, 2001
|
|
|
|
# Whom: Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
|
2001-09-08 18:37:56 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= zhcon
|
2009-02-01 21:22:37 +01:00
|
|
|
PORTVERSION= 0.2.6
|
2011-04-29 08:05:51 +02:00
|
|
|
PORTREVISION= 2
|
2001-09-08 18:37:56 +02:00
|
|
|
CATEGORIES= chinese
|
2012-02-28 16:38:41 +01:00
|
|
|
MASTER_SITES= SF
|
|
|
|
DISTNAME= ${PORTNAME}-0.2.5
|
|
|
|
|
|
|
|
PATCH_SITES= ${MASTER_SITES}
|
|
|
|
PATCHFILES= ${DISTNAME}-to-${PORTVERSION}.diff.gz
|
|
|
|
PATCH_DIST_STRIP= -p1
|
2001-09-08 18:37:56 +02:00
|
|
|
|
2009-08-28 19:37:26 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2012-02-28 16:38:41 +01:00
|
|
|
COMMENT= A fast CJK (Chinese/Japanese/Korean) virtual console
|
2001-09-08 18:37:56 +02:00
|
|
|
|
2012-02-28 16:38:41 +01:00
|
|
|
LICENSE= GPLv2
|
2008-08-30 13:03:36 +02:00
|
|
|
|
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}
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2004-10-26 18:37:44 +02:00
|
|
|
|
2006-05-05 17:35:02 +02:00
|
|
|
SUB_FILES= pkg-message
|
2001-09-08 18:37:56 +02:00
|
|
|
MAN1= zhcon.1
|
2012-02-28 16:38:41 +01:00
|
|
|
PORTDOCS= *
|
|
|
|
|
|
|
|
OPTIONS= BIG5 "Use Big5 by default (Taiwan, Hong Kong, Macau)" off
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
2001-09-08 18:37:56 +02:00
|
|
|
|
2003-11-07 18:36:28 +01:00
|
|
|
post-patch:
|
2012-02-28 16:38:41 +01:00
|
|
|
@${REINPLACE_CMD} -e 's,/etc,${PREFIX}&, ; s,doc/,${DOCSDIR},' \
|
|
|
|
${WRKSRC}/doc/zhcon.1.in
|
|
|
|
@${REINPLACE_CMD} -e 's,/dev/vga,/dev/ttyv0,' \
|
|
|
|
${WRKSRC}/src/display/fbdev.cpp
|
|
|
|
@${REINPLACE_CMD} -e 's,endian,sys/endian,' \
|
|
|
|
${WRKSRC}/src/display/fblinear*.cpp
|
|
|
|
@${REINPLACE_CMD} -e '/zhconpath/s,#,, ; s,/usr/lib,${PREFIX}/lib,' \
|
|
|
|
${WRKSRC}/src/zhcon.conf
|
|
|
|
@${REINPLACE_CMD} -e 's,$$enable_debug = ,x&x,' \
|
|
|
|
${WRKSRC}/configure
|
2006-06-09 19:13:28 +02:00
|
|
|
.if defined(WITH_BIG5)
|
2012-02-28 16:38:41 +01:00
|
|
|
@${REINPLACE_CMD} -e '/defaultencode =/s,gb2312,big5,' \
|
|
|
|
${WRKSRC}/src/zhcon.conf
|
2006-06-09 19:13:28 +02:00
|
|
|
.endif
|
2003-11-07 18:36:28 +01:00
|
|
|
|
2006-05-05 17:35:02 +02:00
|
|
|
post-install:
|
2012-02-28 16:38:41 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/README.html ${WRKSRC}/doc/bpsf.txt \
|
|
|
|
${WRKSRC}/doc/poem.* ${WRKSRC}/ChangeLog ${WRKSRC}/NEWS \
|
|
|
|
${WRKSRC}/README ${WRKSRC}/README.utf8 ${WRKSRC}/THANKS \
|
|
|
|
${WRKSRC}/TODO ${DOCSDIR}
|
|
|
|
${TAR} xf ${WRKSRC}/doc/html.tar.gz -C ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
@${ECHO_MSG}
|
2006-05-05 17:35:02 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2012-02-28 16:38:41 +01:00
|
|
|
@${ECHO_MSG}
|
2006-05-05 17:35:02 +02:00
|
|
|
|
2003-10-16 06:15:48 +02:00
|
|
|
.include <bsd.port.mk>
|