Revision: 17254
          http://gar.svn.sourceforge.net/gar/?rev=17254&view=rev
Author:   dmichelsen
Date:     2012-03-01 13:40:51 +0000 (Thu, 01 Mar 2012)
Log Message:
-----------
pupnp/trunk: Initial commit, does not compile yet

Added Paths:
-----------
    csw/mgar/pkg/pupnp/
    csw/mgar/pkg/pupnp/Makefile
    csw/mgar/pkg/pupnp/branches/
    csw/mgar/pkg/pupnp/tags/
    csw/mgar/pkg/pupnp/trunk/
    csw/mgar/pkg/pupnp/trunk/Makefile
    csw/mgar/pkg/pupnp/trunk/checksums
    csw/mgar/pkg/pupnp/trunk/files/
    csw/mgar/pkg/pupnp/trunk/files/0001-Add-includes-for-Solaris.patch
    
csw/mgar/pkg/pupnp/trunk/files/0002-Use-inttypes.h-if-stdint.h-is-not-available.patch
    csw/mgar/pkg/pupnp/trunk/files/libupnp-01-solaris.spec

Added: csw/mgar/pkg/pupnp/Makefile
===================================================================
--- csw/mgar/pkg/pupnp/Makefile                         (rev 0)
+++ csw/mgar/pkg/pupnp/Makefile 2012-03-01 13:40:51 UTC (rev 17254)
@@ -0,0 +1,2 @@
+%:
+       $(MAKE) -C trunk $*


Property changes on: csw/mgar/pkg/pupnp/trunk
___________________________________________________________________
Added: svn:ignore
   + cookies
download
work


Added: svn:externals
   + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2


Added: csw/mgar/pkg/pupnp/trunk/Makefile
===================================================================
--- csw/mgar/pkg/pupnp/trunk/Makefile                           (rev 0)
+++ csw/mgar/pkg/pupnp/trunk/Makefile   2012-03-01 13:40:51 UTC (rev 17254)
@@ -0,0 +1,45 @@
+# $Id$
+# TODO (release-critical prefixed with !, non release-critical with *)
+#
+NAME = libupnp
+VERSION = 1.6.15
+GARTYPE = v2
+CATEGORIES = lib
+
+DESCRIPTION = Portable UPnP SDK
+define BLURB
+endef
+
+SF_PROJ = pupnp
+MASTER_SITES = $(SF_MIRROR)
+DISTFILES += $(DISTNAME).tar.bz2
+
+# Add patch from SFE originally to be found at
+#   
http://pkgbuild.svn.sourceforge.net/svnroot/pkgbuild/spec-files-extra/trunk/patches/libupnp-01-solaris.spec
+# PATCHFILES += libupnp-01-solaris.spec
+
+PATCHFILES += 0001-Add-includes-for-Solaris.patch
+PATCHFILES += 0002-Use-inttypes.h-if-stdint.h-is-not-available.patch
+
+PACKAGES += CSWmypkg
+SPKG_DESC_CSWmypkg = My package
+PKGFILES_CSWmypkg += $(call pkgfiles_lib,libabc.so.1)
+PKGFILES_CSWmypkg += $(call baseisadirs,$(bindir),myexec)
+PKGFILES_CSWmypkg += $(sysconfdir)/myconf
+
+# "VERSION\" | sed " configure
+REINPLACEMENTS += gsed
+REINPLACE_MATCH_gsed = VERSION\"\ \|\ sed
+REINPLACE_WITH_gsed = VERSION\" | gsed
+REINPLACE_FILES_gsed += configure
+
+
+BUILD64_LIBS_ONLY = 1
+
+# From README
+EXTRA_CFLAGS += -D__sun
+
+CONFIGURE_ARGS = $(DIRPATHS)
+
+include gar/category.mk
+


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

Added: csw/mgar/pkg/pupnp/trunk/checksums
===================================================================
--- csw/mgar/pkg/pupnp/trunk/checksums                          (rev 0)
+++ csw/mgar/pkg/pupnp/trunk/checksums  2012-03-01 13:40:51 UTC (rev 17254)
@@ -0,0 +1 @@
+1b21e5b5fb6185101c467aefd19f0bf7  libupnp-1.6.15.tar.bz2

Added: csw/mgar/pkg/pupnp/trunk/files/0001-Add-includes-for-Solaris.patch
===================================================================
--- csw/mgar/pkg/pupnp/trunk/files/0001-Add-includes-for-Solaris.patch          
                (rev 0)
+++ csw/mgar/pkg/pupnp/trunk/files/0001-Add-includes-for-Solaris.patch  
2012-03-01 13:40:51 UTC (rev 17254)
@@ -0,0 +1,25 @@
+From b2d7dc97a2498339e01cc2799e6e27640f83cca2 Mon Sep 17 00:00:00 2001
+From: Dagobert Michelsen <d...@opencsw.org>
+Date: Thu, 1 Mar 2012 13:43:07 +0100
+Subject: [PATCH] Add includes for Solaris
+
+---
+ upnp/inc/UpnpInet.h |    2 ++
+ 1 files changed, 2 insertions(+), 0 deletions(-)
+
+diff --git a/upnp/inc/UpnpInet.h b/upnp/inc/UpnpInet.h
+index 6269c4a..a51cdc5 100644
+--- a/upnp/inc/UpnpInet.h
++++ b/upnp/inc/UpnpInet.h
+@@ -30,6 +30,8 @@
+       #if defined(__sun)
+               #include <fcntl.h>
+               #include <sys/sockio.h>
++              #include <sys/types.h>
++              #include <sys/socket.h>
+       #elif (defined(BSD) && BSD >= 199306) || defined (__FreeBSD_kernel__)
+               #include <ifaddrs.h>
+               /* Do not move or remove the include below for "sys/socket"!
+-- 
+1.7.9
+

Added: 
csw/mgar/pkg/pupnp/trunk/files/0002-Use-inttypes.h-if-stdint.h-is-not-available.patch
===================================================================
--- 
csw/mgar/pkg/pupnp/trunk/files/0002-Use-inttypes.h-if-stdint.h-is-not-available.patch
                               (rev 0)
+++ 
csw/mgar/pkg/pupnp/trunk/files/0002-Use-inttypes.h-if-stdint.h-is-not-available.patch
       2012-03-01 13:40:51 UTC (rev 17254)
@@ -0,0 +1,28 @@
+From b32cacc18632995c2ac265eb323b30e2c2ee1b56 Mon Sep 17 00:00:00 2001
+From: Dagobert Michelsen <d...@opencsw.org>
+Date: Thu, 1 Mar 2012 14:09:24 +0100
+Subject: [PATCH] Use inttypes.h if stdint.h is not available
+
+---
+ upnp/inc/UpnpStdInt.h |    4 ++++
+ 1 files changed, 4 insertions(+), 0 deletions(-)
+
+diff --git a/upnp/inc/UpnpStdInt.h b/upnp/inc/UpnpStdInt.h
+index 9256f57..f87c095 100644
+--- a/upnp/inc/UpnpStdInt.h
++++ b/upnp/inc/UpnpStdInt.h
+@@ -4,7 +4,11 @@
+ #if !defined(UPNP_USE_BCBPP)
+ 
+ /* Sized integer types. */
++#if defined( HAVE_STDINT_H )
+ #include <stdint.h>
++#elsif defined( HAVE_INTTYPES_H )
++#include <inttypes.h>
++#endif
+ 
+ #ifdef UPNP_USE_MSVCPP
+       /* no ssize_t defined for VC */
+-- 
+1.7.9
+

Added: csw/mgar/pkg/pupnp/trunk/files/libupnp-01-solaris.spec
===================================================================
--- csw/mgar/pkg/pupnp/trunk/files/libupnp-01-solaris.spec                      
        (rev 0)
+++ csw/mgar/pkg/pupnp/trunk/files/libupnp-01-solaris.spec      2012-03-01 
13:40:51 UTC (rev 17254)
@@ -0,0 +1,42 @@
+--- libupnp-1.6.0/README.orig  2007-07-15 15:19:30.541726415 +0700
++++ libupnp-1.6.0/README       2007-07-15 15:20:12.555440132 +0700
+@@ -111,7 +111,7 @@
+ options enabled (see below for options available at configure time).
+ 
+ % cd $(LIBUPNP)
+-% ./configure CFLAGS="-DSPARC_SOLARIS -mtune=<cputype> -mcpu=<cputype>"
++% ./configure CFLAGS="-DSOLARIS -mtune=<cputype> -mcpu=<cputype>"
+ % make
+ 
+ will build a Sparc Solaris version of the binaries without debug support
+@@ -247,7 +247,7 @@
+ described above. Only the call to ./configure has to be done using an
+ additional parameter:
+ 
+-./configure CFLAGS="-mcpu=<cputype> -mtune=<cputype> -DSPARC_SOLARIS"
++./configure CFLAGS="-mcpu=<cputype> -mtune=<cputype> -DSOLARIS"
+ 
+ where <cputype> has to be replaced by the appropriate CPU tuning flag (e.g.
+ "supersparc"). Afterwards
+--- libupnp-1.6.6/upnp/src/genlib/net/uri/uri.c.orig   2008-11-13 
13:58:53.675111848 +0800
++++ libupnp-1.6.6/upnp/src/genlib/net/uri/uri.c        2008-11-13 
14:36:42.044847654 +0800
+@@ -627,7 +627,7 @@
+         // platform-specific stuff below
+ #if defined(WIN32) || defined(__CYGWIN__)
+         h = gethostbyname(temp_host_name);
+-#elif defined(SPARC_SOLARIS)
++#elif defined(SOLARIS)
+         errCode = gethostbyname_r(
+                 temp_host_name,
+                 &h,
+--- libupnp-1.6.6/upnp/src/api/upnpapi.c.orig  2008-11-13 14:51:07.131616887 
+0800
++++ libupnp-1.6.6/upnp/src/api/upnpapi.c       2008-11-13 14:51:52.992915327 
+0800
+@@ -56,7 +56,7 @@
+       #include <unistd.h>
+ 
+ 
+-      #if defined(_sun)
++      #if defined(SOLARIS)
+               #include <sys/sockio.h>
+               #include <fcntl.h>
+       #elif defined(BSD) && BSD >= 199306

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

_______________________________________________
devel mailing list
devel@lists.opencsw.org
https://lists.opencsw.org/mailman/listinfo/devel

Reply via email to