[SCM] Package for Analyzing Lattice Polytopes branch, master, updated. upstream/2.1-7-gb1dd2d8

Julien Puydt julien.puydt at laposte.net
Fri Jun 22 07:03:42 UTC 2012


The following commit has been merged in the master branch:
commit 76f7ac265b5a130570ecce956c14a5ceb699ce6f
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Thu Jun 21 21:12:10 2012 +0200

    First try at an autotools build

diff --git a/debian/GNUmakefile.am b/debian/GNUmakefile.am
new file mode 100644
index 0000000..aaad603
--- /dev/null
+++ b/debian/GNUmakefile.am
@@ -0,0 +1,13 @@
+bin_PROGRAMS = poly.x class.x cws.x nef.x mori.x
+
+COMMONS = Coord.c Rat.c Vertex.c Polynf.c
+
+poly_x_SOURCES = $(COMMONS) poly.c LG.c LG.h
+
+class_x_SOURCES = $(COMMONS) class.c Subpoly.c Subadd.c Subdb.c Global.h Subpoly.h
+
+cws_x_SOURCES = $(COMMONS) cws.c LG.c Global.h LG.h
+
+nef_x_SOURCES = $(COMMONS) nef.c E_Poly.c Nefpart.c LG.c Global.h
+
+mori_x_SOURCES = $(COMMONS) mori.c MoriCone.c SingularInput.c LG.c Mori.h
\ No newline at end of file
diff --git a/debian/configure.ac b/debian/configure.ac
new file mode 100644
index 0000000..66a1bb0
--- /dev/null
+++ b/debian/configure.ac
@@ -0,0 +1,12 @@
+AC_INIT(palp, 2.1)
+AM_INIT_AUTOMAKE
+
+AC_PROG_CC
+AC_PROG_INSTALL
+
+AC_CHECK_HEADERS([limits.h stdlib.h string.h])
+
+AC_FUNC_MALLOC
+AC_FUNC_REALLOC
+
+AC_OUTPUT(GNUmakefile)
diff --git a/debian/control b/debian/control
index d8fe866..d235e22 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,7 @@ Priority: optional
 Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
 Uploaders: Tim Abbott <tabbott at mit.edu>,
            Julien Puydt <julien.puydt at laposte.net>
-Build-Depends: debhelper (>= 9)
+Build-Depends: debhelper (>= 9), dh-autoreconf (>= 4~)
 Homepage: http://hep.itp.tuwien.ac.at/%7Ekreuzer/CY/CYpalp.html
 Standards-Version: 3.9.3
 Vcs-Git: git://git.debian.org/git/debian-science/packages/palp.git
diff --git a/debian/rules b/debian/rules
index 1bcd2f1..774eac2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,10 +5,9 @@ CPPFLAGS=`dpkg-buildflags --get CPPFLAGS`
 LDFLAGS=`dpkg-buildflags --get LDFLAGS`
 
 %:
-	dh $@
+	dh $@ --with autoreconf
 
-build:
-	make CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)"
-
-override_dh_auto_clean:
-	rm -f *.o *.x
+override_dh_autoreconf:
+	cp debian/configure.ac debian/GNUmakefile.am .
+	touch NEWS README ChangeLog AUTHORS
+	dh_autoreconf

-- 
Package for Analyzing Lattice Polytopes



More information about the debian-science-commits mailing list