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

(-)b/archivers/Makefile (+1 lines)
Lines 137-142 Link Here
137
    SUBDIR += php-horde_lz4
137
    SUBDIR += php-horde_lz4
138
    SUBDIR += php5-bz2
138
    SUBDIR += php5-bz2
139
    SUBDIR += php5-phar
139
    SUBDIR += php5-phar
140
    SUBDIR += php5-snappy
140
    SUBDIR += php5-zip
141
    SUBDIR += php5-zip
141
    SUBDIR += php5-zlib
142
    SUBDIR += php5-zlib
142
    SUBDIR += php53-bz2
143
    SUBDIR += php53-bz2
(-)b/archivers/php5-snappy/Makefile (+33 lines)
Added Link Here
1
# Created by: Melvyn Sopacua <melvyn@magemana.nl>
2
# $FreeBSD$
3
4
PORTNAME=	php5-snappy
5
PORTVERSION=	0.0.2
6
CATEGORIES=	archivers
7
MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
8
PROJECTHOST=	php-snappy
9
DISTNAME=	${PROJECTHOST}-${PORTVERSION}
10
11
MAINTAINER=	melvyn@magemana.nl
12
COMMENT=	PHP extension for the snappy compression algorithm
13
14
LICENSE=	BSD
15
16
LIB_DEPENDS+=	snappy:${PORTSDIR}/archivers/snappy
17
CONFIGURE_ARGS+=	--with-snappy-includedir=${LOCALBASE}/include
18
19
USE_PHP=	yes
20
USE_PHPEXT=	yes
21
PHP_MODNAME=	snappy
22
WRKSRC=		${WRKDIR}/${PROJECTHOST}
23
OPTIONS_DEFINE=	TEST
24
25
.include <bsd.port.options.mk>
26
test: build
27
	@(cd ${WRKSRC} && ${MAKE} ${MAKE_ENV} NO_INTERACTION=yes ${.TARGET})
28
29
.if !empty(${PORT_OPTIONS:MTEST})
30
post-stage: test
31
.endif
32
33
.include <bsd.port.mk>
(-)b/archivers/php5-snappy/distinfo (+2 lines)
Added Link Here
1
SHA256 (php-snappy-0.0.2.tar.gz) = 7aa6be88e09985fc0f9054b3e3d06612383aaacbbc6db705913ad7d047dc9cd9
2
SIZE (php-snappy-0.0.2.tar.gz) = 6801
(-)b/archivers/php5-snappy/files/patch-config.m4 (+44 lines)
Added Link Here
1
--- config.m4.orig	2011-09-07 10:27:21.000000000 +0200
2
+++ config.m4	2014-05-17 13:31:39.000000000 +0200
3
@@ -53,7 +53,7 @@
4
 
5
   if test "$PHP_SNAPPY_INCLUDEDIR" != "no" && test "$PHP_SNAPPY_INCLUDEDIR" != "yes"; then
6
     if test -r "$PHP_SNAPPY_INCLUDEDIR/snappy.h"; then
7
-      SNAPPY_DIR="$PHP_SNAPPY_INCLUDEDIR"
8
+      SNAPPY_DIR="$(dirname $PHP_SNAPPY_INCLUDEDIR)"
9
     else
10
       AC_MSG_ERROR([Can't find snappy headers under "$PHP_SNAPPY_INCLUDEDIR"])
11
     fi
12
@@ -61,12 +61,12 @@
13
     SEARCH_PATH="/usr/local /usr"     # you might want to change this
14
     SEARCH_FOR="/include/snappy-c.h"  # you most likely want to change this
15
     if test -r $PHP_SNAPPY/$SEARCH_FOR; then # path given as parameter
16
-      SNAPPY_DIR="$PHP_SNAPPY/include"
17
+      SNAPPY_DIR="$PHP_SNAPPY"
18
     else # search default path list
19
       AC_MSG_CHECKING([for snappy files in default path])
20
       for i in $SEARCH_PATH ; do
21
         if test -r $i/$SEARCH_FOR; then
22
-          SNAPPY_DIR="$i/include"
23
+          SNAPPY_DIR="$i"
24
           AC_MSG_RESULT(found in $i)
25
         fi
26
       done
27
@@ -80,7 +80,7 @@
28
 
29
   dnl # add include path
30
 
31
-  PHP_ADD_INCLUDE($SNAPPY_DIR)
32
+  PHP_ADD_INCLUDE([$SNAPPY_DIR/include])
33
 
34
   dnl # check for lib
35
 
36
@@ -90,7 +90,7 @@
37
   AC_LANG_CPLUSPLUS
38
   AC_TRY_COMPILE(
39
   [
40
-    #include "$SNAPPY_DIR/snappy-c.h"
41
+    #include "$SNAPPY_DIR/include/snappy-c.h"
42
   ],[
43
     snappy_max_compressed_length(1);
44
   ],[
(-)b/archivers/php5-snappy/pkg-descr (+4 lines)
Added Link Here
1
Provides the API to PHP for the snappy compression algorithm by
2
Google.
3
4
WWW: http://code.google.com/p/php-snappy/

Return to bug 189885