Author: Andreas Tille <tille@debian.org>
Last-Update: 2022-05-14
Description: Use Debian packaged libhdf5
Forwarded: not-needed

--- a/src/myhdf5.h
+++ b/src/myhdf5.h
@@ -8,7 +8,7 @@
 #ifdef WINDOWS
 #include "includeWin/hdf5.h"
 #else
-#include "hdf5.h"
+#include <hdf5.h>
 #endif
 
 #define STRSXP_2_HID(x) (atoll(CHAR(asChar(x))));
--- a/src/Makevars
+++ b/src/Makevars
@@ -1,5 +1,5 @@
-RHDF5_LIBS = $(shell "$(R_HOME)/bin${R_ARCH_BIN}/Rscript" -e 'Rhdf5lib::pkgconfig("PKG_C_LIBS")')
-PKG_LIBS = $(RHDF5_LIBS)
+RHDF5_LIBS="/usr/lib/`dpkg-architecture -qDEB_HOST_MULTIARCH`/hdf5/serial/"
+PKG_LIBS=/usr/lib/R/site-library/Rhdf5lib/libs/Rhdf5lib.so -L$(RHDF5_LIBS) -lhdf5
 
 #PKG_CFLAGS = -Wall
 
