openbsd-ports/japanese/jvim/Makefile

82 lines
2.1 KiB
Makefile
Raw Normal View History

2000-03-16 21:36:28 -05:00
# $OpenBSD: Makefile,v 1.7 2000/03/17 02:36:28 turan Exp $
1998-07-28 21:31:02 -04:00
# $FreeBSD: Makefile,v 1.1.1.1 1998/07/10 14:05:19 kuriyama Exp $
DISTNAME= jvim2.0r+onew2.2.10
PKGNAME?= ja-jvim-2.0r
CATEGORIES= japanese editors
2000-03-05 13:30:21 -05:00
NEED_VERSION= 1.223
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/
MAINTAINER= 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
1998-07-28 21:31:02 -04:00
LIB_DEPENDS= ${LIB_INPUT_METHOD}
BUILD_DEPENDS= ${BUILD_INPUT_METHOD}
PATCHDIR= ${.CURDIR}/../jvim/patches
FILESDIR= ${.CURDIR}/../jvim/files
PLIST= ${.CURDIR}/../jvim/pkg/PLIST
1998-11-21 19:13:44 -05:00
MANLANG= ja_JP.EUC
1998-07-28 21:31:02 -04:00
MAN1= jcat.1 jfold.1 jgrep.1 jvim.1
2000-02-10 19:37:15 -05:00
WRKDIST= ${WRKDIR}/jvim2.0r
1998-07-28 21:31:02 -04:00
# Specifying a velue INPUT_METHOD, and seting values BUILD_DEPENDS,
# LIB_DEPENDS, etc.
.if defined(CANNA)
INPUT_METHOD+= canna
2000-03-05 13:30:21 -05:00
LIB_INPUT_METHOD+= canna\\.1\\.:japanese/Canna
1998-07-28 21:31:02 -04:00
JPLIB+= -lcanna
.endif
.if defined(WNN4)
INPUT_METHOD+= wnn4
2000-03-05 13:30:21 -05:00
BUILD_INPUT_METHOD+= ${LOCALBASE}/bin/Wnn4/jserver:japanese/Wnn
1998-07-28 21:31:02 -04:00
JPDEF+= -DWNN_ISDIR
1998-11-21 19:13:44 -05:00
JPLIB+= -ljd
1998-07-28 21:31:02 -04:00
.elif defined(WNN6)
INPUT_METHOD+= wnn6
2000-03-05 13:30:21 -05:00
BUILD_INPUT_METHOD+= ${LOCALBASE}/bin/Wnn4/jserver:japanese/Wnn
1998-07-28 21:31:02 -04:00
JPDEF+= -DWNN_ISDIR
JPLIB+= -ljd -lcrypt
.endif
#
# Make a value of INPUT_METHOD
.if defined(INPUT_METHOD)
INPUT_METHOD!= echo ${INPUT_METHOD} | sed -e 's/^/-/' -e 's/ /+/g'
.endif
#
# For ONEW library
.if defined(INPUT_METHOD)
2000-03-05 13:30:21 -05:00
BUILD_INPUT_METHOD+= ${LOCALBASE}/lib/libonew${INPUT_METHOD}.a:japanese/onew${INPUT_METHOD}
1998-07-28 21:31:02 -04:00
JPDEF+= -DONEW
# If we use ONEW libray, then -lonew*.a should appear
# before the other libraries.
JPLIB!= echo ${JPLIB} | sed 's%^%-lonew${INPUT_METHOD} %'
.endif
pre-build:
cd ${WRKSRC}/src; \
sed -e 's,%LOCALBASE%,${LOCALBASE},g' \
1998-07-28 21:31:02 -04:00
-e 's,%X11BASE%,${X11BASE},g' \
1998-11-21 19:13:44 -05:00
-e 's,%MANLANG%,${MANLANG},g' \
1998-07-28 21:31:02 -04:00
./makefile.junx > Makefile; \
do-build:
cd ${WRKSRC}/src; make OpenBSD 'JPDEF=${JPDEF}' 'JPLIB=${JPLIB}'
do-install:
cd ${WRKSRC}/src; make install
post-install:
@for file in jcat jgrep jfold jvim; do \
${STRIP} ${LOCALBASE}/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>