openbsd-ports/japanese/jvim/Makefile

86 lines
1.8 KiB
Makefile
Raw Normal View History

2011-12-02 09:36:13 -05:00
# $OpenBSD: Makefile,v 1.30 2011/12/02 14:36:14 espie Exp $
1998-07-28 21:31:02 -04:00
# $FreeBSD: Makefile,v 1.1.1.1 1998/07/10 14:05:19 kuriyama Exp $
COMMENT= Japanized Vim
COMMENT-canna= Japanized Vim, canna input method
COMMENT-wnn= Japanized Vim, wnn input method
COMMENT-wnn-canna=Japanized Vim, canna or wnn input method
1998-07-28 21:31:02 -04:00
DISTNAME= jvim2.0r+onew2.2.10
2010-07-25 01:58:31 -04:00
PKGNAME= ja-jvim-2.0r
2011-09-16 06:02:36 -04:00
REVISION= 2
1998-07-28 21:31:02 -04:00
CATEGORIES= japanese editors
2002-10-26 20:52:43 -04:00
1998-07-28 21:31:02 -04:00
MASTER_SITES= ftp://ftp.lab.kdd.co.jp/Japan/onew/ \
ftp://ftp.leo.chubu.ac.jp/pub/editor/jvim/
2000-10-09 20:40:20 -04:00
MAINTAINER= Marc Espie <espie@openbsd.org>
1998-07-28 21:31:02 -04:00
2000-03-16 21:36:28 -05:00
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2010-07-25 01:58:31 -04:00
2005-02-22 08:52:25 -05:00
WANTLIB= c termcap
2000-03-16 21:36:28 -05:00
2000-04-28 21:13:06 -04:00
FLAVORS= wnn canna
FLAVOR?=
1998-07-28 21:31:02 -04:00
2010-10-18 14:13:12 -04:00
USE_GROFF = Yes
1998-07-28 21:31:02 -04:00
2011-12-02 09:36:13 -05:00
.if ${FLAVOR:Mwnn}
2001-03-28 10:22:03 -05:00
CHOICE=wnn4
2000-04-28 21:13:06 -04:00
INPUT_METHOD=wnn4
2010-11-17 03:05:12 -05:00
BUILD_DEPENDS+= japanese/Wnn
2000-04-28 21:13:06 -04:00
JPDEF+= -DWNN_ISDIR
JPLIB+= -ljd
1998-07-28 21:31:02 -04:00
.endif
2000-04-28 21:13:06 -04:00
2011-12-02 09:36:13 -05:00
.if ${FLAVOR:Mcanna}
. if ${FLAVOR:Mwnn}
INPUT_METHOD= wnn4-canna
2001-03-28 10:22:03 -05:00
CHOICE=wnn4,canna
2000-04-28 21:13:06 -04:00
. else
INPUT_METHOD= canna
2001-03-28 10:22:03 -05:00
CHOICE=canna
1998-07-28 21:31:02 -04:00
.endif
PERMIT_PACKAGE_CDROM= Canna prevents it
2010-07-25 01:58:31 -04:00
WANTLIB += canna
2010-11-17 03:05:12 -05:00
LIB_DEPENDS+= japanese/canna
2000-04-28 21:13:06 -04:00
JPLIB+= -lcanna
1998-07-28 21:31:02 -04:00
.endif
2000-04-28 21:13:06 -04:00
.if defined(INPUT_METHOD) && !empty(INPUT_METHOD)
2010-11-17 03:05:12 -05:00
BUILD_DEPENDS+= japanese/onew,${CHOICE}
1998-07-28 21:31:02 -04:00
JPDEF+= -DONEW
2000-04-28 21:13:06 -04:00
JPLIB:=-lonew-${INPUT_METHOD} ${JPLIB}
1998-07-28 21:31:02 -04:00
.endif
2000-04-28 21:13:06 -04:00
WRKDIST= ${WRKDIR}/jvim2.0r
WRKSRC= ${WRKDIST}/src
BFLAGS= JPDEF='${JPDEF}' \
JPLIB='${JPLIB}' \
JPCODE='-DJP=\".EE\"' \
PREFIX='${PREFIX}' \
MANDIR='$${PREFIX}/man/ja_JP.EUC' \
MACHINE=-DBSD_UNIX \
CC='cc ${CFLAGS} -Wall'
MAKE_FILE= makefile.junx
ALL_TARGET=jvim jcat jfold jgrep
MAKE_FLAGS=${BFLAGS} PREFIX='${PREFIX}'
FAKE_FLAGS=PREFIX='${WRKINST}${PREFIX}'
1998-07-28 21:31:02 -04:00
2002-10-26 20:52:43 -04:00
NO_REGRESS= Yes
1998-07-28 21:31:02 -04:00
post-install:
@for file in jcat jgrep jfold jvim; do \
2000-04-28 21:13:06 -04:00
${STRIP} ${PREFIX}/bin/$$file; \
1998-07-28 21:31:02 -04:00
done
1998-11-21 19:13:44 -05:00
@echo "You may have to add man/ja_JP.EUC to _default in /etc/man.conf manually"
1998-07-28 21:31:02 -04:00
.include <bsd.port.mk>