From 6304bfd8fb67dee3bec6093484aa29c0b7a36c12 Mon Sep 17 00:00:00 2001
From: Sam Lawrance <lawrance@FreeBSD.org>
Date: Sat, 3 Sep 2005 14:58:00 +0000
Subject: Add WITH_I18N option to support the impending cjk-lyx

PR:		ports/82191
Submitted by:	Koji Yokota <yokota@res.otaru-uc.ac.jp>
Approved by:	mikeh (maintainer, timeout, 2 months and a bit)
---
 x11-toolkits/xforms/Makefile | 13 +++++++++++--
 x11-toolkits/xforms/distinfo |  2 ++
 2 files changed, 13 insertions(+), 2 deletions(-)

(limited to 'x11-toolkits')

diff --git a/x11-toolkits/xforms/Makefile b/x11-toolkits/xforms/Makefile
index cf4cd5733901..1a1fe08ce723 100644
--- a/x11-toolkits/xforms/Makefile
+++ b/x11-toolkits/xforms/Makefile
@@ -14,15 +14,24 @@ MASTER_SITES=	${MASTER_SITE_SAVANNAH} \
 		${MASTER_SITE_LOCAL}
 MASTER_SITE_SUBDIR=	${PORTNAME}/stable.pkg/${PORTVERSION} \
 			mikeh
+
 USE_REINPLACE=	yes
 REINPLACE_ARGS=	-i ""
 
-MAINTAINER=	mikeh@FreeBSD.ORG
-COMMENT=	A graphical user interface toolkit for X Window System
+MAINTAINER?=	mikeh@FreeBSD.ORG
+COMMENT?=	A graphical user interface toolkit for X Window System
 
 LIB_DEPENDS=	jpeg.9:${PORTSDIR}/graphics/jpeg \
 		tiff.4:${PORTSDIR}/graphics/tiff
 
+.if defined(WITH_I18N)
+PKGNAMESUFFIX=	-i18n
+PATCH_SITES=	ftp://cellular.phys.pusan.ac.kr/CJK-LyX/xforms/ \
+		http://www.otaru-uc.ac.jp/~yokota/comp/
+PATCHFILES=	xforms-1.0-i18n_7.patch
+PATCH_DIST_STRIP=	-p1
+.endif
+
 USE_XPM=	yes
 USE_IMAKE=	yes
 INSTALLS_SHLIB=	yes
diff --git a/x11-toolkits/xforms/distinfo b/x11-toolkits/xforms/distinfo
index 33f3c8d336e0..b70940b789b7 100644
--- a/x11-toolkits/xforms/distinfo
+++ b/x11-toolkits/xforms/distinfo
@@ -1,2 +1,4 @@
 MD5 (xforms-1.0.tar.gz) = 64adf1c489b629a92218f7c140f4bdaf
 SIZE (xforms-1.0.tar.gz) = 1012878
+MD5 (xforms-1.0-i18n_7.patch) = 56a19c84ba63af99902a21c21e27ec1f
+SIZE (xforms-1.0-i18n_7.patch) = 48814
-- 
cgit v1.2.3