freebsd-ports/chinese/zhcon/Makefile

51 lines
1.6 KiB
Makefile
Raw Normal View History

# Ports collection makefile for: zhcon
# Date created: Sun Sep 9, 2001
# Whom: statue@freebsd.sinica.edu.tw
#
# $FreeBSD$
#
PORTNAME= zhcon
PORTVERSION= 0.2.5
PORTREVISION= 2
CATEGORIES= chinese
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
Change the following ports to my FreeBSD.org email. Approved by: delphij (mentor) archivers/pecl-bz2/Makefile archivers/pecl-lzf/Makefile archivers/pecl-rar/Makefile audio/fapg/Makefile audio/pecl-id3/Makefile chinese/CJKUnifonts/Makefile chinese/auto-tw-l10n/Makefile chinese/dfsongsd/Makefile chinese/fortunetw/Makefile chinese/gcin/Makefile chinese/joe/Makefile chinese/joe2/Makefile chinese/pcmanx/Makefile chinese/phpbb-tw/Makefile chinese/tatter-tools/Makefile chinese/ve/Makefile chinese/zhcon/Makefile devel/pear-Console_Getopt/Makefile devel/pear-Console_Table/Makefile devel/pear-PEAR_Info/Makefile devel/pecl-expect/Makefile games/p5-Baseball-Sabermetrics/Makefile graphics/epdfview/Makefile graphics/p5-Chart-Clicker/Makefile graphics/p5-GD-Thumbnail/Makefile graphics/p5-Visio/Makefile mail/pecl-esmtp/Makefile math/pecl-stats/Makefile misc/pear-Services_Weather/Makefile net/ldapdiff/Makefile net/p5-RRD-Simple/Makefile net/pear-Net_CDDB/Makefile net/pear-Net_SMS/Makefile net/pecl-cvsclient/Makefile security/gwee/Makefile security/p5-GSSAPI/Makefile security/pam-pgsql/Makefile security/pecl-ssh2/Makefile security/pecl-tcpwrap/Makefile sysutils/p5-BSD-Sysctl/Makefile sysutils/p5-File-Next/Makefile textproc/csvdiff/Makefile textproc/p5-CSS/Makefile textproc/p5-Pod-XML/Makefile textproc/p5-SGML-DTDParse/Makefile textproc/p5-Text-Emoticon-GoogleTalk/Makefile textproc/p5-XML-Handler-Dtd2DocBook/Makefile textproc/p5-XML-Handler-Dtd2Html/Makefile textproc/p5-XML-SAXDriver-CSV/Makefile textproc/p5-XML-SAXDriver-Excel/Makefile textproc/p5-ack/Makefile textproc/pear-XML_DTD/Makefile textproc/pecl-stem/Makefile textproc/scim-input-pad/Makefile textproc/sdcv/Makefile www/b2evolution/Makefile www/dokuwiki/Makefile www/dokuwiki-devel/Makefile www/lilurl/Makefile www/p5-HTML-TableParser/Makefile www/p5-HTML-WikiConverter/Makefile www/p5-HTML-WikiConverter-DokuWiki/Makefile www/p5-HTML-WikiConverter-Kwiki/Makefile www/p5-HTML-WikiConverter-Markdown/Makefile www/p5-HTML-WikiConverter-MediaWiki/Makefile www/p5-HTML-WikiConverter-MoinMoin/Makefile www/p5-HTML-WikiConverter-Oddmuse/Makefile www/p5-HTML-WikiConverter-PbWiki/Makefile www/p5-HTML-WikiConverter-PhpWiki/Makefile www/p5-HTML-WikiConverter-PmWiki/Makefile www/p5-HTML-WikiConverter-SnipSnap/Makefile www/p5-HTML-WikiConverter-Socialtext/Makefile www/p5-HTML-WikiConverter-TikiWiki/Makefile www/p5-HTML-WikiConverter-UseMod/Makefile www/p5-HTML-WikiConverter-WakkaWiki/Makefile www/p5-HTML-WikiConverter-WikkaWiki/Makefile www/p5-WWW-Baseball-NPB/Makefile www/p5-WWW-Comic/Makefile www/p5-WWW-VenusEnvy/Makefile www/pear-Services_Delicious/Makefile www/pear-UDDI/Makefile www/xpi-cssviewer/Makefile www/xpi-gmail-manager/Makefile www/xpi-google-notebook/Makefile www/xpi-mrtech-local-install/Makefile www/xpi-no-referrer/Makefile www/xpi-server_switcher/Makefile www/xpi-unplug/Makefile www/xpi-videodownloader/Makefile www/xpi-web_developer/Makefile x11/xdialog/Makefile x11-fm/pcmanfm/Makefile
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
2008-08-30 13:03:36 +02:00
PORTSCOUT= limit:^0\.2.[0-9]*
GNU_CONFIGURE= yes
ONLY_FOR_ARCHS= i386
USE_ICONV= yes
# Don't bother to add ".if !defined(WITHOUT_NLS)", zhcon requires libintl
USE_GETTEXT= yes
CONFIGURE_ARGS= --with-libintl-prefix=${LOCALBASE}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES= pkg-message
MAN1= zhcon.1
post-patch:
@${REINPLACE_CMD} -e 's,/etc,${PREFIX}/etc,' ${WRKSRC}/doc/zhcon.1.in
@${REINPLACE_CMD} -Ee 's,/dev/vga,/dev/ttyv0,g' ${WRKSRC}/src/display/fbdev.cpp
@${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
@${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' \
-e '/_nl_expand_alias/s,\(0\),\(\),g' ${WRKSRC}/${CONFIGURE_SCRIPT}
.if defined(WITH_BIG5)
@${REINPLACE_CMD} -e '11 s,gb2312,big5,' ${WRKSRC}/src/zhcon.conf
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>