[40413] trunk/dports/science/stellarium/Portfile
raimue at macports.org
raimue at macports.org
Tue Sep 30 19:48:30 PDT 2008
Revision: 40413
http://trac.macports.org/changeset/40413
Author: raimue at macports.org
Date: 2008-09-30 19:48:29 -0700 (Tue, 30 Sep 2008)
Log Message:
-----------
science/stellarium:
Update to 0.10.0
Modified Paths:
--------------
trunk/dports/science/stellarium/Portfile
Modified: trunk/dports/science/stellarium/Portfile
===================================================================
--- trunk/dports/science/stellarium/Portfile 2008-10-01 00:53:38 UTC (rev 40412)
+++ trunk/dports/science/stellarium/Portfile 2008-10-01 02:48:29 UTC (rev 40413)
@@ -3,7 +3,7 @@
PortSystem 1.0
name stellarium
-version 0.9.1
+version 0.10.0
categories science
platforms darwin
maintainers raimue \
@@ -18,21 +18,41 @@
homepage http://stellarium.org/
master_sites sourceforge
-checksums \
- md5 d0d55cb1ff5acd08a4d3b27d953579c0 \
- sha1 7cbfc207a4497d7f9afa0dda715fae21f8a0d9ef \
- rmd160 df777f6f0f1f7748dd1ce1e2de7cc343cc9caaed
+extract.suffix .tgz
+checksums md5 09465fa11a8caab7a4410f1e5ff6eb8c \
+ sha1 0a90134ffc72d196ec0af97b605f8f27140a1a09 \
+ rmd160 d03cf24ef1b9d24dc21c85d6e4a6832fa90c0706
universal_variant no
depends_build port:cmake
depends_lib port:boost port:libsdl_mixer port:libsdl port:qt4-mac port:freetype
+# Can be removed once MacPorts 1.7.0 is released
+if {![info exists applications_dir]} {
+ set applications_dir /Applications/MacPorts
+}
+
+patch {
+ reinplace "s:/Users/Shared/stellarium/:${applications_dir}/:" ${worksrcpath}/CMakeLists.txt
+}
+
configure.cmd cmake
# cmake is unable to find FreeType2, so specify it here
-configure.pre_args -DCMAKE_INSTALL_PREFIX=${prefix} \
- -DFreeType2_INCLUDE_DIR:PATH=${prefix}/include/freetype2 \
+configure.pre_args -DFreeType2_INCLUDE_DIR:PATH=${prefix}/include/freetype2 \
-DFreeType2_LIBRARIES:FILEPATH=${prefix}/lib/libfreetype.dylib
configure.args -G \"Unix Makefiles\" .
+# 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
+# another dependency
+post-destroot {
+ set appdir ${destroot}${applications_dir}/Stellarium.app/Contents
+
+ move ${appdir}/bin ${appdir}/MacOS
+ move ${appdir}/share ${appdir}/Resources
+ eval move [glob ${appdir}/Resources/stellarium/*] ${appdir}/Resources/
+ delete ${appdir}/Resources/stellarium
+}
+
livecheck.regex "<title>Stellarium-sources (.*) released.*</title>"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080930/18a65109/attachment-0001.html
More information about the macports-changes
mailing list