[64265] trunk/dports/science/stellarium/Portfile
raimue at macports.org
raimue at macports.org
Sat Feb 27 14:39:37 PST 2010
Revision: 64265
http://trac.macports.org/changeset/64265
Author: raimue at macports.org
Date: 2010-02-27 14:39:35 -0800 (Sat, 27 Feb 2010)
Log Message:
-----------
science/stellarium:
Update to version 0.10.4, enable universal support
Modified Paths:
--------------
trunk/dports/science/stellarium/Portfile
Modified: trunk/dports/science/stellarium/Portfile
===================================================================
--- trunk/dports/science/stellarium/Portfile 2010-02-27 18:54:07 UTC (rev 64264)
+++ trunk/dports/science/stellarium/Portfile 2010-02-27 22:39:35 UTC (rev 64265)
@@ -3,8 +3,7 @@
PortSystem 1.0
name stellarium
-version 0.10.2
-revision 1
+version 0.10.4
categories science
platforms darwin
maintainers raimue \
@@ -19,17 +18,23 @@
homepage http://stellarium.org/
master_sites sourceforge
-checksums md5 c544fff9e75e9317055075b658ae5924 \
- sha1 aa24cbb8d4a911121108df67483b4c753402928e \
- rmd160 ea88f1ba4c29a3a9087e5ca89a16258e59d12e72
+checksums md5 ebb81f609c91be6ecd7e91cf7d3a4afa \
+ sha1 8a9f22da5a0049ea10b19b24d28490dc15dea1a8 \
+ rmd160 ed2ea67c905adb211266df29dca2f8ed1626ad8e
-universal_variant no
-
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
-patch {
- reinplace "s:/Users/Shared/stellarium/:${applications_dir}/:" ${worksrcpath}/CMakeLists.txt
+post-patch {
+ 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]} {
+ set archs ${configure.universal_archs}
+ } else {
+ set archs ${configure.build_arch}
+ }
+ reinplace "s:SET(CMAKE_OSX_ARCHITECTURES \"i386\"):SET(CMAKE_OSX_ARCHITECTURES \"${archs}\"):" ${worksrcpath}/CMakeLists.txt
}
configure.cmd cmake
@@ -51,5 +56,8 @@
delete ${appdir}/Resources/stellarium
}
+# Supports universal builds through cmake, archs are set in post-patch
+variant universal {}
+
livecheck.url http://sourceforge.net/projects/stellarium/files/
livecheck.regex "Stellarium-sources/.*/stellarium-(.*)[quotemeta ${extract.suffix}]"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100227/c1cffa55/attachment-0001.html>
More information about the macports-changes
mailing list