[68848] trunk/dports/science/stellarium
michaelld at macports.org
michaelld at macports.org
Tue Jun 15 11:17:28 PDT 2010
Revision: 68848
http://trac.macports.org/changeset/68848
Author: michaelld at macports.org
Date: 2010-06-15 11:17:23 -0700 (Tue, 15 Jun 2010)
Log Message:
-----------
Update stellarium to 0.10.5 : fixes tickets #24221 and #25181, and
hopefully addresses #24841. Tweak library dependencies to use just
those necessary and provided by MacPorts only as possible. Patch for
10.5 and 10.6 to use 10.5 SDK for building. Correctly build resulting
.app such that it is executable from, and provides correct information
in, the Finder.
Modified Paths:
--------------
trunk/dports/science/stellarium/Portfile
Added Paths:
-----------
trunk/dports/science/stellarium/files/
trunk/dports/science/stellarium/files/patch-data-Info.plist.diff
Modified: trunk/dports/science/stellarium/Portfile
===================================================================
--- trunk/dports/science/stellarium/Portfile 2010-06-15 17:51:51 UTC (rev 68847)
+++ trunk/dports/science/stellarium/Portfile 2010-06-15 18:17:23 UTC (rev 68848)
@@ -3,11 +3,11 @@
PortSystem 1.0
name stellarium
-version 0.10.4
+version 0.10.5
categories science
platforms darwin
maintainers raimue \
- openmaintainer
+ michaelld
description Stellarium is a free open source planetarium for your computer.
long_description \
@@ -18,15 +18,23 @@
homepage http://stellarium.org/
master_sites sourceforge
-checksums md5 ebb81f609c91be6ecd7e91cf7d3a4afa \
- sha1 8a9f22da5a0049ea10b19b24d28490dc15dea1a8 \
- rmd160 ed2ea67c905adb211266df29dca2f8ed1626ad8e
+checksums md5 4038585e3554febde92f2166d52bc8a8 \
+ sha1 584ab8e3618bf9a0b15619260fbe240843a8f5e1 \
+ rmd160 dc4e942a4767e7afac62e766f4c11888fafe1c45
depends_build port:cmake
-depends_lib port:boost port:libsdl_mixer path:lib/pkgconfig/sdl.pc:libsdl path:bin/qmake-mac:qt4-mac port:freetype
+depends_lib path:bin/qmake-mac:qt4-mac \
+ port:freetype \
+ port:zlib \
+ port:libiconv \
+ port:openssl
+# patch such that resulting .app has the correct version info,
+# both in the finder as well as from Get Info.
+patchfiles patch-data-Info.plist.diff
+
post-patch {
- reinplace "s:SET(CMAKE_INSTALL_PREFIX \"\$\{PROJECT_BINARY_DIR\}/:SET\(CMAKE_INSTALL_PREFIX \"${applications_dir}/:" ${worksrcpath}/CMakeLists.txt
+ reinplace "s:SET(CMAKE_INSTALL_PREFIX \"\$\{PROJECT_BINARY_DIR\}/:SET(CMAKE_INSTALL_PREFIX \"${applications_dir}/:" ${worksrcpath}/CMakeLists.txt
# Determine which archs to build
if {[variant_isset universal]} {
@@ -34,15 +42,41 @@
} else {
set archs ${configure.build_arch}
}
- reinplace "s:SET(CMAKE_OSX_ARCHITECTURES \"i386\"):SET(CMAKE_OSX_ARCHITECTURES \"${archs}\"):" ${worksrcpath}/CMakeLists.txt
+ reinplace "s:SET(CMAKE_OSX_ARCHITECTURES \"i386;ppc\"):SET(CMAKE_OSX_ARCHITECTURES \"${archs}\"):" ${worksrcpath}/CMakeLists.txt
}
+platform darwin 9 {
+ # Upgrade MacOSX SDK version to 10.5, for compatibility with qt4-mac
+ post-patch {
+ reinplace "s:-mmacosx-version-min=10.4:-mmacosx-version-min=10.5:" ${worksrcpath}/CMakeLists.txt
+ reinplace "s:SET(CMAKE_OSX_DEPLOYMENT_TARGET \"10.4\"):SET(CMAKE_OSX_DEPLOYMENT_TARGET \"10.5\"):" ${worksrcpath}/CMakeLists.txt
+ reinplace "s:MacOSX10.4u.sdk:MacOSX10.5.sdk:" ${worksrcpath}/CMakeLists.txt
+ }
+}
+
+platform darwin 10 {
+ # Upgrade MacOSX SDK version to 10.5, for compatibility with qt4-mac
+ post-patch {
+ reinplace "s:-mmacosx-version-min=10.4:-mmacosx-version-min=10.5:" ${worksrcpath}/CMakeLists.txt
+ reinplace "s:SET(CMAKE_OSX_DEPLOYMENT_TARGET \"10.4\"):SET(CMAKE_OSX_DEPLOYMENT_TARGET \"10.5\"):" ${worksrcpath}/CMakeLists.txt
+ reinplace "s:MacOSX10.4u.sdk:MacOSX10.5.sdk:" ${worksrcpath}/CMakeLists.txt
+ }
+}
+
configure.cmd cmake
-# cmake is unable to find FreeType2, so specify it here
+# specify MacPorts' dependencies to cmake
configure.pre_args -DFreeType2_INCLUDE_DIR:PATH=${prefix}/include/freetype2 \
- -DFreeType2_LIBRARIES:FILEPATH=${prefix}/lib/libfreetype.dylib
-configure.args -DQT_QMAKE_EXECUTABLE=${prefix}/libexec/qt4-mac/bin/qmake \
- -G \"Unix Makefiles\" .
+ -DFreeType2_LIBRARIES:FILEPATH=${prefix}/lib/libfreetype.dylib \
+ -DZLIB_INCLUDE_DIR:PATH=${prefix}/include \
+ -DZLIB_LIBRARY:FILEPATH=${prefix}/lib/libz.dylib \
+ -DQT_ZLIB_LIBRARY:FILEPATH=${prefix}/lib/libz.dylib \
+ -DICONV_INCLUDE_DIR:PATH=${prefix}/include \
+ -DICONV_LIBRARIES:FILEPATH=${prefix}/lib/libiconv.dylib \
+ -DOPENSSL_CRYPTO_LIBRARIES:FILEPATH=${prefix}/lib/libcrypto.dylib \
+ -DOPENSSL_INCLUDE_DIR:PATH=${prefix}/include/openssl \
+ -DOPENSSL_SSL_LIBRARIES:FILEPATH=${prefix}/lib/libssl.dylib \
+ -DQT_QMAKE_EXECUTABLE=${prefix}/libexec/qt4-mac/bin/qmake
+configure.args .
# This post-destroot phase is similar to the 'make macosx_bundle' target,
# but it does not copy libraries into the bundle and does not require perl as
@@ -54,6 +88,14 @@
move ${appdir}/share ${appdir}/Resources
eval move [glob ${appdir}/Resources/stellarium/*] ${appdir}/Resources/
delete ${appdir}/Resources/stellarium
+
+ # copy .app-specific files
+ copy ${worksrcpath}/data/Info.plist ${appdir}
+ copy ${worksrcpath}/data/PkgInfo ${appdir}
+ copy ${worksrcpath}/data/Icon.icns ${appdir}/Resources/
+
+ # copy other useful file(s)
+ copy ${worksrcpath}/util/qt.conf ${appdir}/Resources/
}
# Supports universal builds through cmake, archs are set in post-patch
Added: trunk/dports/science/stellarium/files/patch-data-Info.plist.diff
===================================================================
--- trunk/dports/science/stellarium/files/patch-data-Info.plist.diff (rev 0)
+++ trunk/dports/science/stellarium/files/patch-data-Info.plist.diff 2010-06-15 18:17:23 UTC (rev 68848)
@@ -0,0 +1,23 @@
+--- data/Info.plist.orig 2010-06-02 08:23:45.000000000 -0600
++++ data/Info.plist 2010-06-15 11:46:16.000000000 -0600
+@@ -1,5 +1,5 @@
+ <?xml version="1.0" encoding="UTF-8"?>
+-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
++<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+ <plist version="1.0">
+ <dict>
+ <key>CFBundleDevelopmentRegion</key>
+@@ -17,6 +17,12 @@
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+- <string>0.10.1</string>
++ <string>0.10.5</string>
++ <key>CFBundleShortVersionString</key>
++ <string>0.10.5</string>
++ <key>CFBundleGetInfoString</key>
++ <string>0.10.5</string>
++ <key>LSMinimumSystemVersion</key>
++ <string>10.5.0</string>
+ </dict>
+ </plist>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100615/538b09da/attachment.html>
More information about the macports-changes
mailing list