[pfft] 02/02: d/*: support build for multiple precisions

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Sep 11 13:27:17 UTC 2014


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository pfft.

commit e2fc3fc15a5b2f888da8de492f798d25a987551f
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Thu Sep 11 14:26:15 2014 +0100

    d/*: support build for multiple precisions
---
 debian/control                                     | 68 ++++++++++++++++++----
 debian/libpfft-dev.install                         |  5 --
 debian/libpfft1-dev.install                        |  3 +
 .../{libpfft0.install => libpfft1-double0.install} |  0
 debian/libpfft1-long0.install                      |  1 +
 debian/libpfft1-single0.install                    |  1 +
 debian/rules                                       | 30 ++++++++--
 7 files changed, 87 insertions(+), 21 deletions(-)

diff --git a/debian/control b/debian/control
index 184f309..be2ac21 100644
--- a/debian/control
+++ b/debian/control
@@ -13,45 +13,89 @@ Homepage: https://www-user.tu-chemnitz.de/~mpip/software.php.en#pfft
 #Vcs-Git: git://anonscm.debian.org/debian-science/packages/pfft.git
 #Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/pfft.git
 
-Package: libpfft0
+#Package: libpfft1-0
+#Architecture: any
+#Multi-Arch: same
+#Depends:
+#${shlibs:Depends},
+#${misc:Depends}
+#Pre-Depends: ${misc:Pre-Depends}
+#Description: Parallel FFT software library based on MPI -- shared library
+#PFFT is a parallel FFT software library based on MPI and distributed under 
+#GPL license.
+#.
+#This package contains the shared version of the library.
+
+Package: libpfft1-double0
 Architecture: any
 Multi-Arch: same
 Depends:
  ${shlibs:Depends},
  ${misc:Depends}
-Pre-Depends: ${misc:Pre-Depends}
-Description: Parallel FFT software library based on MPI -- shared library
+Description: Parallel FFT software library based on MPI -- double precision
  PFFT is a parallel FFT software library based on MPI and distributed under 
  GPL license.
  .
- This package contains the shared version of the library.
+ This package contains the shared library for double precision transforms.
 
-Package: libpfft-dev
+Package: libpfft1-single0
+Architecture: any
+Multi-Arch: same
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends}
+Description: Parallel FFT software library based on MPI -- single precision
+ PFFT is a parallel FFT software library based on MPI and distributed under 
+ GPL license.
+ .
+ This package contains the shared library for single precision transforms.
+
+Package: libpfft1-long0
+Architecture: any
+Multi-Arch: same
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends}
+Description: Parallel FFT software library based on MPI -- long double precision
+ PFFT is a parallel FFT software library based on MPI and distributed under 
+ GPL license.
+ .
+ This package contains the shared library for long double precision transforms.
+
+Package: libpfft1-dev
 Section: libdevel
 Architecture: any
 Multi-Arch: same
 Depends:
  ${shlibs:Depends},
  ${misc:Depends},
- libpfft0 (= ${binary:Version})
-Description: Parallel FFT software library based on MPI -- header files
+ libpfft1-double0 (= ${binary:Version}),
+ libpfft1-single0 (= ${binary:Version}),
+ libpfft1-long0 (= ${binary:Version}),
+ libfftw3-dev,
+ libfftw3-mpi-dev
+Suggests:
+ libpfft1-dbg
+Description: Parallel FFT software library based on MPI -- development
  PFFT is a parallel FFT software library based on MPI and distributed under 
  GPL license.
  .
- This package contains the header files and static version of the library.
+ This package contains the header files and static libraries.
 
-Package: libpfft0-dbg
+Package: libpfft1-dbg
 Section: debug
 Priority: extra
 Architecture: any
 Multi-Arch: same
 Depends:
  ${misc:Depends},
- libpfft0 (= ${binary:Version})
+ libpfft1-double0 (= ${binary:Version}),
+ libpfft1-single0 (= ${binary:Version}),
+ libpfft1-long0 (= ${binary:Version})
 Suggests:
  libfftw3-dbg
-Description: Parallel FFT software library based on MPI -- debug library
+Description: Parallel FFT software library based on MPI -- debug symbols
  PFFT is a parallel FFT software library based on MPI and distributed under 
  GPL license.
  .
- This package contains the debugging symbols of the library.
+ This package contains the debugging symbols of the libraries.
diff --git a/debian/libpfft-dev.install b/debian/libpfft-dev.install
deleted file mode 100644
index da4359b..0000000
--- a/debian/libpfft-dev.install
+++ /dev/null
@@ -1,5 +0,0 @@
-usr/include/pfft.h
-usr/lib/*/libpfft.so
-usr/lib/*/libpfft.a
-usr/include/*.f usr/include/pfft
-usr/include/*.f03 usr/include/pfft
diff --git a/debian/libpfft1-dev.install b/debian/libpfft1-dev.install
new file mode 100644
index 0000000..687bcea
--- /dev/null
+++ b/debian/libpfft1-dev.install
@@ -0,0 +1,3 @@
+usr/include/*.h
+usr/lib/*/libpfft*.so
+usr/lib/*/libpfft*.a
diff --git a/debian/libpfft0.install b/debian/libpfft1-double0.install
similarity index 100%
rename from debian/libpfft0.install
rename to debian/libpfft1-double0.install
diff --git a/debian/libpfft1-long0.install b/debian/libpfft1-long0.install
new file mode 100644
index 0000000..ed78a91
--- /dev/null
+++ b/debian/libpfft1-long0.install
@@ -0,0 +1 @@
+usr/lib/*/libpfftl.so.0*
diff --git a/debian/libpfft1-single0.install b/debian/libpfft1-single0.install
new file mode 100644
index 0000000..f8dc606
--- /dev/null
+++ b/debian/libpfft1-single0.install
@@ -0,0 +1 @@
+usr/lib/*/libpfftf.so.0*
diff --git a/debian/rules b/debian/rules
index 5cc8ec8..047ab5f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,14 +13,36 @@ export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
 # package maintainers to append LDFLAGS
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
 
-
 %:
 	dh $@ --with autoreconf
 
 override_dh_auto_configure:
-	dh_auto_configure -- \
+	dh_auto_configure --builddirectory=pfft -- \
+		--enable-threads \
+		--disable-fortran
+	dh_auto_configure --builddirectory=pfftf -- \
+		--enable-threads \
+		--disable-fortran \
+		--enable-single
+	dh_auto_configure --builddirectory=pfftl -- \
 		--enable-threads \
-		--enable-portable-binary
+		--disable-fortran \
+		--enable-long-double
+
+override_dh_auto_build:
+	dh_auto_build --builddirectory=pfft
+	dh_auto_build --builddirectory=pfftf
+	dh_auto_build --builddirectory=pfftl
+
+override_dh_auto_clean:
+	dh_auto_clean --builddirectory=pfft
+	dh_auto_clean --builddirectory=pfftf
+	dh_auto_clean --builddirectory=pfftl
+
+override_dh_auto_install-arch:
+	dh_auto_install --builddirectory=pfft --package=libpfft1-double0
+	dh_auto_install --builddirectory=pfftf --package=libpfft1-single0
+	dh_auto_install --builddirectory=pfftl --package=libpfft1-long0
 
 override_dh_strip:
-	dh_strip --dbg-package=libpfft0-dbg
+	dh_strip -a --dbg-package=libpfft1-dbg

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pfft.git



More information about the debian-science-commits mailing list