svn commit: r357883 - in head/archivers: . php5-snappy php5-snappy/files
Kurt Jaeger
pi at FreeBSD.org
Sun Jun 15 13:45:03 UTC 2014
Author: pi
Date: Sun Jun 15 13:45:01 2014
New Revision: 357883
URL: http://svnweb.freebsd.org/changeset/ports/357883
QAT: https://qat.redports.org/buildarchive/r357883/
Log:
New port archivers/php5-snappy
PR: ports/189885
Submitted by: Melvyn Sopacua <melvyn at magemana.nl>
Added:
head/archivers/php5-snappy/
head/archivers/php5-snappy/Makefile (contents, props changed)
head/archivers/php5-snappy/distinfo (contents, props changed)
head/archivers/php5-snappy/files/
head/archivers/php5-snappy/files/patch-config.m4 (contents, props changed)
head/archivers/php5-snappy/pkg-descr (contents, props changed)
Modified:
head/archivers/Makefile
Modified: head/archivers/Makefile
==============================================================================
--- head/archivers/Makefile Sun Jun 15 13:42:05 2014 (r357882)
+++ head/archivers/Makefile Sun Jun 15 13:45:01 2014 (r357883)
@@ -138,6 +138,7 @@
SUBDIR += php-horde_lz4
SUBDIR += php5-bz2
SUBDIR += php5-phar
+ SUBDIR += php5-snappy
SUBDIR += php5-zip
SUBDIR += php5-zlib
SUBDIR += php53-bz2
Added: head/archivers/php5-snappy/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/archivers/php5-snappy/Makefile Sun Jun 15 13:45:01 2014 (r357883)
@@ -0,0 +1,37 @@
+# Created by: Melvyn Sopacua <melvyn at magemana.nl>
+# $FreeBSD$
+
+PORTNAME= php5-snappy
+PORTVERSION= 0.0.2
+CATEGORIES= archivers
+MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
+PROJECTHOST= php-snappy
+DISTNAME= ${PROJECTHOST}-${PORTVERSION}
+
+MAINTAINER= melvyn at magemana.nl
+COMMENT= PHP extension for the snappy compression algorithm
+
+LICENSE= BSD2CLAUSE
+
+LIB_DEPENDS+= libsnappy.so:${PORTSDIR}/archivers/snappy
+CONFIGURE_ARGS+= --with-snappy-includedir=${LOCALBASE}/include
+
+USE_PHP= yes
+USE_PHPEXT= yes
+PHP_MODNAME= snappy
+WRKSRC= ${WRKDIR}/${PROJECTHOST}
+OPTIONS_DEFINE= TEST
+
+.include <bsd.port.options.mk>
+test: build
+ @(cd ${WRKSRC} && ${MAKE} ${MAKE_ENV} NO_INTERACTION=yes ${.TARGET})
+
+.if !empty(${PORT_OPTIONS:MTEST})
+post-stage: test
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/php/20100525/snappy.so
+.else
+post-stage:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/php/20100525/snappy.so
+.endif
+
+.include <bsd.port.mk>
Added: head/archivers/php5-snappy/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/archivers/php5-snappy/distinfo Sun Jun 15 13:45:01 2014 (r357883)
@@ -0,0 +1,2 @@
+SHA256 (php-snappy-0.0.2.tar.gz) = 7aa6be88e09985fc0f9054b3e3d06612383aaacbbc6db705913ad7d047dc9cd9
+SIZE (php-snappy-0.0.2.tar.gz) = 6801
Added: head/archivers/php5-snappy/files/patch-config.m4
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/archivers/php5-snappy/files/patch-config.m4 Sun Jun 15 13:45:01 2014 (r357883)
@@ -0,0 +1,44 @@
+--- config.m4.orig 2011-09-07 10:27:21.000000000 +0200
++++ config.m4 2014-05-17 13:31:39.000000000 +0200
+@@ -53,7 +53,7 @@
+
+ if test "$PHP_SNAPPY_INCLUDEDIR" != "no" && test "$PHP_SNAPPY_INCLUDEDIR" != "yes"; then
+ if test -r "$PHP_SNAPPY_INCLUDEDIR/snappy.h"; then
+- SNAPPY_DIR="$PHP_SNAPPY_INCLUDEDIR"
++ SNAPPY_DIR="$(dirname $PHP_SNAPPY_INCLUDEDIR)"
+ else
+ AC_MSG_ERROR([Can't find snappy headers under "$PHP_SNAPPY_INCLUDEDIR"])
+ fi
+@@ -61,12 +61,12 @@
+ SEARCH_PATH="/usr/local /usr" # you might want to change this
+ SEARCH_FOR="/include/snappy-c.h" # you most likely want to change this
+ if test -r $PHP_SNAPPY/$SEARCH_FOR; then # path given as parameter
+- SNAPPY_DIR="$PHP_SNAPPY/include"
++ SNAPPY_DIR="$PHP_SNAPPY"
+ else # search default path list
+ AC_MSG_CHECKING([for snappy files in default path])
+ for i in $SEARCH_PATH ; do
+ if test -r $i/$SEARCH_FOR; then
+- SNAPPY_DIR="$i/include"
++ SNAPPY_DIR="$i"
+ AC_MSG_RESULT(found in $i)
+ fi
+ done
+@@ -80,7 +80,7 @@
+
+ dnl # add include path
+
+- PHP_ADD_INCLUDE($SNAPPY_DIR)
++ PHP_ADD_INCLUDE([$SNAPPY_DIR/include])
+
+ dnl # check for lib
+
+@@ -90,7 +90,7 @@
+ AC_LANG_CPLUSPLUS
+ AC_TRY_COMPILE(
+ [
+- #include "$SNAPPY_DIR/snappy-c.h"
++ #include "$SNAPPY_DIR/include/snappy-c.h"
+ ],[
+ snappy_max_compressed_length(1);
+ ],[
Added: head/archivers/php5-snappy/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/archivers/php5-snappy/pkg-descr Sun Jun 15 13:45:01 2014 (r357883)
@@ -0,0 +1,4 @@
+Provides the API to PHP for the snappy compression algorithm by
+Google.
+
+WWW: http://code.google.com/p/php-snappy/
More information about the svn-ports-all
mailing list