SF.net SVN: gar:[23015] csw/mgar/pkg/lang-python/pygtk/trunk/Makefile
cgrzemba at users.sourceforge.net
cgrzemba at users.sourceforge.net
Thu Feb 13 16:29:24 CET 2014
Revision: 23015
http://sourceforge.net/p/gar/code/23015
Author: cgrzemba
Date: 2014-02-13 15:29:24 +0000 (Thu, 13 Feb 2014)
Log Message:
-----------
lang-python/pygtk/trunk: add build and packaging for Python2.7
Modified Paths:
--------------
csw/mgar/pkg/lang-python/pygtk/trunk/Makefile
Modified: csw/mgar/pkg/lang-python/pygtk/trunk/Makefile
===================================================================
--- csw/mgar/pkg/lang-python/pygtk/trunk/Makefile 2014-02-13 14:53:15 UTC (rev 23014)
+++ csw/mgar/pkg/lang-python/pygtk/trunk/Makefile 2014-02-13 15:29:24 UTC (rev 23015)
@@ -3,6 +3,8 @@
VERSION = 2.24.0
GARTYPE = v2
RELVER = $(shell echo $(VERSION) |gsed 's/\(^[0-9].*\.[0-9].*\)\.[0-9]*/\1/')
+# keep the 'configure; make; make install'-mantra
+# CATEGORIES = python
DESCRIPTION = Python bindings for the GTK library
define BLURB
@@ -21,6 +23,22 @@
PACKAGING_PLATFORMS=solaris10-i386 solaris10-sparc
+# add this because we do not use the pyton category
+_MERGE_EXCLUDE_CATEGORY += .*/$(NAME)/test
+_MERGE_EXCLUDE_CATEGORY += .*/$(NAME)/test/.*
+PYCOMPILE = 1
+_CATEGORY_MODULATORS ?= PYTHON_VERSION
+EXTRA_MODULATORS += PYTHON_VERSION
+MODULATIONS_PYTHON_VERSION = 2.6 2.7
+# We need 64 bit just once as it is without python anyway
+SKIP_MODULATIONS += isa-sparcv9-python_version-2.7
+SKIP_MODULATIONS += isa-amd64-python_version-2.7
+PYTHON = $(bindir)/python$(PYTHON_VERSION)
+MERGE_SCRIPTS_isa-default-python_version-2.6 += copy-all
+MERGE_SCRIPTS_isa-default-python_version-2.7 += copy-all
+MERGE_SCRIPTS_isa-default64-python_version-2.6 += copy-relocated-only
+MERGE_DIRS_isa-default64-python_version-2.6 += $(libdir)
+
BUILD_DEP_PKGS += CSWpkgconfig
BUILD_DEP_PKGS += CSWpython-dev
BUILD_DEP_PKGS += CSWpython27-dev
@@ -88,6 +106,7 @@
# PKG_CONFIG_PATH = /opt/csw/lib/pkgconfig:/opt/csw/X11/lib/pkgconfig
# EXTRA_EXPORTS = PKG_CONFIG_PATH
+EXTRA_CONFIGURE_ENV = PYTHON=python$(PYTHON_VERSION)
CONFIGURE_ARGS = $(DIRPATHS)
#TEST_SCRIPTS =
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