Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 411295
Collapse All | Expand All

(-)file_not_specified_in_diff (-3 / +31 lines)
Line  Link Here
0
-- CMakeLists.txt
0
++ CMakeLists.txt
Lines 32-37 Link Here
32
option(USE_MPG123 "use mpg123 + libsndfile for sound" ON)
32
option(USE_MPG123 "use mpg123 + libsndfile for sound" ON)
33
33
34
find_program(DPKG_PROGRAM dpkg DOC "dpkg program of Debian-based systems")
34
find_program(DPKG_PROGRAM dpkg DOC "dpkg program of Debian-based systems")
35
36
# paths
37
set(BINDIR "bin" CACHE PATH "Where to install binaries")
38
set(DATAROOTDIR "${CMAKE_INSTALL_PREFIX}/share" CACHE PATH "Sets the root of data directories to a non-default location")
39
set(DATADIR "${CMAKE_INSTALL_PREFIX}/share/openmw" CACHE PATH "Sets the openmw data directories to a non-default location")
40
set(DOCDIR "${DATAROOTDIR}/doc/openmw" CACHE PATH "Sets the doc directory to a non-default location.")
41
set(MANDIR "${DATAROOTDIR}/man" CACHE PATH "Where to install manpages")
42
set(SYSCONFDIR "" CACHE PATH "Set config dir")
35
43
36
# Location of morrowind data files
44
# Location of morrowind data files
37
if(DPKG_PROGRAM)
45
if(DPKG_PROGRAM)
Lines 42-49 Link Here
42
        set(MORROWIND_DATA_FILES "./data" CACHE PATH "location of Morrowind data files")
50
        set(MORROWIND_DATA_FILES "./data" CACHE PATH "location of Morrowind data files")
43
        set(MORROWIND_RESOURCE_FILES "./resources" CACHE PATH "location of OpenMW resources files")
51
        set(MORROWIND_RESOURCE_FILES "./resources" CACHE PATH "location of OpenMW resources files")
44
    else()
52
    else()
45
        set(MORROWIND_DATA_FILES "data" CACHE PATH "location of Morrowind data files")
53
        set(MORROWIND_DATA_FILES "/usr/share/games/openmw/data/" CACHE PATH "location of Morrowind data files")
46
        set(MORROWIND_RESOURCE_FILES "resources" CACHE PATH "location of OpenMW resources files")
54
        set(MORROWIND_RESOURCE_FILES "${DATADIR}/resources" CACHE PATH "location of OpenMW resources files")
47
    endif(APPLE)
55
    endif(APPLE)
48
endif(DPKG_PROGRAM)
56
endif(DPKG_PROGRAM)
49
57
Lines 574-576 Link Here
574
set(CMAKE_CXX_FLAGS "-arch i386")
582
set(CMAKE_CXX_FLAGS "-arch i386")
575
583
576
endif (APPLE)
584
endif (APPLE)
585
586
587
## Linux building
588
589
# Install binaries
590
INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/openmw" DESTINATION ${BINDIR} )
591
INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/omwlauncher" DESTINATION ${BINDIR} )
592
INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/esmtool" DESTINATION ${BINDIR} )
593
594
# Install icon
595
INSTALL(FILES "${OpenMW_SOURCE_DIR}/apps/launcher/resources/images/openmw.png" DESTINATION "share/pixmaps/")
596
597
# Install global configuration files
598
INSTALL(FILES "${OpenMW_BINARY_DIR}/openmw.cfg.install" DESTINATION ${SYSCONFDIR} RENAME "openmw.cfg" )
599
INSTALL(FILES "${OpenMW_BINARY_DIR}/plugins.cfg" DESTINATION ${SYSCONFDIR} )
600
INSTALL(FILES "${OpenMW_SOURCE_DIR}/files/launcher.cfg" DESTINATION ${SYSCONFDIR} )
601
602
# Install resources
603
INSTALL(DIRECTORY "${OpenMW_BINARY_DIR}/resources" DESTINATION ${DATADIR} )
604
INSTALL(FILES "${OpenMW_BINARY_DIR}/launcher.qss" DESTINATION "${DATADIR}/resources" )

Return to bug 411295