The following commit has been merged in the master branch:
commit e9f7aaec6b680307815f6407d9c71d7daf9915c0
Author: Gilles Filippini <p...@debian.org>
Date:   Sat Jan 4 19:54:53 2014 +0100

    Introduce pkg-config files for the -dev packages.

diff --git a/debian/hdf5-mpich.pc b/debian/hdf5-mpich.pc
new file mode 100644
index 0000000..ccbfac6
--- /dev/null
+++ b/debian/hdf5-mpich.pc
@@ -0,0 +1,6 @@
+Name: HDF5
+Description: Hierarchical Data Format 5 (HDF5) - MPICH version
+Version: 1.8.12
+Requires: mpich
+Cflags:
+Libs: -lhdf5
diff --git a/debian/hdf5-openmpi.pc b/debian/hdf5-openmpi.pc
new file mode 100644
index 0000000..c88bf27
--- /dev/null
+++ b/debian/hdf5-openmpi.pc
@@ -0,0 +1,6 @@
+Name: HDF5
+Description: Hierarchical Data Format 5 (HDF5) - OpenMPI version
+Version: 1.8.12
+Requires:
+Cflags: -I/usr/include/openmpi
+Libs: -lhdf5 -L/usr/lib/openmpi/lib -lmpi
diff --git a/debian/hdf5.pc b/debian/hdf5.pc
new file mode 100644
index 0000000..a4cade3
--- /dev/null
+++ b/debian/hdf5.pc
@@ -0,0 +1,6 @@
+Name: HDF5
+Description: Hierarchical Data Format 5 (HDF5)
+Version: 1.8.12
+Requires:
+Cflags:
+Libs: -lhdf5
diff --git a/debian/rules b/debian/rules
index ecbf4bf..f91e78b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,7 @@
 # (c) 2003 Josselin Mouette
 # (c) 2007-2009 Francesco P. Lovergine.
 # (c) 2010-2013 Sylvestre Ledru
+# (c) 2014 Gilles Filippini
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
@@ -192,6 +193,7 @@ install-serial: build-stamp
        dh_install -p$(serpack) -p$(package)-dev -phdf5-helpers -phdf5-tools 
-p$(sercpppack) \
                --sourcedir=debian/build/tmpinst
        find debian/$(serpack)/usr/lib -name '*cpp*' -delete
+       install -m644 -D debian/hdf5.pc 
debian/$(package)-dev/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/hdf5.pc
 
 install-openmpi: build-stamp-openmpi
        dh_testdir
@@ -201,6 +203,7 @@ install-openmpi: build-stamp-openmpi
        chrpath -d $(CURDIR)/debian/build-openmpi/tmpinst/usr/lib/*/libhdf5*so*
        dh_install -p$(openmpipack) -p$(package)-openmpi-dev \
                --sourcedir=debian/build-openmpi/tmpinst
+       install -m644 -D debian/hdf5-openmpi.pc 
debian/$(package)-openmpi-dev/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/hdf5.pc
 
 install-mpich: build-stamp-mpich
        dh_testdir
@@ -210,6 +213,7 @@ install-mpich: build-stamp-mpich
        chrpath -d $(CURDIR)/debian/build-mpich/tmpinst/usr/lib/*/libhdf5*so*
        dh_install -p$(mpichpack) -p$(package)-mpich-dev \
                --sourcedir=debian/build-mpich/tmpinst
+       install -m644 -D debian/hdf5-mpich.pc 
debian/$(package)-mpich-dev/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/hdf5.pc
 
 install-doc: build-indep
        dh_testdir

-- 
Hierarchical Data Format 5 (HDF5)

_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to