2003-08-04 09:11:48 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.9 2003/08/04 13:11:48 espie Exp $
|
2001-05-05 21:11:37 -04:00
|
|
|
|
|
|
|
COMMENT= "library for Japanese Input Method Wnn4"
|
2001-03-28 10:17:34 -05:00
|
|
|
|
|
|
|
COMMENT-wnn4= "library for Japanese Input Method Wnn4"
|
|
|
|
COMMENT-canna= "library for Japanese Input Method canna"
|
|
|
|
COMMENT-wnn4-canna= "library for Japanese Input Method canna or wnn4"
|
2001-04-05 06:21:56 -04:00
|
|
|
FULLPKGNAME= ja-onew${FLAVOR_EXT}-2.2.10
|
2001-03-28 10:17:34 -05:00
|
|
|
|
|
|
|
DISTNAME= jvim2.0r+onew2.2.10
|
|
|
|
CATEGORIES= japanese
|
2002-10-26 20:52:43 -04:00
|
|
|
|
2001-03-28 10:17:34 -05:00
|
|
|
MASTER_SITES= ftp://ftp.lab.kdd.co.jp/Japan/onew/ \
|
|
|
|
ftp://ftp.leo.chubu.ac.jp/pub/editor/jvim/
|
|
|
|
|
|
|
|
MAINTAINER= Marc Espie <espie@openbsd.org>
|
|
|
|
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
FLAVORS=wnn4 canna
|
|
|
|
FLAVOR?=canna
|
|
|
|
.if empty(FLAVOR)
|
2001-07-18 06:59:00 -04:00
|
|
|
ERRORS+= "Fatal: You must choose a converter"
|
2001-03-28 10:17:34 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mwnn4}
|
2001-09-19 12:03:09 -04:00
|
|
|
BUILD_DEPENDS= ::japanese/Wnn
|
2001-03-28 10:17:34 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mcanna}
|
2003-08-04 09:11:48 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= "Canna prevents it"
|
2001-09-19 12:03:09 -04:00
|
|
|
LIB_DEPENDS+= canna.1::japanese/canna
|
2001-03-28 10:17:34 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
WRKDIST= ${WRKDIR}/onew
|
|
|
|
ALL_TARGET=
|
|
|
|
|
|
|
|
ONEW_CONF= ${FILESDIR}/ONEW_CONF-for${FLAVOR_EXT}
|
|
|
|
LIB_NAME= libonew${FLAVOR_EXT}.a
|
|
|
|
PORT_DOCDIR= ${PREFIX}/share/doc/ja-onew${FLAVOR_EXT}
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
ln -s ${ONEW_CONF} ${WRKSRC}/ONEW_CONF
|
|
|
|
|
|
|
|
MAKE_FLAGS=LOCALBASE=${LOCALBASE} CFLAGS='${CFLAGS}'
|
2001-03-28 11:22:27 -05:00
|
|
|
SUBST_VARS=FLAVOR_EXT
|
2001-03-28 10:17:34 -05:00
|
|
|
|
2002-10-26 20:52:43 -04:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2001-03-28 10:17:34 -05:00
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/libonew.a ${PREFIX}/lib/${LIB_NAME}
|
|
|
|
${INSTALL_DATA_DIR} ${PORT_DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.ONEW ${PORT_DOCDIR}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|