summaryrefslogtreecommitdiff
path: root/misc/stellarium/patches/patch-ae
blob: 193522f7135e5f0b58f5b530c45bad2e0e1441d4 (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
$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 ###############