summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@lavabit.com>2009-09-22 11:55:11 +0200
committerLars-Dominik Braun <PromyLOPh@lavabit.com>2009-09-22 11:55:11 +0200
commit298380669781d86ecc8bd66d4961fbebf08281ca (patch)
tree1ef2b3e640e2f2dc33709dba91cdee613d9c5296 /src
parentfaf7004c13f45442a6cdbe68ba977523d6593fc7 (diff)
downloadpianobar-298380669781d86ecc8bd66d4961fbebf08281ca.tar.gz
pianobar-298380669781d86ecc8bd66d4961fbebf08281ca.tar.bz2
pianobar-298380669781d86ecc8bd66d4961fbebf08281ca.zip
Variable install paths (man, bin)
Slackware has its manpages in man/ instead of share/man/. Thanks to Andrew for pointing this out.
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 241622b..e1de583 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -2,6 +2,8 @@ set (CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})
set (CMAKE_C_FLAGS -Wall)
set (ENABLE_MAD 0)
set (ENABLE_FAAD 0)
+set (BIN_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/bin CACHE PATH "bin path")
+set (MAN_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/share/man CACHE PATH "man path")
# This removes a warning on newer versions of cmake
if(COMMAND cmake_policy)
@@ -68,5 +70,5 @@ add_executable (pianobar main.c terminal.c settings.c player.c ui.c ui_act.c
target_link_libraries (pianobar piano wardrobe waitress ${FAAD_LIBRARIES}
${LIBAO_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ${MAD_LIBRARIES} ${LIBM})
-install (TARGETS pianobar RUNTIME DESTINATION bin)
-install (FILES pianobar.1 DESTINATION share/man/man1)
+install (TARGETS pianobar RUNTIME DESTINATION ${BIN_INSTALL_DIR})
+install (FILES pianobar.1 DESTINATION ${MAN_INSTALL_DIR}/man1)