2000-09-08 04:34:56 +00:00
|
|
|
# New ports collection makefile for: kinput2-freewnn
|
1998-06-27 12:49:27 +00:00
|
|
|
# Date created: 19 Dec 1997
|
1999-05-01 04:03:48 +00:00
|
|
|
# Whom: Satoshi TAOKA <taoka@FreeBSD.org>
|
1998-06-27 12:49:27 +00:00
|
|
|
#
|
1999-08-25 05:28:01 +00:00
|
|
|
# $FreeBSD$
|
1998-06-27 12:49:27 +00:00
|
|
|
#
|
|
|
|
|
2000-04-11 14:15:53 +00:00
|
|
|
PORTNAME= kinput2
|
|
|
|
PORTVERSION= 3.0
|
|
|
|
PKGNAMESUFFIX= ${INPUT_METHOD}
|
1998-06-27 12:49:27 +00:00
|
|
|
CATEGORIES= japanese x11
|
|
|
|
MASTER_SITES= ftp://ftp.sra.co.jp/pub/x11/kinput2/
|
2000-04-11 14:15:53 +00:00
|
|
|
DISTNAME= kinput2-v3
|
1998-06-27 12:49:27 +00:00
|
|
|
|
1999-05-01 04:03:48 +00:00
|
|
|
MAINTAINER= taoka@FreeBSD.org
|
1998-06-27 12:49:27 +00:00
|
|
|
|
|
|
|
LIB_DEPENDS= ${LIB_INPUT_METHOD}
|
|
|
|
BUILD_DEPENDS= ${BUILD_INPUT_METHOD}
|
|
|
|
|
2000-10-08 07:21:03 +00:00
|
|
|
PATCHDIR= ${.CURDIR}/../kinput2-freewnn/files
|
2000-09-08 04:34:56 +00:00
|
|
|
FILESDIR= ${.CURDIR}/../kinput2-freewnn/files
|
1998-06-27 12:49:27 +00:00
|
|
|
USE_IMAKE= yes
|
2000-09-17 15:11:15 +00:00
|
|
|
MAN1= kinput2.1
|
1998-06-27 12:49:27 +00:00
|
|
|
|
2000-09-08 04:34:56 +00:00
|
|
|
.if !defined(CANNA) && !defined(SJ3) && !defined(FREEWNN) && !defined(WNN6)
|
1998-06-27 12:49:27 +00:00
|
|
|
# For this port
|
2000-09-08 04:34:56 +00:00
|
|
|
FREEWNN= yes
|
1998-06-27 12:49:27 +00:00
|
|
|
.endif
|
|
|
|
#
|
|
|
|
# Specifying a velue INPUT_METHOD, and seting values BUILD_DEPENDS,
|
|
|
|
# LIB_DEPENDS, etc.
|
|
|
|
.if defined(CANNA)
|
|
|
|
INPUT_METHOD+= canna
|
1999-06-06 13:20:08 +00:00
|
|
|
LIB_INPUT_METHOD+= canna16.1:${PORTSDIR}/japanese/Canna
|
|
|
|
KINPUT2_DEF+= -DUseCanna -Dport_CANNASRC=${LOCALBASE}/include \
|
|
|
|
-Dport_CANNALIB="-L${LOCALBASE}/lib -lcanna16"
|
1998-06-27 12:49:27 +00:00
|
|
|
.endif
|
|
|
|
.if defined(SJ3)
|
|
|
|
INPUT_METHOD+= sj3
|
|
|
|
BUILD_INPUT_METHOD+= sj3serv:${PORTSDIR}/japanese/sj3
|
1999-06-06 13:20:08 +00:00
|
|
|
KINPUT2_DEF+= -DUseSj3 -Dport_SJ3SRC=${LOCALBASE}/include \
|
|
|
|
-Dport_SJ3LIB="-L${LOCALBASE}/lib -lsj3lib"
|
1998-06-27 12:49:27 +00:00
|
|
|
.endif
|
2000-09-08 04:34:56 +00:00
|
|
|
.if defined(FREEWNN)
|
|
|
|
INPUT_METHOD+= freewnn
|
|
|
|
LIB_INPUT_METHOD+= wnn.0:${PORTSDIR}/japanese/FreeWnn-lib
|
|
|
|
KINPUT2_DEF+= -DUseWnn -Dport_WNNINCDIR=$(LOCALBASE)/include/wnn \
|
|
|
|
-Dport_WNNLIB="-L$(LOCALBASE)/lib -lwnn -lcrypt"
|
1998-06-27 12:49:27 +00:00
|
|
|
.elif defined(WNN6)
|
|
|
|
INPUT_METHOD+= wnn6
|
1999-06-06 13:20:08 +00:00
|
|
|
LIB_INPUT_METHOD+= wnn6.1:${PORTSDIR}/japanese/Wnn6-lib
|
2000-09-17 15:11:15 +00:00
|
|
|
KINPUT2_DEF+= -DUseWnn -DUseWnn6 -Dport_WNNINCDIR=$(LOCALBASE)/include/wnn6/wnn \
|
1999-06-06 13:20:08 +00:00
|
|
|
-Dport_WNNLIB="-L$(LOCALBASE)/lib -lwnn6 -lcrypt"
|
1998-06-27 12:49:27 +00:00
|
|
|
.endif
|
|
|
|
#
|
|
|
|
# Make a value of INPUT_METHOD
|
|
|
|
.if defined(INPUT_METHOD)
|
|
|
|
INPUT_METHOD!= echo ${INPUT_METHOD} | sed -e 's/^/-/' -e 's/ /+/g'
|
|
|
|
.endif
|
|
|
|
#
|
|
|
|
# Redefine $(IMAKE_CMD) with $(PORT_IMAKE_DEFINES) in ${WRKSRC}/Kinput2.conf
|
|
|
|
MAKE_ENV+= PORT_IMAKE_DEFINES='${KINPUT2_DEF}'
|
|
|
|
|
1999-06-06 13:20:08 +00:00
|
|
|
pre-configure:
|
|
|
|
if [ -f ${WRKSRC}/Kinput2.conf ]; then \
|
|
|
|
${MV} -f ${WRKSRC}/Kinput2.conf ${WRKSRC}/Kinput2.conf.org; \
|
|
|
|
fi
|
|
|
|
${CP} ${FILESDIR}/Kinput2.conf ${WRKSRC}/Kinput2.conf
|
|
|
|
|
1998-06-27 12:49:27 +00:00
|
|
|
do-configure:
|
|
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${XMKMF}
|
|
|
|
|
|
|
|
post-install:
|
2000-09-08 04:34:56 +00:00
|
|
|
# For FreeWnn or Wnn6
|
2000-10-08 10:23:48 +00:00
|
|
|
@if [ -e ${PKGMESSAGE} ]; then \
|
|
|
|
${CAT} ${PKGMESSAGE}; \
|
1998-06-27 12:49:27 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|