[med-svn] [Git][med-team/dextractor][master] Patch to use system-wide libhdf5-dev

Shayan Doust gitlab at salsa.debian.org
Mon Jun 29 16:17:29 BST 2020



Shayan Doust pushed to branch master at Debian Med / dextractor


Commits:
6e52047e by Shayan Doust at 2020-06-29T16:17:12+01:00
Patch to use system-wide libhdf5-dev

- - - - -


2 changed files:

- + debian/patches/series
- + debian/patches/use_system_packaged_libhdf5-dev.patch


Changes:

=====================================
debian/patches/series
=====================================
@@ -0,0 +1 @@
+use_system_packaged_libhdf5-dev.patch


=====================================
debian/patches/use_system_packaged_libhdf5-dev.patch
=====================================
@@ -0,0 +1,32 @@
+Description: use libhdf5-dev prepackaged library
+ Additionally, place the built binaries into bin/ for further dh installation.
+Author: Shayan Doust <hello at shayandoust.me> 
+Last-Update: 2020-06-29
+---
+
+--- dextractor.orig/Makefile
++++ dextractor/Makefile
+@@ -1,11 +1,10 @@
+-PATH_HDF5 = /sw/apps/hdf5/current
+-PATH_HDF5 = /usr/local/hdf5
+ CFLAGS = -O3 -Wall -Wextra -fno-strict-aliasing
++MACHINE_ARCH := $(shell echo `uname -m`)
+ 
+ all: dextract dexta undexta dexqv undexqv
+ 
+ dextract: dextract.c DB.c DB.h QV.c QV.h
+-	gcc $(CFLAGS) -I$(PATH_HDF5)/include -L$(PATH_HDF5)/lib -o dextract dextract.c DB.c QV.c -lhdf5
++	gcc $(CFLAGS) -I/usr/include/hdf5/serial/ -L/usr/lib/${MACHINE_ARCH}-linux-gnu/hdf5/serial/ -o dextract dextract.c DB.c QV.c -lhdf5
+ 
+ dexta: dexta.c DB.c DB.h QV.c QV.h
+ 	gcc $(CFLAGS) -o dexta dexta.c DB.c QV.c
+@@ -25,7 +24,8 @@
+ 	rm -f dextract.tar.gz
+ 
+ install:
+-	cp dextract dexta undexta dexqv undexqv ~/bin
++	mkdir bin/
++	cp dextract dexta undexta dexqv undexqv bin/
+ 
+ package:
+ 	make clean



View it on GitLab: https://salsa.debian.org/med-team/dextractor/-/commit/6e52047edf350da1d781ad389b57122dc6b2cd8f

-- 
View it on GitLab: https://salsa.debian.org/med-team/dextractor/-/commit/6e52047edf350da1d781ad389b57122dc6b2cd8f
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20200629/67e4343f/attachment-0001.html>


More information about the debian-med-commit mailing list