1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/japanese/skkinput3/Makefile
Florent Thoumie d4f0d0048a - Welcome X.org 7.2 \o/.
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}.
- Bump PORTREVISION for ports intalling files in ${X11BASE}.
2007-05-19 20:36:56 +00:00

63 lines
1.5 KiB
Makefile

# New ports collection makefile for: skkinput3
# Date created: Aug 14 2002
# Whom: KOMATSU Shinichiro <koma2@jiro.c.u-tokyo.ac.jp>
#
# $FreeBSD$
#
PORTNAME= skkinput3
PORTVERSION= 3.0.6
PORTREVISION= 1
CATEGORIES= japanese x11
MASTER_SITES= http://downloads.sourceforge.jp/skkinput3/2222/
DISTNAME= skkinput-${PORTVERSION}
MAINTAINER= koma2@lovepeers.org
COMMENT= An SKK-like Japanese input method for X11
USE_IMAKE= yes
OPTIONS= DBSKKD "Use ja-dbskkd-cdb as skkserver" off \
RSKKSERV "Use ja-rskkserv as skkserver" off \
SKK10 "Use SKK10 elisps" off
NO_INSTALL_MANPAGES= yes
.include <bsd.port.pre.mk>
.if defined(WITH_SKK10)
PLIST_SUB= SKK8="@comment " SKK10=""
.else
PLIST_SUB= SKK8="" SKK10="@comment "
.endif
# sanity check
.if defined(WITH_DBSKKD) && defined(WITH_RSKKSERV)
IGNORE= cannot define both WITH_DBSKKD and WITH_RSKKSERV simultaneously
.endif
.if defined(WITH_DBSKKD)
RUN_DEPENDS= ${LOCALBASE}/libexec/dbskkd-cdb:${PORTSDIR}/japanese/dbskkd-cdb
.elif defined(WITH_RSKKSERV)
RUN_DEPENDS= ${LOCALBASE}/libexec/rskkserv:${PORTSDIR}/japanese/rskkserv
.else
RUN_DEPENDS= ${LOCALBASE}/sbin/skkserv:${PORTSDIR}/japanese/skkserv
.endif
DOCS= *.jis dot.skkinput ChangeLog
.if defined(WITH_SKK10)
post-patch:
${REINPLACE_CMD} -e '/\(#define.*UseSkk8\)/ s/^/XCOMM /' \
-e '/XCOMM.*#define.*UseSkk10/ s/XCOMM[[:space:]]*//' \
${WRKSRC}/Skkinput.conf
.endif
.if !defined(NOPORTDOCS)
post-install:
${MKDIR} ${DOCSDIR}
cd ${WRKSRC}; ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
.include <bsd.port.post.mk>