2002-03-21 15:57:06 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.10 2002/03/21 20:57:09 espie Exp $
|
2000-04-25 20:43:12 -04:00
|
|
|
|
2001-05-06 01:15:12 -04:00
|
|
|
COMMENT-canna= X input method for Japanese, canna support
|
|
|
|
COMMENT-canna-wnn= X input method for Japanese, canna and wnn support
|
|
|
|
COMMENT-wnn= X input method for Japanese, wnn support
|
|
|
|
|
2000-04-25 20:43:12 -04:00
|
|
|
DISTNAME= kinput2-v3
|
|
|
|
MASTER_SITES= ftp://ftp.sra.co.jp/pub/x11/kinput2/
|
|
|
|
CATEGORIES= japanese x11
|
2002-03-21 15:57:06 -05:00
|
|
|
NEED_VERSION= 1.515
|
2000-04-25 20:43:12 -04:00
|
|
|
|
2001-06-19 21:43:11 -04:00
|
|
|
# License: NOFEE
|
2000-04-25 20:43:12 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2000-10-22 15:01:59 -04:00
|
|
|
MAINTAINER= SUZUKI Hitoshi <sigh@kuzirabekon.econ.nagasaki-u.ac.jp>
|
2000-04-25 20:43:12 -04:00
|
|
|
|
2000-06-10 21:53:45 -04:00
|
|
|
CONFIGURE_STYLE=imake
|
2000-04-25 20:43:12 -04:00
|
|
|
FLAVORS= canna wnn
|
|
|
|
FLAVOR?= wnn
|
|
|
|
|
|
|
|
PKGNAME= ja-kinput2-3.0
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mwnn}
|
2001-09-19 12:03:09 -04:00
|
|
|
BUILD_DEPENDS+= ::japanese/Wnn
|
2000-04-25 20:43:12 -04:00
|
|
|
.endif
|
|
|
|
.if ${FLAVOR:L:Mcanna}
|
|
|
|
LIB_DEPENDS= canna16::japanese/canna
|
|
|
|
.endif
|
|
|
|
|
|
|
|
PORT_DOCDIR=${PREFIX}/share/doc/kinput2
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
mv -f ${WRKSRC}/Kinput2.conf ${WRKSRC}/Kinput2.conf.org
|
|
|
|
cp ${FILESDIR}/Kinput2.conf ${WRKSRC}/Kinput2.conf
|
|
|
|
.if ${FLAVOR:L:Mwnn}
|
|
|
|
echo "#define UseWnn" >>${WRKSRC}/Kinput2.conf
|
|
|
|
.endif
|
|
|
|
.if ${FLAVOR:L:Mcanna}
|
|
|
|
echo "#define UseCanna" >>${WRKSRC}/Kinput2.conf
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
2001-03-22 17:06:35 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/kinput2
|
2000-04-25 20:43:12 -04:00
|
|
|
cp ${WRKSRC}/README ${PORT_DOCDIR}
|
|
|
|
cp ${WRKSRC}/NEWS ${PORT_DOCDIR}
|
|
|
|
@(cd ${WRKSRC}/doc; tar -cf - . | \
|
|
|
|
(cd ${PORT_DOCDIR}; tar -xf -))
|
|
|
|
@chown -R ${SHAREOWN}.${SHAREGRP} ${PORT_DOCDIR}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|