[csw-devel] SF.net SVN: gar:[8942] csw/mgar/pkg/protobuf/trunk/Makefile

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Tue Mar 2 15:16:28 CET 2010


Revision: 8942
          http://gar.svn.sourceforge.net/gar/?rev=8942&view=rev
Author:   wahwah
Date:     2010-03-02 14:16:28 +0000 (Tue, 02 Mar 2010)

Log Message:
-----------
protobuf: Adding Python support, splitting off runtime and devel packages.

Modified Paths:
--------------
    csw/mgar/pkg/protobuf/trunk/Makefile

Modified: csw/mgar/pkg/protobuf/trunk/Makefile
===================================================================
--- csw/mgar/pkg/protobuf/trunk/Makefile	2010-03-02 13:26:01 UTC (rev 8941)
+++ csw/mgar/pkg/protobuf/trunk/Makefile	2010-03-02 14:16:28 UTC (rev 8942)
@@ -2,7 +2,6 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-# Still doesn't build, I've filed a bug:
 # http://code.google.com/p/protobuf/issues/detail?id=166
 #
 # About using stlport4
@@ -11,7 +10,6 @@
 GARNAME = protobuf
 GARVERSION = 2.3.0
 CATEGORIES = lib
-DESCRIPTION = encoding structured data in an efficient yet extensible format
 define BLURB
 	Protocol Buffers are a way of encoding structured data in an efficient yet
 	extensible format. Google uses Protocol Buffers for almost all of its
@@ -32,6 +30,40 @@
 BUILD64 = 1
 CONFIGURE_ARGS = $(DIRPATHS)
 TEST_TARGET = check
+PYCOMPILE = 1
+
+PACKAGES  = CSWprotobuf
+PACKAGES += CSWprotobuf-rt
+PACKAGES += CSWprotobuf-devel
+PACKAGES += CSWpy-protobuf
+SPKG_DESC_CSWprotobuf = Google Protocol buffers
+SPKG_DESC_CSWprotobuf-rt = $(SPKG_DESC_CSWprotobuf), shared libraries
+SPKG_DESC_CSWprotobuf-devel = $(SPKG_DESC_CSWprotobuf), header files
+SPKG_DESC_CSWpy-protobuf= $(SPKG_DESC_CSWprotobuf), Python support
+CATALOGNAME_CSWprotobuf-rt = protobuf_rt
+CATALOGNAME_CSWprotobuf-devel = protobuf_devel
+CATALOGNAME_CSWpy-protobuf = py_protobuf
+PKGFILES_CSWprotobuf += $(bindir).*protoc.*
+PKGFILES_CSWprotobuf += $(libdir).*protoc.*
+PKGFILES_CSWprotobuf-devel  = $(PKGFILES_DEVEL)
+PKGFILES_CSWprotobuf-rt = $(libdir).*libprotobuf.*
+PKGFILES_CSWpy-protobuf = $(libdir)/python.*
+
+ARCHALL_CSWpy-protobuf = 1
+RUNTIME_DEP_PKGS_CSWprotobuf += CSWprotobuf-rt
 RUNTIME_DEP_PKGS_CSWprotobuf += CSWstlport
 RUNTIME_DEP_PKGS_CSWprotobuf += CSWzlib
+RUNTIME_DEP_PKGS_CSWprotobuf-devel += CSWprotobuf
+RUNTIME_DEP_PKGS_CSWprotobuf-rt += CSWstlport
+RUNTIME_DEP_PKGS_CSWprotobuf-rt += CSWzlib
+RUNTIME_DEP_PKGS_CSWpy-protobuf += CSWprotobuf
+
 include gar/category.mk
+
+post-build-modulated:
+	(cd $(WORKSRC)/python; python setup.py build)
+	@$(MAKECOOKIE)
+
+post-install-modulated:
+	(cd $(WORKSRC)/python; python setup.py install --root=$(DESTDIR) --prefix=$(prefix))
+	@$(MAKECOOKIE)


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