We can't use flavors in dependencies yet, so split the onew `flavors' out...

This commit is contained in:
espie 2000-04-29 01:07:13 +00:00
parent f144d7c655
commit 3529c1c5c4
8 changed files with 85 additions and 0 deletions

View File

@ -0,0 +1,36 @@
# $OpenBSD: Makefile,v 1.1.1.1 2000/04/29 01:07:13 espie Exp $
DISTNAME= jvim2.0r+onew2.2.10
PKGNAME?= ja-onew-canna-2.2.10
CATEGORIES= japanese
NEED_VERSION= 1.230
FAKE= Yes
MASTER_SITES= ftp://ftp.lab.kdd.co.jp/Japan/onew/ \
ftp://ftp.leo.chubu.ac.jp/pub/editor/jvim/
MAINTAINER= espie@cvs.openbsd.org
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
LIB_DEPENDS= canna.1.::japanese/canna
WRKDIST= ${WRKDIR}/onew
ALL_TARGET=
ONEW_CONF= ${FILESDIR}/ONEW_CONF-for-canna
LIB_NAME= libonew-canna.a
PORT_DOCDIR= ${PREFIX}/share/doc/ja-onew-canna
post-patch:
sed -e 's,%PREFIX%,${PREFIX},g' \
${ONEW_CONF} > ${WRKSRC}/ONEW_CONF
do-install:
${INSTALL_DATA} ${WRKSRC}/libonew.a ${LOCALBASE}/lib/${LIB_NAME}
${INSTALL_DATA_DIR} ${PORT_DOCDIR}
${INSTALL_DATA} ${WRKSRC}/README.ONEW ${PORT_DOCDIR}
.include <bsd.port.mk>

View File

@ -0,0 +1,7 @@
CANNAINC = -I%PREFIX%/include
CANNAOBJ = Canna.o CannaRk.o
CANNALIB = -L%PREFIX%/lib -lcanna
CANNA_RKPATH = '".:$$HOME:%PREFIX%/lib/canna/dic:/tmp/onew_rktabs/canna"'
RKKLIBS = $(CANNALIB)
RKKOBJS = $(CANNAOBJ)
ONEW_ENGINE = '"canna/canna"'

View File

@ -0,0 +1,3 @@
MD5 (jvim2.0r+onew2.2.10.tar.gz) = 42e04a80f3dbdfca4fbe8b9e634d1380
RMD160 (jvim2.0r+onew2.2.10.tar.gz) = be3ec6688e2372032d3d050b681d7ea3e20bc01f
SHA1 (jvim2.0r+onew2.2.10.tar.gz) = 546ad6c34024a9528b25533466242470d2db70c2

View File

@ -0,0 +1,20 @@
--- sys/sys.h.orig Wed Jul 29 02:05:15 1998
+++ sys/sys.h Wed Jul 29 02:04:37 1998
@@ -30,7 +30,7 @@
|| defined(MACH) \
|| defined(NeXT) \
|| defined(bsdi) \
- || defined(__FreeBSD__)
+ || defined(__FreeBSD__) || defined(__OpenBSD__)
#define USE_SGTTY
#define HAS_SELECT
#endif
@@ -69,7 +69,7 @@
#define READYCC(fp) (fp->_egptr - fp->_gptr)
#endif
#else
-#if defined(bsdi) || defined(__FreeBSD__)
+#if defined(bsdi) || defined(__FreeBSD__) || defined(__OpenBSD__)
#define READYCC(fp) (fp->_r)
#else
#define READYCC(fp) (fp->_cnt)

View File

@ -0,0 +1,11 @@
--- sys/regex.c.orig Wed Jul 29 02:05:30 1998
+++ sys/regex.c Wed Jul 29 02:04:46 1998
@@ -35,7 +35,7 @@
#else
#if defined(hpux) \
|| defined(bsdi) \
- || defined(__FreeBSD__)
+ || defined(__FreeBSD__) || defined(__OpenBSD__)
#ifdef bsdi
#include <stdio.h>

View File

@ -0,0 +1 @@
library for Japanese Input Method canna

View File

@ -0,0 +1,4 @@
ONEW is a library for using Japanese Input Method Canna, Wnn4, or
Wnn6.
This is the Canna version.

View File

@ -0,0 +1,3 @@
lib/libonew-canna.a
share/doc/ja-onew-canna/README.ONEW
@dirrm share/doc/ja-onew-canna