From owner-freebsd-ports Sun Feb 25 17:30: 8 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3387837B67D for ; Sun, 25 Feb 2001 17:30:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f1Q1U1947283; Sun, 25 Feb 2001 17:30:01 -0800 (PST) (envelope-from gnats) Received: from thehousleys.net (frenchknot.ne.mediaone.net [24.147.224.201]) by hub.freebsd.org (Postfix) with ESMTP id A34D037B4EC for ; Sun, 25 Feb 2001 17:21:18 -0800 (PST) (envelope-from housley@thehousleys.net) Received: (from root@localhost) by thehousleys.net (8.11.2/8.11.2) id f1Q1LHM41646 for freebsd-gnats-submit@freebsd.org; Sun, 25 Feb 2001 20:21:17 -0500 (EST) (envelope-from housley@baby.int.thehousleys.net) Received: from baby.int.thehousleys.net (baby.ipv6.thehousleys.net [3ffe:1ce3:6:0:260:8ff:fea3:7fb2]) by thehousleys.net (8.11.2/8.11.2) with ESMTP id f1Q1LFv41636 for ; Sun, 25 Feb 2001 20:21:15 -0500 (EST) (envelope-from housley@baby.int.thehousleys.net) Received: (from housley@localhost) by baby.int.thehousleys.net (8.11.2/8.11.2) id f1Q1LFE01789; Sun, 25 Feb 2001 20:21:15 -0500 (EST) (envelope-from housley) Message-Id: <200102260121.f1Q1LFE01789@baby.int.thehousleys.net> Date: Sun, 25 Feb 2001 20:21:15 -0500 (EST) From: housley@thehousleys.net Reply-To: housley@thehousleys.net To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/25367: Add libming support to mod_php4 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 25367 >Category: ports >Synopsis: Add libming support to mod_php4 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Feb 25 17:30:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: James E. Housley >Release: FreeBSD 4.2-STABLE i386 >Organization: The Housleys dot Net >Environment: FreeBSD 4.2-STABLE >Description: libming (graphics/ming) allows creation of shockwave compatiable files. However the instrucitons and files in the ming distrobution don't quite work for the FreeBSD layout. Simple modifications allow the integration of this library. >How-To-Repeat: >Fix: diff -ruN mod_php4/files/ming-config-m4 mod_php4.new/files/ming-config-m4 --- mod_php4/files/ming-config-m4 Wed Dec 31 19:00:00 1969 +++ mod_php4.new/files/ming-config-m4 Sun Feb 25 14:45:36 2001 @@ -0,0 +1,38 @@ +dnl $Id: config.m4,v 1.2 2001/02/08 21:41:29 opaque_ndst Exp $ +dnl config.m4 for extension libming +dnl don't forget to call PHP_EXTENSION(ming) +dnl This file is a modified version of config.m4 +dnl in php4/ext/mcrypt + +PHP_ARG_WITH(ming, for ming support, +[ --with-ming[=DIR] Include ming support]) + +if test "$PHP_MING" != "no"; then + for i in /usr/lib /usr/local/ /usr/local/lib /usr $PHP_MING $PHP_MING/lib; do + if test -r $i/libming.so; then + MING_LIB_DIR=$i + fi + done + + if test -z "$MING_LIB_DIR"; then + AC_MSG_ERROR(Please reinstall libming.so - I cannot find libming.so) + fi + + for i in /usr/include /usr/local/include $PHP_MING $PHP_MING/include $PHP_MING/include/ming; do + if test -r $i/ming.h; then + MING_INC_DIR=$i + fi + done + + if test -z "$MING_INC_DIR"; then + AC_MSG_ERROR(Please reinstall ming.h - I cannot find ming.h) + fi + + AC_ADD_INCLUDE($MING_INC_DIR) + + AC_ADD_LIBRARY_WITH_PATH(ming, $MING_LIB_DIR, MING_SHARED_LIBADD) + PHP_SUBST(MING_SHARED_LIBADD) + AC_DEFINE(HAVE_MING,1,[ ]) + + PHP_EXTENSION(ming, $ext_shared) +fi diff -ruN mod_php4/scripts/configure.php mod_php4.new/scripts/configure.php --- mod_php4/scripts/configure.php Sat Feb 17 08:33:18 2001 +++ mod_php4.new/scripts/configure.php Sun Feb 25 12:40:55 2001 @@ -31,6 +31,7 @@ jstring "jstring module" OFF \ YP "YP/NIS support" OFF \ BCMath "BCMath support" OFF \ +ming "ming library support" OFF \ 2> /tmp/checklist.tmp.$$ retval=$? @@ -182,6 +183,24 @@ ;; \"BCMath\") echo "CONFIGURE_ARGS+=--enable-bcmath" + ;; + \"ming\") + ${CAT} << EOF +CONFIGURE_ARGS+= --with-ming=\${PREFIX} +BUILD_DEPENDS+= /nonexistent:\${PORTSDIR}/graphics/ming:extract +BUILD_DEPENDS+= automake:\${PORTSDIR}/devel/automake +BUILD_DEPENDS+= autoconf:\${PORTSDIR}/devel/autoconf +LIB_DEPENDS+= ming.2:\${PORTSDIR}/graphics/ming + +post-extract: + [ -d \${PORTSDIR}/graphics/ming/work ] && \\ + (cd \${WRKSRC}; \\ + \${MKDIR} \${WRKSRC}/ext/ming; \\ + \${CP} \${PORTSDIR}/graphics/ming/work/\`\${MAKE} -f \${PORTSDIR}/graphics/ming/Makefile -V DISTNAME\`/php_ext/* \${WRKSRC}/ext/ming; \\ + \${CP} \${FILESDIR}/ming-config-m4 \${WRKSRC}/ext/ming/config.m4; \\ + \${RM} configure; \\ + ./buildconf) +EOF ;; *) echo "Invalid option(s): $*" > /dev/stderr >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message