[csw-devel] SF.net SVN: gar:[20719] csw/mgar/pkg

wilbury at users.sourceforge.net wilbury at users.sourceforge.net
Mon Apr 15 16:18:43 CEST 2013


Revision: 20719
          http://gar.svn.sourceforge.net/gar/?rev=20719&view=rev
Author:   wilbury
Date:     2013-04-15 14:18:43 +0000 (Mon, 15 Apr 2013)
Log Message:
-----------
php5_memcached/trunk: Initial commit.

Added Paths:
-----------
    csw/mgar/pkg/php5_memcached/
    csw/mgar/pkg/php5_memcached/Makefile
    csw/mgar/pkg/php5_memcached/branches/
    csw/mgar/pkg/php5_memcached/tags/
    csw/mgar/pkg/php5_memcached/trunk/
    csw/mgar/pkg/php5_memcached/trunk/Makefile
    csw/mgar/pkg/php5_memcached/trunk/checksums
    csw/mgar/pkg/php5_memcached/trunk/files/
    csw/mgar/pkg/php5_memcached/trunk/files/0001-Use-proper-libmemcached-headers-dir.patch
    csw/mgar/pkg/php5_memcached/trunk/files/0002-Include-proper-memcached.h.patch

Added: csw/mgar/pkg/php5_memcached/Makefile
===================================================================
--- csw/mgar/pkg/php5_memcached/Makefile	                        (rev 0)
+++ csw/mgar/pkg/php5_memcached/Makefile	2013-04-15 14:18:43 UTC (rev 20719)
@@ -0,0 +1,2 @@
+%:
+	$(MAKE) -C trunk $*


Property changes on: csw/mgar/pkg/php5_memcached/trunk
___________________________________________________________________
Added: svn:ignore
   + work


Added: csw/mgar/pkg/php5_memcached/trunk/Makefile
===================================================================
--- csw/mgar/pkg/php5_memcached/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/php5_memcached/trunk/Makefile	2013-04-15 14:18:43 UTC (rev 20719)
@@ -0,0 +1,83 @@
+# $Id$
+#
+NAME = memcached
+VERSION = 2.1.0
+GARTYPE = v2
+
+# to match php5
+PACKAGING_PLATFORMS = solaris10-sparc solaris10-i386
+
+DESCRIPTION = memcached Extention for PHP
+define BLURB
+	The Alternative PHP Cache (APC) is a free and open opcode cache for PHP.
+	It was conceived of to provide a free, open, and robust framework 
+	for caching and optimizing PHP intermediate code. 
+endef
+
+PHP_PREFIX = $(prefix)/php5
+PHP_BIN = $(PHP_PREFIX)/bin
+
+PHP5_EXT = 1
+
+PHP5ROOT    = $(DESTDIR)/$(PHP_PREFIX)
+STRIP_DIRS += $(PHP5ROOT)/lib/php/extensions/*/
+STRIP_DIRS += $(PHP5ROOT)/bin
+
+SPKG_SOURCEURL = http://us.php.net/memcached/
+MASTER_SITES = http://pecl.php.net/get/
+UFILES_REGEX = (\d+(?:\.\d+)*).tgz
+
+DISTFILES = $(DISTNAME).tgz
+PATCHFILES += 0001-Use-proper-libmemcached-headers-dir.patch
+PATCHFILES += 0002-Include-proper-memcached.h.patch
+
+GARCOMPILER = GNU
+
+PACKAGES = CSWphp5-memcached
+OBSOLETED_BY_CSWphp5-memcached = CSWphp5memcached
+CATALOG_NAME_CSWphp5memcached = php5_memcached_stub
+SPKG_DESC_CSWphp5-memcached = APC Extention for PHP5
+RUNTIME_DEP_PKGS_CSWphp5-memcached = CSWphp5
+BUILD_DEPS_CSWphp5-memcached = CSWapache2 CSWphp5-dev
+RUNTIME_DEP_PKGS_CSWphp5-memcached += CSWlibgcc-s1
+RUNTIME_DEP_PKGS_CSWphp5-memcached += CSWlibmemcached8
+RUNTIME_DEP_PKGS_CSWphp5-memcached += CSWlibz1
+
+CONFIGURE_ARGS  = $(DIRPATHS)
+CONFIGURE_ARGS += --with-php-config=$(bindir)/php-config
+CONFIGURE_ARGS += --enable-memcached=shared
+CONFIGURE_ARGS += --with-libmemcached-dir=shared,$(prefix)
+CONFIGURE_ARGS += --enable-memcached-json
+
+LICENSE = LICENSE
+
+# Build flags
+EXTRA_CFLAGS += "-I$(predix)/include/libmemcached"
+
+# These should stop the test suite from asking to send results by
+# mail.
+NO_INTERACTION = 1
+EXTRA_TEST_EXPORTS = NO_INTERACTION
+
+# this thing doesn't use destdir.  export install_root with the same
+# value
+INSTALL_ROOT = $(DESTDIR)
+EXTRA_INSTALL_EXPORTS = INSTALL_ROOT
+
+TEST_TARGET = test
+
+CHECKPKG_OVERRIDES_CSWphp5-memcahcewd += surplus-dependency|CSWphp5
+
+include gar/category.mk
+
+# these are after the include so GARCH is set.
+# attempting to get a usable build on sparc:
+# https://bugs.php.net/bug.php?id=59100
+ifeq ($(GARCH),sparc)
+EXTRA_CFLAGS = -xmemalign=1i
+endif
+
+
+post-extract-isa-$(ISA_DEFAULT_$(GARCH)):
+	@( cd $(WORKSRC) ; $(PHP_BIN)/phpize )
+	@$(MAKECOOKIE)


Property changes on: csw/mgar/pkg/php5_memcached/trunk/Makefile
___________________________________________________________________
Added: svn:keywords
   + Id

Added: csw/mgar/pkg/php5_memcached/trunk/checksums
===================================================================
--- csw/mgar/pkg/php5_memcached/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/php5_memcached/trunk/checksums	2013-04-15 14:18:43 UTC (rev 20719)
@@ -0,0 +1 @@
+daf070aad13bebffdff50acf6e93043c  memcached-2.1.0.tgz

Added: csw/mgar/pkg/php5_memcached/trunk/files/0001-Use-proper-libmemcached-headers-dir.patch
===================================================================
--- csw/mgar/pkg/php5_memcached/trunk/files/0001-Use-proper-libmemcached-headers-dir.patch	                        (rev 0)
+++ csw/mgar/pkg/php5_memcached/trunk/files/0001-Use-proper-libmemcached-headers-dir.patch	2013-04-15 14:18:43 UTC (rev 20719)
@@ -0,0 +1,25 @@
+From 958bc636ff85ff12071ef24d5db5e6f21019ad4f Mon Sep 17 00:00:00 2001
+From: Juraj Lutter <wilbury at opencsw.org>
+Date: Mon, 15 Apr 2013 15:46:44 +0200
+Subject: [PATCH] Use proper libmemcached headers dir.
+
+---
+ configure | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure b/configure
+index 6cd4bb9..3015af7 100755
+--- a/configure
++++ b/configure
+@@ -5154,7 +5154,7 @@ $as_echo "$memcached_enable_sasl" >&6; }
+   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmemcached location" >&5
+ $as_echo_n "checking for libmemcached location... " >&6; }
+   if test "$PHP_LIBMEMCACHED_DIR" != "no" && test "$PHP_LIBMEMCACHED_DIR" != "yes"; then
+-    if ! test -r "$PHP_LIBMEMCACHED_DIR/include/libmemcached-1.0/memcached.h"; then
++    if ! test -r "$PHP_LIBMEMCACHED_DIR/include/libmemcached/memcached.h"; then
+       as_fn_error $? "Can't find libmemcached 1.0.x headers under \"$PHP_LIBMEMCACHED_DIR\"" "$LINENO" 5
+     fi
+   else
+-- 
+1.8.1.4
+

Added: csw/mgar/pkg/php5_memcached/trunk/files/0002-Include-proper-memcached.h.patch
===================================================================
--- csw/mgar/pkg/php5_memcached/trunk/files/0002-Include-proper-memcached.h.patch	                        (rev 0)
+++ csw/mgar/pkg/php5_memcached/trunk/files/0002-Include-proper-memcached.h.patch	2013-04-15 14:18:43 UTC (rev 20719)
@@ -0,0 +1,24 @@
+From b60beed92d4d9eca62a718a4c1fe1b5d18abb03b Mon Sep 17 00:00:00 2001
+From: Juraj Lutter <wilbury at opencsw.org>
+Date: Mon, 15 Apr 2013 15:52:58 +0200
+Subject: [PATCH] Include proper memcached.h
+
+---
+ php_libmemcached_compat.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/php_libmemcached_compat.h b/php_libmemcached_compat.h
+index 6e5f58b..fc6ee7d 100644
+--- a/php_libmemcached_compat.h
++++ b/php_libmemcached_compat.h
+@@ -2,6 +2,6 @@
+ #define PHP_LIBMEMCACHED_COMPAT
+ 
+ /* this is the version(s) we support */
+-#include <libmemcached-1.0/memcached.h>
++#include <libmemcached/memcached.h>
+ 
+ #endif
+-- 
+1.8.1.4
+

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list