Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Dec 2000 11:00:00 +0900
From:      Jun Kuriyama <kuriyama@imgsrc.co.jp>
To:        dirk@FreeBSD.org
Cc:        Ports Team <ports@FreeBSD.org>
Subject:   www/mod_php4 patch for jstring
Message-ID:  <7mofyj3efz.wl@waterblue.imgsrc.co.jp>

next in thread | raw e-mail | index | archive | help
--Multipart_Mon_Dec_11_11:00:00_2000-1
Content-Type: text/plain; charset=US-ASCII


Hi Dirk,

Is it possible to apply this patch to www/mod_php4 port?  This enables
to configure with jstring module for PHP4 which supports additional
Japanese string functions.


-- 
Jun Kuriyama <kuriyama@imgsrc.co.jp> // IMG SRC, Inc.
             <kuriyama@FreeBSD.org> // FreeBSD Project

--Multipart_Mon_Dec_11_11:00:00_2000-1
Content-Type: application/octet-stream; type=patch
Content-Disposition: attachment; filename="mod_php4.diff"
Content-Transfer-Encoding: 7bit

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/www/mod_php4/Makefile,v
retrieving revision 1.121
diff -u -r1.121 Makefile
--- Makefile	2000/10/16 16:09:43	1.121
+++ Makefile	2000/12/06 03:28:17
@@ -28,6 +28,9 @@
 
 PHP_DISTDIR=	distributions
 
+JSTRING_SITE=	ftp://night.fminn.nagano.nagano.jp/php4/
+JSTRING_DIST=	php-4.0RC2_jstring-1.0.tar.gz
+
 APXS=		${PREFIX}/sbin/apxs
 
 USE_LIBTOOL=	yes
@@ -57,6 +60,13 @@
 
 pre-fetch:
 	@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.php
+
+post-extract:
+	[ -d ${WRKDIR}/jstring ] && \
+	( ${MV} ${WRKDIR}/jstring ${WRKSRC}/ext/; \
+	  cd ${WRKSRC}; \
+	  ${RM} configure; \
+	  ./buildconf)
 
 post-install:
 	@${ECHO} "Restarting Apache..."
Index: distinfo
===================================================================
RCS file: /home/ncvs/ports/www/mod_php4/distinfo,v
retrieving revision 1.89
diff -u -r1.89 distinfo
--- distinfo	2000/10/16 16:09:43	1.89
+++ distinfo	2000/12/06 03:16:23
@@ -1 +1,2 @@
 MD5 (php-4.0.3pl1.tar.gz) = 6969bc69588400557f70a014ab1536c1
+MD5 (php-4.0RC2_jstring-1.0.tar.gz) = 9a159030cf6cab58b1131c70780f0eb0
Index: scripts/configure.php
===================================================================
RCS file: /home/ncvs/ports/www/mod_php4/scripts/configure.php,v
retrieving revision 1.100
diff -u -r1.100 configure.php
--- scripts/configure.php	2000/11/16 10:14:31	1.100
+++ scripts/configure.php	2000/12/06 03:37:48
@@ -29,6 +29,7 @@
 XML		"XML support" OFF \
 FTP		"File Transfer Protocol support" OFF \
 gettext		"gettext library support" OFF \
+jstring		"jstring module" OFF \
 2> /tmp/checklist.tmp.$$
 
 	retval=$?
@@ -146,16 +147,19 @@
 			;;
 		\"XML\")
 			echo "BUILD_DEPENDS+=	\${PREFIX}/lib/libexpat.a:\${PORTSDIR}/textproc/expat"
-			echo "BUILD_DEPENDS+=	\${PREFIX}/include/xml/xmlparse.h:\${PORTSDIR}/textproc/expat"
-			echo "BUILD_DEPENDS+=	\${PREFIX}/include/xml/xmltok.h:\${PORTSDIR}/textproc/expat"
 			echo "CONFIGURE_ARGS+=--with-xml=\${PREFIX}"
 			;;
 		\"FTP\")
 			echo "CONFIGURE_ARGS+=--enable-ftp"
 			;;
 		\"gettext\")
-			echo "LIB_DEPENDS+=	intl.1:${PORTSDIR}/devel/gettext"
-			echo "CONFIGURE_ARGS+=--with-gettext=${PREFIX}"
+			echo "LIB_DEPENDS+=	intl.1:\${PORTSDIR}/devel/gettext"
+			echo "CONFIGURE_ARGS+=--with-gettext=\${PREFIX}"
+			;;
+		\"jstring\")
+			echo "MASTER_SITES+=	\${JSTRING_SITE}"
+			echo "DISTFILES=	\${DISTNAME}\${EXTRACT_SUFX} \${JSTRING_DIST}"
+			echo "CONFIGURE_ARGS+=--enable-jstring"
 			;;
 		*)
 			echo "Invalid option(s): $*" > /dev/stderr

--Multipart_Mon_Dec_11_11:00:00_2000-1--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7mofyj3efz.wl>