$NetBSD: patch-ae,v 1.2 2012/04/11 12:10:01 drochner Exp $ --- CMakeLists.txt.orig 2012-03-10 06:01:05.000000000 +0000 +++ CMakeLists.txt @@ -28,7 +28,6 @@ IF(NOT CMAKE_BUILD_TYPE) ENDIF() IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") - SET(APPLE 1) ENDIF() @@ -234,14 +233,10 @@ ENDIF() ########### Set some global variables ########### IF(UNIX AND NOT WIN32) -IF(APPLE) - SET(CMAKE_INSTALL_PREFIX "${PROJECT_BINARY_DIR}/Stellarium.app/Contents") -ELSE(APPLE) ADD_DEFINITIONS(-DINSTALL_DATADIR="${CMAKE_INSTALL_PREFIX}/share/stellarium") ADD_DEFINITIONS(-DINSTALL_LOCALEDIR="${CMAKE_INSTALL_PREFIX}/share/locale") # Used in generating the documentation (doc/stellarium.pod.cmake): SET(INSTALL_DATADIR "${CMAKE_INSTALL_PREFIX}/share/stellarium") -ENDIF() ELSE() ADD_DEFINITIONS(-DINSTALL_DATADIR=".") ADD_DEFINITIONS(-DINSTALL_LOCALEDIR="./locale") @@ -310,9 +305,6 @@ IF(GENERATE_PACKAGE_TARGET) ENDIF() ########### Macosx Bundling ############### -IF(APPLE) -ADD_CUSTOM_TARGET(macosx_bundle bash util/macosx_bundle.sh ${CMAKE_INSTALL_PREFIX} ${PROJECT_SOURCE_DIR} DEPENDS install WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} COMMENT "making the macosx bundle." VERBATIM) -ENDIF() ########### Generate doxygen doc ###############