Package: libhdf4
Version: 4.2r4-4
Severity: important
Tags: patch
User: debian-...@lists.debian.org
Usertags: kfreebsd

Hi,

please find attached a minimal patch to fix the FTBFS on GNU/kFreeBSD.
autoconf also needs to be added to the Build-Depends for that to work; I
didn't do so because you may fully relibtoolize, your call.

Thanks for considering.

Mraw,
KiBi.
diff -u libhdf4-4.2r4/debian/rules libhdf4-4.2r4/debian/rules
--- libhdf4-4.2r4/debian/rules
+++ libhdf4-4.2r4/debian/rules
@@ -92,9 +92,11 @@
 stamps/configure-stamp: patch
 	rm -f HDF4 && ln -sf HDF$(RELEASE) HDF4
 	# build the 'regular' netcdf-clashing flavor.
+	cd HDF4 && autoconf
 	cd HDF4 && F77="$(F77)" CC="$(CC)" CXX="$(CXX)" ./configure --prefix=/usr --includedir=/usr/include/hdf \
 			      				     --enable-shared  --enable-fortran
 	# build a netcdf compatible flavor, without fortran functions.
+	cd HDF4_ALT && autoconf
 	cd HDF4_ALT && CC="$(CC)" CXX="$(CXX)" ./configure --prefix=/usr --includedir=/usr/include/hdf --disable-netcdf \
 			      				      --enable-shared --disable-fortran
 	touch $@
diff -u libhdf4-4.2r4/debian/patches/series libhdf4-4.2r4/debian/patches/series
--- libhdf4-4.2r4/debian/patches/series
+++ libhdf4-4.2r4/debian/patches/series
@@ -5,0 +6 @@
+kfreebsd-support
only in patch2:
unchanged:
--- libhdf4-4.2r4.orig/debian/patches/kfreebsd-support
+++ libhdf4-4.2r4/debian/patches/kfreebsd-support
@@ -0,0 +1,11 @@
+--- a/HDF4/configure.ac
++++ b/HDF4/configure.ac
+@@ -671,7 +671,7 @@ case "$host" in
+   mips*-sgi-irix6_32*)  BAR="irix32"      ;;
+   mips*-sgi-irix5*)     BAR="irix5"       ;;
+   mips*-sgi-irix4*)     BAR="irix4"       ;;
+-  *-linux*)             BAR="linux"       ;;
++  *-linux*|*-k*bsd*-gnu)BAR="linux"       ;;
+   *-freebsd*)           BAR="fbsd"        ;;
+   ia64-*-*)             BAR="ia64"        ;;
+   *-ibm-aix*)           BAR="aix"         ;;
_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel

Reply via email to