openbsd-ports/japanese/kinput2/Makefile

61 lines
1.5 KiB
Makefile
Raw Normal View History

2011-11-01 12:27:06 -04:00
# $OpenBSD: Makefile,v 1.26 2011/11/01 16:27:06 jasper Exp $
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
DISTNAME= kinput2-v3
2010-07-25 01:58:31 -04:00
PKGNAME= ja-kinput2-3.0
2011-11-01 12:27:06 -04:00
REVISION= 5
MASTER_SITES= ftp://ftp.sra.co.jp/pub/x11/kinput2/
CATEGORIES= japanese x11
# License: NOFEE
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2010-07-25 01:58:31 -04:00
2011-11-01 12:27:06 -04:00
WANTLIB= ICE SM X11 Xau Xaw Xdmcp Xext Xmu Xpm Xt c
2000-10-22 15:01:59 -04:00
MAINTAINER= SUZUKI Hitoshi <sigh@kuzirabekon.econ.nagasaki-u.ac.jp>
2000-06-10 21:53:45 -04:00
CONFIGURE_STYLE=imake
FLAVORS= canna wnn
FLAVOR?= wnn
2010-10-18 14:13:12 -04:00
USE_GROFF = Yes
.if ${FLAVOR:L:Mwnn}
2010-11-17 03:05:12 -05:00
BUILD_DEPENDS+= japanese/Wnn
.endif
.if ${FLAVOR:L:Mcanna}
PERMIT_PACKAGE_CDROM= Canna prevents it
2010-07-25 01:58:31 -04:00
WANTLIB += canna16
2010-11-17 03:05:12 -05:00
LIB_DEPENDS= 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
2002-10-26 20:52:43 -04:00
NO_REGRESS= Yes
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/kinput2
cp ${WRKSRC}/README ${PORT_DOCDIR}
cp ${WRKSRC}/NEWS ${PORT_DOCDIR}
@(cd ${WRKSRC}/doc; tar -cf - . | \
(cd ${PORT_DOCDIR}; tar -xf -))
2003-04-14 11:02:08 -04:00
@chown -R ${SHAREOWN}:${SHAREGRP} ${PORT_DOCDIR}
.include <bsd.port.mk>