aboutsummaryrefslogtreecommitdiff
path: root/japanese/skkinput3/Makefile
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2003-03-23 10:32:56 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2003-03-23 10:32:56 +0000
commit68f24ccfa06bfaba7d2e367ba5d5eef06da14340 (patch)
tree6f1a1bdc40ffd0396543b14b89e475b42abafaf4 /japanese/skkinput3/Makefile
parentd75c7a91bc8ee7ae6b214206bf3074a747ba8dfe (diff)
downloadports-68f24ccfa06bfaba7d2e367ba5d5eef06da14340.tar.gz
ports-68f24ccfa06bfaba7d2e367ba5d5eef06da14340.zip
Notes
Diffstat (limited to 'japanese/skkinput3/Makefile')
-rw-r--r--japanese/skkinput3/Makefile23
1 files changed, 17 insertions, 6 deletions
diff --git a/japanese/skkinput3/Makefile b/japanese/skkinput3/Makefile
index e3f4e4e8ee42..84a8e1090253 100644
--- a/japanese/skkinput3/Makefile
+++ b/japanese/skkinput3/Makefile
@@ -6,10 +6,10 @@
#
PORTNAME= skkinput3
-PORTVERSION= ${SRCVERSION}.${PATCHLEVEL}
+PORTVERSION= 3.0.6
CATEGORIES= japanese x11
-MASTER_SITES= http://downloads.sourceforge.jp/skkinput3/1504/
-DISTNAME= skkinput-${SRCVERSION}_${PATCHLEVEL}
+MASTER_SITES= http://downloads.sourceforge.jp/skkinput3/2222/
+DISTNAME= skkinput-${PORTVERSION}
MAINTAINER= koma2@jiro.c.u-tokyo.ac.jp
COMMENT= An SKK-like Japanese input method for X11
@@ -18,6 +18,13 @@ USE_IMAKE= yes
NO_INSTALL_MANPAGES= yes
+.if defined(USE_SKK10)
+USE_REINPLACE= yes
+PLIST_SUB= SKK8="@comment " SKK10=""
+.else
+PLIST_SUB= SKK8="" SKK10="@comment "
+.endif
+
.include <bsd.port.pre.mk>
# sanity check
@@ -33,10 +40,14 @@ RUN_DEPENDS= ${LOCALBASE}/libexec/rskkserv:${PORTSDIR}/japanese/rskkserv
RUN_DEPENDS= ${LOCALBASE}/sbin/skkserv:${PORTSDIR}/japanese/skkserv
.endif
-SRCVERSION= 3.0
-PATCHLEVEL= 3.1
+DOCS= *.jis dot.skkinput ChangeLog
-DOCS= *.jis dot.skkinput
+.if defined(USE_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: