summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorscarab <scarab@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-08-16 21:54:16 +0000
committerscarab <scarab@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-08-16 21:54:16 +0000
commit07493cf248b3d7787b09d79bf5177c37c8df11cd (patch)
tree0feae2a8db59b21edc39fa61ab72b5f61c580888
parent06bd9fe95283e918c8a7e4d2463c6d4a4be6df87 (diff)
- dokonceni urcovani path
- nyni fallback na /usr/local/ pokud user nic nezada git-svn-id: http://opensvn.csie.org/tuxanci_ng@204 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
-rw-r--r--CMakeLists.txt1
-rw-r--r--data/music/CMakeLists.txt2
-rw-r--r--src/base/path.h.in2
3 files changed, 3 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 82da736..af2730c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,6 +18,7 @@
ADD_DEFINITIONS ( -DSUPPORT_NET_UNIX_UDP )
SET ( TUXANCI_VERSION "9999" )
SET ( WORKDIR ${CMAKE_SOURCE_DIR}/src )
+SET ( CMAKE_INSTALL_PREFIX "/usr/local/" CACHE PATH "Install path prefix" )
CONFIGURE_FILE ( ${WORKDIR}/base/path.h.in ${WORKDIR}/base/path.h )
###############################################################################
# BASIC PROJECT VALUES
diff --git a/data/music/CMakeLists.txt b/data/music/CMakeLists.txt
index cce6972..140cbf3 100644
--- a/data/music/CMakeLists.txt
+++ b/data/music/CMakeLists.txt
@@ -10,6 +10,6 @@
IF ( NOT NO_Audio )
FILE ( GLOB files "*.ogg" )
INSTALL ( FILES ${files}
- DESTINATION ${CMAKE_INSTALL_DATADIR}/${APPNAME}/sound/ )
+ DESTINATION ${CMAKE_INSTALL_DATADIR}/${APPNAME}/music/ )
ENDIF ( NOT NO_Audio )
############################################################################### \ No newline at end of file
diff --git a/src/base/path.h.in b/src/base/path.h.in
index 93750e6..212b18c 100644
--- a/src/base/path.h.in
+++ b/src/base/path.h.in
@@ -21,7 +21,7 @@
#define PATH_MODULES PREFIX "/bin/"
#define SERVER_CONFIG PREFIX "/etc/tuxanci-server/server.conf"
#endif
- #define PATH_IMAGE PATH_DIR "image/"
+ #define PATH_IMAGE PATH_DIR "images/"
#define PATH_FONT PATH_DIR "font/"
#define PATH_ARENA PATH_DIR "arena/"
#define PATH_SOUND PATH_DIR "sound/"