openbsd-ports/japanese/jvim/Makefile

82 lines
1.8 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.24 2007/09/16 00:33:57 merdely 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
PKGNAME= ja-jvim-2.0rp0
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
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
2000-04-28 21:13:06 -04:00
.if ${FLAVOR:L:Mwnn}
2001-03-28 10:22:03 -05:00
CHOICE=wnn4
2000-04-28 21:13:06 -04:00
INPUT_METHOD=wnn4
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
.if ${FLAVOR:L:Mcanna}
. if ${FLAVOR:L: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
2006-08-03 09:09:09 -04:00
LIB_DEPENDS+= canna.>=1::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)
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=${BFLAGS} 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>