diff options
author | adam <adam> | 2011-01-12 07:22:38 +0000 |
---|---|---|
committer | adam <adam> | 2011-01-12 07:22:38 +0000 |
commit | b6da982f7b394f29a02030e4c6996b5b079890f7 (patch) | |
tree | 18b848346c5a7c17bc948cd3940f6682658095d5 /misc/stellarium | |
parent | bf4a31c77e89cfa5eac013174411258525017592 (diff) | |
download | pkgsrc-b6da982f7b394f29a02030e4c6996b5b079890f7.tar.gz |
Fix building on Mac OS X
Diffstat (limited to 'misc/stellarium')
-rw-r--r-- | misc/stellarium/Makefile | 8 | ||||
-rw-r--r-- | misc/stellarium/distinfo | 3 | ||||
-rw-r--r-- | misc/stellarium/patches/patch-ae | 35 |
3 files changed, 44 insertions, 2 deletions
diff --git a/misc/stellarium/Makefile b/misc/stellarium/Makefile index bf254a55b9a..050594b7dae 100644 --- a/misc/stellarium/Makefile +++ b/misc/stellarium/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.41 2010/12/06 21:03:18 adam Exp $ +# $NetBSD: Makefile,v 1.42 2011/01/12 07:22:38 adam Exp $ DISTNAME= stellarium-0.10.6 CATEGORIES= misc @@ -19,6 +19,12 @@ CMAKE_ARGS+= -D FreeType2_INCLUDE_DIR:PATH=${BUILDLINK_PREFIX.freetype2}/include CMAKE_ARGS+= -D FreeType2_LIBRARIES:PATH=${BUILDLINK_PREFIX.freetype2}/lib CMAKE_ARGS+= -D SDLMIXER_INCLUDE_DIR:PATH=${BUILDLINK_PREFIX.SDL}/include/SDL +SUBST_CLASSES+= mac +SUBST_MESSAGE.mac= Disabling Mac OS X paths. +SUBST_FILES.mac= src/core/StelFileMgr.cpp +SUBST_STAGE.mac= pre-configure +SUBST_SED.mac= -e 's,Q_OS_MAC,Q_XX_MAC,' + .include "../../audio/SDL_mixer/buildlink3.mk" .include "../../devel/boost-headers/buildlink3.mk" .include "../../graphics/freetype2/buildlink3.mk" diff --git a/misc/stellarium/distinfo b/misc/stellarium/distinfo index c70f0bcec04..103755960e5 100644 --- a/misc/stellarium/distinfo +++ b/misc/stellarium/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.16 2010/12/06 21:03:18 adam Exp $ +$NetBSD: distinfo,v 1.17 2011/01/12 07:22:38 adam Exp $ SHA1 (stellarium-0.10.6.tar.gz) = b28f74d145c89656d9f79b86abe00297a3559cef RMD160 (stellarium-0.10.6.tar.gz) = 31ba1a9042984939f135195c31f15f0a20021085 @@ -7,3 +7,4 @@ SHA1 (patch-aa) = e5c3968a2d8bde8a651cf87d0b5d99a3f01680b0 SHA1 (patch-ab) = e7e1042cb674462f43fbb7c6ad5b023e62b54a59 SHA1 (patch-ac) = e9436d4f9f34127f176931dda4665ddc5d6f8bfa SHA1 (patch-ad) = 5e4912f60fd74a868933e4afe27a67ddb73514a8 +SHA1 (patch-ae) = d033aabef7777ad8c7593d067620c7cdd1a8b998 diff --git a/misc/stellarium/patches/patch-ae b/misc/stellarium/patches/patch-ae new file mode 100644 index 00000000000..d5be92d546e --- /dev/null +++ b/misc/stellarium/patches/patch-ae @@ -0,0 +1,35 @@ +$NetBSD: patch-ae,v 1.1 2011/01/12 07:22:38 adam Exp $ + +--- CMakeLists.txt.orig 2010-12-05 16:31:01.000000000 +0000 ++++ CMakeLists.txt +@@ -28,7 +28,6 @@ IF(NOT CMAKE_BUILD_TYPE) + ENDIF() + + IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") +- SET(APPLE 1) + ENDIF() + + +@@ -216,12 +215,8 @@ 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") +-ENDIF() + ELSE() + ADD_DEFINITIONS(-DINSTALL_DATADIR=".") + ADD_DEFINITIONS(-DINSTALL_LOCALEDIR="./locale") +@@ -290,9 +285,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 ############### |