[med-svn] r20037 - trunk/packages/minc/minc-tools/trunk/debian/patches

Steven Michael Robbins smr at moszumanska.debian.org
Sat Sep 5 23:46:28 UTC 2015


Author: smr
Date: 2015-09-05 23:46:25 +0000 (Sat, 05 Sep 2015)
New Revision: 20037

Added:
   trunk/packages/minc/minc-tools/trunk/debian/patches/build-with-libnifti
Modified:
   trunk/packages/minc/minc-tools/trunk/debian/patches/series
Log:
Patch to build with system libnifti.

Added: trunk/packages/minc/minc-tools/trunk/debian/patches/build-with-libnifti
===================================================================
--- trunk/packages/minc/minc-tools/trunk/debian/patches/build-with-libnifti	                        (rev 0)
+++ trunk/packages/minc/minc-tools/trunk/debian/patches/build-with-libnifti	2015-09-05 23:46:25 UTC (rev 20037)
@@ -0,0 +1,28 @@
+diff --git a/conversion/CMakeLists.txt b/conversion/CMakeLists.txt
+index eccaece..05325fc 100644
+--- a/conversion/CMakeLists.txt
++++ b/conversion/CMakeLists.txt
+@@ -10,7 +10,7 @@ ADD_DEFINITIONS(-DHAVE_CONFIG_H)
+ 
+ 
+ # conversion progs (and libraries)
+-INCLUDE_DIRECTORIES(Acr_nema)
++INCLUDE_DIRECTORIES(Acr_nema /usr/include/nifti)
+ ADD_LIBRARY(acr_nema STATIC 
+    Acr_nema/acr_io.c
+    Acr_nema/dicom_client_routines.c
+@@ -50,12 +50,12 @@ TARGET_LINK_LIBRARIES(minctoecat ${VOLUME_IO_LIBRARIES} ${LIBMINC_LIBRARIES} m)
+ ADD_EXECUTABLE(mnc2nii
+    nifti1/mnc2nii.c
+    )
+-TARGET_LINK_LIBRARIES(mnc2nii ${VOLUME_IO_LIBRARIES} ${LIBMINC_LIBRARIES} m)
++TARGET_LINK_LIBRARIES(mnc2nii ${VOLUME_IO_LIBRARIES} ${LIBMINC_LIBRARIES} niftiio m)
+ 
+ ADD_EXECUTABLE(nii2mnc
+    nifti1/nii2mnc.c
+    )
+-TARGET_LINK_LIBRARIES(nii2mnc ${VOLUME_IO_LIBRARIES} ${LIBMINC_LIBRARIES} m)
++TARGET_LINK_LIBRARIES(nii2mnc ${VOLUME_IO_LIBRARIES} ${LIBMINC_LIBRARIES} niftiio m)
+ 
+ ADD_EXECUTABLE(upet2mnc
+    micropet/upet2mnc.c

Modified: trunk/packages/minc/minc-tools/trunk/debian/patches/series
===================================================================
--- trunk/packages/minc/minc-tools/trunk/debian/patches/series	2015-09-05 19:37:04 UTC (rev 20036)
+++ trunk/packages/minc/minc-tools/trunk/debian/patches/series	2015-09-05 23:46:25 UTC (rev 20037)
@@ -1,5 +1,6 @@
 maxpathlen.patch
 01_mincedit-sensible-viewer.diff
+build-with-libnifti
 #pod_fix.diff
 #clang.patch
 #fix-crash-filename-null-voxel-loop.patch




More information about the debian-med-commit mailing list