[Debian-islamic-commits] [libitl] 10/18: Add fix_install_paths.diff to fix install paths

أحمد المحمودي (Ahmed El-Mahmoudy) aelmahmoudy at users.sourceforge.net
Wed Oct 25 01:34:31 UTC 2017


This is an automated email from the git hooks/post-receive script.

aelmahmoudy-guest pushed a commit to branch master
in repository libitl.

commit 6c0a6884a101e74918559ccadbea0dd9d6e84005
Author: أحمد المحمودي (Ahmed El-Mahmoudy) <aelmahmoudy at users.sourceforge.net>
Date:   Tue Oct 24 14:29:53 2017 +0200

    Add fix_install_paths.diff to fix install paths
---
 debian/patches/fix_install_paths.diff | 23 +++++++++++++++++++++++
 debian/patches/series                 |  1 +
 2 files changed, 24 insertions(+)

diff --git a/debian/patches/fix_install_paths.diff b/debian/patches/fix_install_paths.diff
new file mode 100644
index 0000000..1166896
--- /dev/null
+++ b/debian/patches/fix_install_paths.diff
@@ -0,0 +1,23 @@
+Index: libitl/CMakeLists.txt
+===================================================================
+--- libitl.orig/CMakeLists.txt	2017-10-24 13:03:00.000000000 +0200
++++ libitl/CMakeLists.txt	2017-10-24 13:13:38.960362746 +0200
+@@ -3,6 +3,7 @@
+ 
+ cmake_minimum_required(VERSION 2.6)
+ project( itl )
++include(GNUInstallDirs)
+ message( "Installation target directory is: " ${CMAKE_INSTALL_PREFIX} )
+ message( "To override this value, use 'make -DCMAKE_INSTALL_PREFIX=$DIR'" )
+ 
+@@ -25,8 +26,8 @@
+         )
+ 
+ add_library( itl STATIC ${HEADER_FILES} ${SOURCE_FILES} )
+-install( FILES ${HEADER_FILES} DESTINATION "include/" )
+-install( TARGETS itl DESTINATION "lib/" )
++install( FILES ${HEADER_FILES} DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/itl" )
++install( TARGETS itl DESTINATION ${CMAKE_INSTALL_LIBDIR} )
+ 
+ # Specify executables
+ add_executable( demo_hijri hijri/demo_hijri.c )
diff --git a/debian/patches/series b/debian/patches/series
index e69de29..72419da 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix_install_paths.diff

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-islamic/packages/libitl.git



More information about the Debian-islamic-commits mailing list