diff options
-rw-r--r-- | lang/php52/Makefile.ext | 2 | ||||
-rw-r--r-- | math/php52-gmp/Makefile | 2 | ||||
-rw-r--r-- | math/php52-gmp/files/patch-gmp.c | 11 |
3 files changed, 14 insertions, 1 deletions
diff --git a/lang/php52/Makefile.ext b/lang/php52/Makefile.ext index effc4b075cc7..45e6090061f1 100644 --- a/lang/php52/Makefile.ext +++ b/lang/php52/Makefile.ext @@ -121,7 +121,7 @@ USE_GETTEXT= yes .endif .if ${PHP_MODNAME} == "gmp" -LIB_DEPENDS+= gmp.8:${PORTSDIR}/math/libgmp4 +LIB_DEPENDS+= gmp.10:${PORTSDIR}/math/gmp CONFIGURE_ARGS+=--with-gmp=${LOCALBASE} .endif diff --git a/math/php52-gmp/Makefile b/math/php52-gmp/Makefile index d48e2865920f..750ab322ddbd 100644 --- a/math/php52-gmp/Makefile +++ b/math/php52-gmp/Makefile @@ -5,6 +5,8 @@ # $FreeBSD$ # +PORTREVISION= 1 + CATEGORIES= math MASTERDIR= ${.CURDIR}/../../lang/php52 diff --git a/math/php52-gmp/files/patch-gmp.c b/math/php52-gmp/files/patch-gmp.c new file mode 100644 index 000000000000..7d137f0e827e --- /dev/null +++ b/math/php52-gmp/files/patch-gmp.c @@ -0,0 +1,11 @@ +--- gmp.c.orig 2010-04-21 22:00:31.841602968 +0000 ++++ gmp.c 2010-04-21 22:00:46.412804473 +0000 +@@ -1396,7 +1396,7 @@ + + GMPG(rand_initialized) = 1; + } +- mpz_urandomb(*gmpnum_result, GMPG(rand_state), GMP_ABS (limiter) * __GMP_BITS_PER_MP_LIMB); ++ mpz_urandomb(*gmpnum_result, GMPG(rand_state), GMP_ABS (limiter) * GMP_LIMB_BITS); + + ZEND_REGISTER_RESOURCE(return_value, gmpnum_result, le_gmp); + } |