diff options
author | Andreas Enge <andreas@enge.fr> | 2015-07-26 15:24:20 +0200 |
---|---|---|
committer | Andreas Enge <andreas@enge.fr> | 2015-07-26 15:24:20 +0200 |
commit | a060ca32011d6224bbc2ce70f73314a9ab51c188 (patch) | |
tree | 02a87c172683c65fe83bb3d81c2f2600e5b4bc7e /gnu/packages/patches/avidemux-install-to-lib.patch | |
parent | 2520c84a6f21f0aaf8d27296a00edcf4899d5f48 (diff) | |
download | guix-a060ca32011d6224bbc2ce70f73314a9ab51c188.tar.gz |
gnu: avidemux: Install libraries to lib.
* gnu/packages/video.scm (avidemux)[source]: Add patch to install to lib directory instead of lib64 or lib32 depending on the architecture. [arguments]: Use the lib instead of the lib64 directory for flags in the build phase, so that these flags should now also work on i686. * gnu/packages/patches/avidemux-install-to-lib.patch: New file. * gnu-system.am (dist_patch_DATA): Register it.
Diffstat (limited to 'gnu/packages/patches/avidemux-install-to-lib.patch')
-rw-r--r-- | gnu/packages/patches/avidemux-install-to-lib.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/patches/avidemux-install-to-lib.patch b/gnu/packages/patches/avidemux-install-to-lib.patch new file mode 100644 index 0000000000..64c9213052 --- /dev/null +++ b/gnu/packages/patches/avidemux-install-to-lib.patch @@ -0,0 +1,24 @@ +Patch by Andreas Enge to force installation of libraries into lib +independently of the architecture, instead of lib32 or lib64. +On x86_64, the C library path coded in CMAKE_C_IMPLICIT_LINK_DIRECTORIES +contains a library (jack) installed into lib64, which forces lib64 +for avidemux with the original code. + +diff -u -r avidemux_2.6.8.orig/cmake/admInstallDir.cmake avidemux_2.6.8/cmake/admInstallDir.cmake +--- avidemux_2.6.8.orig/cmake/admInstallDir.cmake 2014-03-12 07:15:23.000000000 +0100 ++++ avidemux_2.6.8/cmake/admInstallDir.cmake 2015-07-26 14:31:10.418459984 +0200 +@@ -16,13 +16,7 @@ + MESSAGE(STATUS "No install dir provided, using /usr/local") + ENDIF(NOT AVIDEMUX_INSTALL_DIR ) + SET(AVIDEMUX_BIN_DIR ${AVIDEMUX_INSTALL_DIR}/bin) +- IF(CMAKE_C_IMPLICIT_LINK_DIRECTORIES MATCHES "\\/lib64([; ]|$)") +- SET(AVIDEMUX_RELATIVE_LIB_DIR lib64) +- ELSEIF(CMAKE_C_IMPLICIT_LINK_DIRECTORIES MATCHES "\\/lib32([; ]|$)") +- SET(AVIDEMUX_RELATIVE_LIB_DIR lib32) +- ELSE(CMAKE_C_IMPLICIT_LINK_DIRECTORIES MATCHES "\\/lib64([; ]|$)") +- SET(AVIDEMUX_RELATIVE_LIB_DIR lib) +- ENDIF(CMAKE_C_IMPLICIT_LINK_DIRECTORIES MATCHES "\\/lib64([; ]|$)") ++ SET(AVIDEMUX_RELATIVE_LIB_DIR lib) + SET(AVIDEMUX_LIB_DIR ${AVIDEMUX_INSTALL_DIR}/${AVIDEMUX_RELATIVE_LIB_DIR}) + ENDIF(WIN32) + SET(AVIDEMUX_INCLUDE_DIR ${AVIDEMUX_INSTALL_DIR}/include) |