[Pkg-scicomp-devel] paraview/trunk/debian

Ondrej Certik ondrej at certik.cz
Sat Feb 2 23:23:49 UTC 2008


SVN commit 2048 by certik-guest:

Make the beast configure and build finally.

 M  +16 -28    paraview/trunk/debian/rules  


--- paraview/trunk/debian/rules #2047:2048
@@ -9,52 +9,40 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-include /usr/share/quilt/quilt.make
 
 
-# These are used for cross-compiling and for saving the configure script
-# from having to guess our platform (since we know it already)
-DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-
-
-CFLAGS = -Wall -g
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-	CFLAGS += -O0
-	FFLAGS += -O0
-else
-	CFLAGS += -O2
-	FFLAGS += -O2
-endif
-
 configure: configure-stamp
-configure-stamp: patch
+configure-stamp:
 	dh_testdir
 	# Add here commands to configure the package.
+	
+	QUILT_PATCHES=debian/patches quilt push -a || test $$? = 2
+
 	mkdir para
 	cd para; cmake ../
 
-	touch $@
+	touch configure-stamp
 
+
 build: build-stamp
 
-build-stamp:
+build-stamp: configure-stamp 
 	dh_testdir
 
 	# Add here commands to compile the package.
-	cd para;$(MAKE)
+	cd para; $(MAKE)
 
 	touch $@
 
-clean: unpatch
+clean:
 	dh_testdir
 	dh_testroot
-	rm -f build-stamp 
+	rm -f build-stamp configure-stamp
+	rm -rf para
 
 	# Add here commands to clean up after the build process.
-	rm -rf para
 
+	QUILT_PATCHES=debian/patches quilt pop -a -R || test $$? = 2
 	dh_clean 
 
 install: build
@@ -63,8 +51,8 @@
 	dh_clean -k 
 	dh_installdirs
 
-	# Add here commands to install the package into debian/paraview.
-	CMAKE_INSTALL_PREFIX=debian/paraview $(MAKE) install
+	# Add here commands to install the package into debian/te.
+	#$(MAKE) DESTDIR=$(CURDIR)/debian/te install
 
 
 # Build architecture-independent files here.
@@ -75,7 +63,7 @@
 binary-arch: build install
 	dh_testdir
 	dh_testroot
-	dh_installchangelogs ChangeLog
+	dh_installchangelogs 
 	dh_installdocs
 	dh_installexamples
 #	dh_install
@@ -103,7 +91,7 @@
 	dh_builddeb
 
 binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install 
+.PHONY: build clean binary-indep binary-arch binary install configure
 
 orig-tarball:
 	wget http://www.paraview.org/files/v3.2/paraview-3.2.1.tar.gz



More information about the Pkg-scicomp-devel mailing list