[DebianGIS-dev] r2156 - packages/gdal/trunk/debian

frankie at alioth.debian.org frankie at alioth.debian.org
Wed Apr 15 20:24:27 UTC 2009


Author: frankie
Date: 2009-04-15 20:24:27 +0000 (Wed, 15 Apr 2009)
New Revision: 2156

Modified:
   packages/gdal/trunk/debian/rules
Log:


Modified: packages/gdal/trunk/debian/rules
===================================================================
--- packages/gdal/trunk/debian/rules	2009-04-15 19:35:08 UTC (rev 2155)
+++ packages/gdal/trunk/debian/rules	2009-04-15 20:24:27 UTC (rev 2156)
@@ -94,14 +94,20 @@
 	
 	# It needs pre-installing just after the building due to intermediate cleaning.
 	# Apply conditionally an on-fly patch for pre 1.3.38 swig versions.
+ifneq ($(SWIGOK),yes)
 	for V in $(PYVERS); do \
 		cp GDALmake.opt-$$V GDALmake.opt; \
 		$(MAKE) -C $(CURDIR)/swig/python clean; \
 		$(MAKE) -C $(CURDIR)/swig/python generate build; \
 		$(MAKE) -C $(CURDIR)/swig/python install DESTDIR=$(CURDIR)/debian/python-tmp; \
-ifneq ($(SWIGOK),yes)
 		echo "Patching ogr.py" ; \
 		patch $(CURDIR)/debian/python-tmp/usr/lib/python$$V/site-packages/osgeo/ogr.py $(CURDIR)/debian/ogr.py.diff; \
+else
+	for V in $(PYVERS); do \
+		cp GDALmake.opt-$$V GDALmake.opt; \
+		$(MAKE) -C $(CURDIR)/swig/python clean; \
+		$(MAKE) -C $(CURDIR)/swig/python generate build; \
+		$(MAKE) -C $(CURDIR)/swig/python install DESTDIR=$(CURDIR)/debian/python-tmp; \
 endif
 	done
 	$(MAKE) docs




More information about the Pkg-grass-devel mailing list