blob: 0ed719a70abcca6d318b1cade19490b71db0c61a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
From: Julian Ospald <hasufell@gentoo.org>
Date: Mon Feb 18 00:04:44 UTC 2013
Subject: build system
make bindir translation dir modifiable
--- yabause-0.9.12/src/gtk/CMakeLists.txt
+++ yabause-0.9.12/src/gtk/CMakeLists.txt
@@ -59,7 +59,10 @@
yab_port_success(yabause-gtk)
configure_file(yabause.desktop.in ${YAB_PORT_NAME}.desktop)
-install(TARGETS yabause-gtk DESTINATION "bin")
+# paths
+set(BINDIR "bin" CACHE STRING "dir to binary")
+
+install(TARGETS yabause-gtk DESTINATION ${BINDIR})
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${YAB_PORT_NAME}.desktop DESTINATION "share/applications")
install(FILES "doc/yabause.1" DESTINATION "${YAB_MAN_DIR}/man1" RENAME "${YAB_PORT_NAME}.1")
install(FILES "yabause.png" DESTINATION "share/pixmaps")
--- yabause-0.9.12/src/qt/CMakeLists.txt
+++ yabause-0.9.12/src/qt/CMakeLists.txt
@@ -184,6 +184,9 @@
yab_port_success(yabause-qt)
configure_file(yabause.desktop.in ${YAB_PORT_NAME}.desktop)
+# paths
+set(BINDIR "bin" CACHE STRING "dir to binary")
+
if (WIN32)
install(TARGETS yabause-qt DESTINATION ".")
if (GLUT_FOUND)
@@ -208,8 +211,8 @@
install(FILES ${Mingw_Path}/mingwm10.dll DESTINATION ".")
endif ()
else ()
- install(TARGETS yabause-qt DESTINATION "bin")
+ install(TARGETS yabause-qt DESTINATION ${BINDIR})
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${YAB_PORT_NAME}.desktop DESTINATION "share/applications")
install(FILES "doc/yabause.1" DESTINATION "${YAB_MAN_DIR}/man1" RENAME "${YAB_PORT_NAME}.1")
install(FILES "resources/icons/yabause.png" DESTINATION "share/pixmaps")
-endif ()
\ No newline at end of file
+endif ()
--- yabause-0.9.12/l10n/CMakeLists.txt
+++ yabause-0.9.12/l10n/CMakeLists.txt
@@ -2,9 +2,12 @@
set(LANGS de es fr it lt pt pt_BR sv)
+# paths
+set(TRANSDIR "share/yabause/yts" CACHE STRING "dir to translation files")
+
if (UNIX AND NOT APPLE)
foreach(LANG ${LANGS})
- install(FILES "yabause_${LANG}.yts" DESTINATION "share/yabause/yts" RENAME "${LANG}.yts")
+ install(FILES "yabause_${LANG}.yts" DESTINATION ${TRANSDIR} RENAME "${LANG}.yts")
endforeach()
elseif (WIN32)
foreach(LANG ${LANGS})
|