[SCM] libgroove/upstream: build: use GNUInstallDirs
andrewrk-guest at users.alioth.debian.org
andrewrk-guest at users.alioth.debian.org
Thu Feb 20 19:02:21 UTC 2014
The following commit has been merged in the upstream branch:
commit 3bb2a632508d433686b3c73b7f192b246695ac61
Author: Andrew Kelley <superjoe30 at gmail.com>
Date: Thu Feb 20 13:47:32 2014 -0500
build: use GNUInstallDirs
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f35d8f9..f0f2965 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 2.8)
project(groove C)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
include(ExternalProject)
+include(GNUInstallDirs)
set(LIBGROOVE_STATUS "yes")
set(LIBGROOVE_VERSION_MAJOR 3)
@@ -262,15 +263,15 @@ set_target_properties(groove_static PROPERTIES
if(LIBAV_IS_BUNDLED)
add_dependencies(groove_static libav)
endif()
-install(TARGETS groove_static DESTINATION lib)
+install(TARGETS groove_static DESTINATION ${CMAKE_INSTALL_LIBDIR})
install(FILES
"groove/groove.h"
"groove/queue.h"
"groove/encoder.h"
- DESTINATION "include/groove")
-install(TARGETS groove DESTINATION lib)
+ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/groove")
+install(TARGETS groove DESTINATION ${CMAKE_INSTALL_LIBDIR})
add_executable(metadata example/metadata.c)
set_target_properties(metadata PROPERTIES
@@ -308,8 +309,8 @@ else()
endif()
include_directories(${SDL2_INCLUDE_DIR})
- install(FILES "grooveplayer/player.h" DESTINATION "include/grooveplayer")
- install(TARGETS grooveplayer DESTINATION lib)
+ install(FILES "grooveplayer/player.h" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/grooveplayer")
+ install(TARGETS grooveplayer DESTINATION ${CMAKE_INSTALL_LIBDIR})
add_library(grooveplayer_static STATIC
${LIBGROOVE_PLAYER_SOURCES}
@@ -320,7 +321,7 @@ else()
if(SDL2_IS_BUNDLED)
add_dependencies(grooveplayer_static SDL2-static)
endif()
- install(TARGETS grooveplayer_static DESTINATION lib)
+ install(TARGETS grooveplayer_static DESTINATION ${CMAKE_INSTALL_LIBDIR})
add_executable(playlist example/playlist.c ${PROJECT_SOURCE_DIR}/grooveplayer/player.h)
@@ -354,8 +355,8 @@ else()
endif()
include_directories(${EBUR128_INCLUDE_DIR})
- install(FILES "grooveloudness/loudness.h" DESTINATION "include/grooveloudness")
- install(TARGETS grooveloudness DESTINATION lib)
+ install(FILES "grooveloudness/loudness.h" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/grooveloudness")
+ install(TARGETS grooveloudness DESTINATION ${CMAKE_INSTALL_LIBDIR})
add_library(grooveloudness_static STATIC
@@ -367,7 +368,7 @@ else()
if(EBUR128_IS_BUNDLED)
add_dependencies(grooveloudness_static ebur128_static)
endif()
- install(TARGETS grooveloudness_static DESTINATION lib)
+ install(TARGETS grooveloudness_static DESTINATION ${CMAKE_INSTALL_LIBDIR})
add_executable(replaygain example/replaygain.c)
--
libgroove packaging
More information about the pkg-multimedia-commits
mailing list