View | Details | Raw Unified | Return to bug 25367
Collapse All | Expand All

(-)mod_php4.new/files/ming-config-m4 (+38 lines)
Line 0 Link Here
1
dnl $Id: config.m4,v 1.2 2001/02/08 21:41:29 opaque_ndst Exp $
2
dnl config.m4 for extension libming
3
dnl don't forget to call PHP_EXTENSION(ming)
4
dnl This file is a modified version of config.m4
5
dnl in php4/ext/mcrypt
6
7
PHP_ARG_WITH(ming, for ming support,
8
[  --with-ming[=DIR]        Include ming support])
9
10
if test "$PHP_MING" != "no"; then
11
  for i in /usr/lib /usr/local/ /usr/local/lib /usr $PHP_MING $PHP_MING/lib; do
12
    if test -r $i/libming.so; then
13
      MING_LIB_DIR=$i
14
    fi
15
  done
16
17
  if test -z "$MING_LIB_DIR"; then
18
    AC_MSG_ERROR(Please reinstall libming.so - I cannot find libming.so)
19
  fi
20
21
  for i in /usr/include /usr/local/include $PHP_MING $PHP_MING/include $PHP_MING/include/ming; do
22
    if test -r $i/ming.h; then
23
      MING_INC_DIR=$i
24
    fi
25
  done
26
27
  if test -z "$MING_INC_DIR"; then
28
    AC_MSG_ERROR(Please reinstall ming.h - I cannot find ming.h)
29
  fi
30
31
  AC_ADD_INCLUDE($MING_INC_DIR)
32
33
  AC_ADD_LIBRARY_WITH_PATH(ming, $MING_LIB_DIR, MING_SHARED_LIBADD)
34
  PHP_SUBST(MING_SHARED_LIBADD)
35
  AC_DEFINE(HAVE_MING,1,[ ])
36
37
  PHP_EXTENSION(ming, $ext_shared)
38
fi
(-)mod_php4.new/scripts/configure.php (+19 lines)
Lines 31-36 Link Here
31
jstring		"jstring module" OFF \
31
jstring		"jstring module" OFF \
32
YP		"YP/NIS support" OFF \
32
YP		"YP/NIS support" OFF \
33
BCMath		"BCMath support" OFF \
33
BCMath		"BCMath support" OFF \
34
ming		"ming library support" OFF \
34
2> /tmp/checklist.tmp.$$
35
2> /tmp/checklist.tmp.$$
35
36
36
	retval=$?
37
	retval=$?
Lines 182-187 Link Here
182
			;;
183
			;;
183
		\"BCMath\")
184
		\"BCMath\")
184
			echo "CONFIGURE_ARGS+=--enable-bcmath"
185
			echo "CONFIGURE_ARGS+=--enable-bcmath"
186
			;;
187
		\"ming\")
188
			${CAT} << EOF
189
CONFIGURE_ARGS+=	--with-ming=\${PREFIX}
190
BUILD_DEPENDS+=	/nonexistent:\${PORTSDIR}/graphics/ming:extract
191
BUILD_DEPENDS+=	automake:\${PORTSDIR}/devel/automake
192
BUILD_DEPENDS+=	autoconf:\${PORTSDIR}/devel/autoconf
193
LIB_DEPENDS+=	ming.2:\${PORTSDIR}/graphics/ming
194
195
post-extract:
196
	[ -d \${PORTSDIR}/graphics/ming/work ] && \\
197
	(cd \${WRKSRC}; \\
198
	 \${MKDIR} \${WRKSRC}/ext/ming; \\
199
	 \${CP} \${PORTSDIR}/graphics/ming/work/\`\${MAKE} -f \${PORTSDIR}/graphics/ming/Makefile -V DISTNAME\`/php_ext/* \${WRKSRC}/ext/ming; \\
200
	 \${CP} \${FILESDIR}/ming-config-m4 \${WRKSRC}/ext/ming/config.m4; \\
201
	 \${RM} configure; \\
202
	 ./buildconf)
203
EOF
185
			;;
204
			;;
186
		*)
205
		*)
187
			echo "Invalid option(s): $*" > /dev/stderr
206
			echo "Invalid option(s): $*" > /dev/stderr

Return to bug 25367