Index: head/devel/pecl-qb/Makefile =================================================================== --- head/devel/pecl-qb/Makefile (revision 377168) +++ head/devel/pecl-qb/Makefile (revision 377169) @@ -1,22 +1,30 @@ # Created by: Gasol Wu # $FreeBSD$ PORTNAME= qb -PORTVERSION= 2.2.0 +PORTVERSION= 2.4.0 CATEGORIES= devel MASTER_SITES= http://pecl.php.net/get/ PKGNAMEPREFIX= pecl- DIST_SUBDIR= PECL MAINTAINER= gasol.wu@gmail.com COMMENT= PHP Accelerator designed mainly for graphic work LICENSE= PHP301 CONFIGURE_ARGS= --with-cpu=native USE_PHP= yes USE_PHPEXT= yes USES= tar:tgz USE_GCC= any -.include +.include + +.if ${OSVERSION} < 1000034 +LIB_DEPENDS+= libmissing.so:${PORTSDIR}/math/libmissing +CONFIGURE_ARGS= --with-libmissing=${LOCALBASE} +EXTRA_PATCHES+= ${FILESDIR}/extra-patch-libmissing +.endif + +.include Index: head/devel/pecl-qb/distinfo =================================================================== --- head/devel/pecl-qb/distinfo (revision 377168) +++ head/devel/pecl-qb/distinfo (revision 377169) @@ -1,2 +1,2 @@ -SHA256 (PECL/qb-2.2.0.tgz) = fa3c626506e6d7df46429afd3b4828b7b90bc479c0ab3b4c3b89c736c0bcfa19 -SIZE (PECL/qb-2.2.0.tgz) = 1090431 +SHA256 (PECL/qb-2.4.0.tgz) = c85aed6cffefa054b0f0e06a56df367e224139c5d8ad377c33ebea457f03b5b6 +SIZE (PECL/qb-2.4.0.tgz) = 930521 Index: head/devel/pecl-qb/files/extra-patch-libmissing =================================================================== --- head/devel/pecl-qb/files/extra-patch-libmissing (nonexistent) +++ head/devel/pecl-qb/files/extra-patch-libmissing (revision 377169) @@ -0,0 +1,11 @@ +--- qb_interpreter_functions.h.orig 2014-12-10 10:54:35.485422703 +0000 ++++ qb_interpreter_functions.h 2014-12-10 10:54:54.694421330 +0000 +@@ -22,6 +22,8 @@ + #ifndef QB_INTERPRETER_FUNCTIONS_H_ + #define QB_INTERPRETER_FUNCTIONS_H_ + ++#include ++ + int qb_compare_ascending_F32(const void *p1, const void *p2); + int qb_compare_ascending_F32_array(const void *p1, const void *p2, const void *p3); + int qb_compare_ascending_F64(const void *p1, const void *p2); Property changes on: head/devel/pecl-qb/files/extra-patch-libmissing ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/pecl-qb/files/patch-config.m4 =================================================================== --- head/devel/pecl-qb/files/patch-config.m4 (nonexistent) +++ head/devel/pecl-qb/files/patch-config.m4 (revision 377169) @@ -0,0 +1,26 @@ +--- config.m4.orig 2014-07-21 00:45:49.000000000 +0000 ++++ config.m4 2014-12-10 10:26:17.724992764 +0000 +@@ -13,6 +13,9 @@ + PHP_ARG_WITH(cpu, whether to enable CPU-specific optimization, + [ --with-cpu[=arch] Enable optimization specific to CPU archecture], no, no) + ++PHP_ARG_WITH(libmissing, whether to link libmissing, ++[ --with-libmissing[=prefix] Link libmissing], no, no) ++ + if test "$PHP_QB" != "no"; then + qb_cflags="" + +@@ -37,6 +40,13 @@ + qb_cflags="$qb_cflags -march=$PHP_CPU" + fi + fi ++ ++ if test "$PHP_LIBMISSING" != "no"; then ++ LIBMISSING_INCDIR="$PHP_LIBMISSING/include" ++ LIBMISSING_LIBDIR="$PHP_LIBMISSING/lib" ++ PHP_ADD_LIBRARY_WITH_PATH("missing", $LIBMISSING_LIBDIR, QB_SHARED_LIBADD) ++ PHP_ADD_INCLUDE($LIBMISSING_INCDIR) ++ fi + + AC_MSG_CHECKING([whether CC supports -march=native]) + ac_saved_cflags="$CFLAGS" Property changes on: head/devel/pecl-qb/files/patch-config.m4 ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property