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

Ondrej Certik ondrej at certik.cz
Wed Jul 4 18:26:17 UTC 2007


SVN commit 1621 by certik-guest:

Compile with -O3 and create a library as well.


 M  +30 -2     tetgen/trunk/debian/control  
 M  +21 -2     tetgen/trunk/debian/rules  


--- tetgen/trunk/debian/control #1620:1621
@@ -1,6 +1,6 @@
 Source: tetgen
+Priority: extra
 Section: non-free/math
-Priority: extra
 Maintainer: Ondrej Certik <ondrej at certik.cz> 
 Uploaders: Debian Scientific Computing Team <pkg-scicomp-devel at lists.alioth.debian.org>
 Build-Depends: debhelper (>= 5), docbook-to-man
@@ -8,7 +8,7 @@
 
 Package: tetgen
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
+Depends: ${shlibs:Depends}
 Description: A Quality Tetrahedral Mesh Generator 
  TetGen generates the Delaunay tetrahedralization, Voronoi diagram, and convex
  hull for three-dimensional point sets, generates the constrained Delaunay
@@ -16,3 +16,31 @@
  domains with piecewise linear boundary.
  .
   Homepage: http://tetgen.berlios.de/
+
+Package: libtet1.4.2
+Architecture: any
+Section: non-free/libs
+Depends: ${shlibs:Depends}
+Description: A Quality Tetrahedral Mesh Generator 
+ TetGen generates the Delaunay tetrahedralization, Voronoi diagram, and convex
+ hull for three-dimensional point sets, generates the constrained Delaunay
+ tetrahedralizations and quality tetrahedral meshes for three-dimensional
+ domains with piecewise linear boundary.
+ .
+ This package provides the runtime shared library.
+ .
+  Homepage: http://tetgen.berlios.de/
+
+Package: libtet1.4.2-dev
+Architecture: any
+Section: non-free/libdevel
+Depends: libtetgen1.4.2 (>= ${source:Version})
+Description: A Quality Tetrahedral Mesh Generator 
+ TetGen generates the Delaunay tetrahedralization, Voronoi diagram, and convex
+ hull for three-dimensional point sets, generates the constrained Delaunay
+ tetrahedralizations and quality tetrahedral meshes for three-dimensional
+ domains with piecewise linear boundary.
+ .
+ This package provides header file and static library.
+ .
+  Homepage: http://tetgen.berlios.de/
--- tetgen/trunk/debian/rules #1620:1621
@@ -1,5 +1,7 @@
 #!/usr/bin/make -f
 
+TETGEN_VERSION = 1.4.2
+
 CFLAGS = -Wall -g
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
@@ -21,7 +23,13 @@
 	dh_testdir
 
 	# Add here commands to compile the package.
-	$(MAKE)
+	$(MAKE) CXXFLAGS="-O3 -fPIC" PREDCXXFLAGS="-O0 -fPIC"
+	$(MAKE) tetlib CXXFLAGS="-O3 -fPIC"
+	mkdir tmp-tetgen-shlib; \
+	cd tmp-tetgen-shlib; \
+	ar x ../libtet.a; \
+	gcc -shared -fPIC -Wl,-soname,libtet.so.$(TETGEN_VERSION) -o ../libtet.so.$(TETGEN_VERSION) *.o
+	
 	docbook-to-man debian/tetgen.sgml > tetgen.1
 
 	touch $@
@@ -36,17 +44,27 @@
 
 	dh_clean 
 
+tetgenbin = $(CURDIR)/debian/libtet$(TETGEN_VERSION)
+tetgendev = $(CURDIR)/debian/libtet$(TETGEN_VERSION)-dev
+
 install: build
 	dh_testdir
 	dh_testroot
 	dh_clean -k 
 	dh_installdirs
 
-	# Add here commands to install the package into debian/tetgen.
+	mkdir -p $(tetgenbin)/usr/lib
+	mkdir -p $(tetgendev)/usr/lib
+	mkdir -p $(tetgendev)/usr/include
 	dh_install --sourcedir=$(CURDIR) tetgen usr/bin/
 	dh_installexamples --sourcedir=$(CURDIR) example.poly
 
+	cp $(CURDIR)/tetgen.h $(tetgendev)/usr/include/
+	cp $(CURDIR)/libtet.a $(tetgendev)/usr/lib
+	ln -s /usr/lib/libtet.so.$(TETGEN_VERSION) $(tetgendev)/usr/lib/libtetgen.so
+	cp $(CURDIR)/libtet.so.$(TETGEN_VERSION) $(tetgenbin)/usr/lib/
 
+
 # Build architecture-independent files here.
 binary-indep: build install
 # We have nothing to do by default.
@@ -63,6 +81,7 @@
 	dh_strip
 	dh_compress
 	dh_fixperms
+	dh_makeshlibs
 	dh_installdeb
 	dh_shlibdeps
 	dh_gencontrol



More information about the Pkg-scicomp-devel mailing list