2000-12-05 07:28:51 -05:00
# New ports collection makefile for: WXG for FreeBSD
# Date created: 5 Dec 2000
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
PORTNAME = wxg
PORTVERSION = 1.0.b1
CATEGORIES = japanese
MASTER_SITES = http://web.infoweb.ne.jp/aisoft/ekotoba/
2000-12-06 07:26:25 -05:00
DISTNAME = ${ PORTNAME } -${ PORTVERSION : S /.b/b-/ }
2000-12-05 07:28:51 -05:00
DIST_SUBDIR = wxg
MAINTAINER = knu@FreeBSD.org
# We need Canna libraries to use WXG anyway, and some Canna utilities
# are useful for WXG too.
RUN_DEPENDS = cannakill:${ PORTSDIR } /japanese/Canna
RESTRICTED = "You must not copy or redistribute the distfile or the package."
NO_CDROM = ${ RESTRICTED }
NO_PACKAGE = ${ RESTRICTED }
BINS = wxgdic wxgdmp wxgdset
SBINS = wxgserver
. i n c l u d e < b s d . p o r t . p r e . m k >
. i f ! e x i s t s ( $ { _ D I S T D I R } / $ { D I S T N A M E } $ { E X T R A C T _ S U F X } )
2001-04-14 02:24:00 -04:00
IGNORE = 'You must visit http://www.ekotoba.com/download/dldata.asp?kind=1&data=1 and agree with the licence terms to fetch "${DISTFILE}". After the download is done, place it in ${_DISTDIR} and run make again.'
2000-12-05 07:28:51 -05:00
. e n d i f
do-fetch :
# should not reach here
post-extract :
2000-12-06 07:26:25 -05:00
cd ${ WRKSRC } && \
for t in wxg.freebsd.tar.gz wxgdics.tar.gz wxghtml.tar.gz; \
do ${ TAR } zxf $$ { t} ; done
2000-12-05 07:28:51 -05:00
do-build :
${ SED } 's,!!PREFIX!!,${PREFIX},g' ${ FILESDIR } /wxg.sh > ${ WRKSRC } /wxg.sh
2000-12-06 07:26:25 -05:00
${ WRKSRC } /wxg/wxgdset ${ WRKSRC } /dic/wxg.gds -U= 2 -L= 0 wxgu.gdj wxg.gdj wxgtx.gdj seimei.gdj chimei.gdj yubin.gdj kao.gdj english.gdj
${ WRKSRC } /wxg/wxgdset ${ WRKSRC } /dic/wxgsei.gds -U= 2 -L= 0 wxgu.gdj wxg.gdj seimei.gdj chimei.gdj yubin.gdj tel.gdj
${ WRKSRC } /wxg/wxgdset ${ WRKSRC } /dic/wxgseiu.gds -C= ${ PREFIX } /wxg/dic/ -U= 2 -L= 0 wxgu.gdj wxg.gdj -p3 seimei.gdj -p3 chimei.gdj -p3 yubin.gdj -p3 tel.gdj -p3
${ WRKSRC } /wxg/wxgdset ${ WRKSRC } /dic/wxgu.gds -C= ${ PREFIX } /lib/wxg/dic/ -U= 2 -L= 0 wxgu.gdj wxg.gdj -p3 wxgtx.gdj -p3 seimei.gdj -p3 chimei.gdj -p3 yubin.gdj -p3 kao.gdj -p3 english.gdj -p3
2000-12-05 07:28:51 -05:00
do-install :
2000-12-06 07:26:25 -05:00
cd ${ WRKSRC } /wxg && ${ INSTALL_PROGRAM } ${ BINS } ${ PREFIX } /bin/
cd ${ WRKSRC } /wxg && ${ INSTALL_PROGRAM } ${ SBINS } ${ PREFIX } /sbin/
${ MKDIR } ${ PREFIX } /lib/wxg/dic ${ PREFIX } /lib/wxg/roma
${ INSTALL_DATA } ${ WRKSRC } /wxg/wxgrc ${ WRKSRC } /dic/wxg.gct ${ PREFIX } /lib/wxg
${ INSTALL_DATA } ${ WRKSRC } /dic/*.txt ${ WRKSRC } /dic/*.gd? ${ PREFIX } /lib/wxg/dic
${ INSTALL_DATA } ${ WRKSRC } /dic/*.grt ${ PREFIX } /lib/wxg/roma
2000-12-05 07:28:51 -05:00
${ INSTALL_SCRIPT } ${ WRKSRC } /wxg.sh ${ PREFIX } /etc/rc.d/wxg.sh.sample
[ X${ PREFIX } = X"/usr/local" ] || ${ LN } -s ${ PREFIX } /lib/wxg /usr/local/lib/
. i f ! d e f i n e d ( N O P O R T D O C S )
${ MKDIR } ${ PREFIX } /share/doc/wxg
2000-12-06 07:26:25 -05:00
${ CP } -R ${ WRKSRC } /README ${ WRKSRC } /html ${ PREFIX } /share/doc/wxg/
2000-12-05 07:28:51 -05:00
. e n d i f
@${ CAT } ${ PKGMESSAGE }
. i n c l u d e < b s d . p o r t . p o s t . m k >