[86224] trunk/dports/kde/kstars
nicos at macports.org
nicos at macports.org
Sat Oct 22 03:11:44 PDT 2011
Revision: 86224
http://trac.macports.org/changeset/86224
Author: nicos at macports.org
Date: 2011-10-22 03:11:41 -0700 (Sat, 22 Oct 2011)
Log Message:
-----------
kstars: adding indi support in a variant (ticket #22094)
Modified Paths:
--------------
trunk/dports/kde/kstars/Portfile
trunk/dports/kde/kstars/files/patch-CMakeLists.txt.diff
Modified: trunk/dports/kde/kstars/Portfile
===================================================================
--- trunk/dports/kde/kstars/Portfile 2011-10-22 08:33:32 UTC (rev 86223)
+++ trunk/dports/kde/kstars/Portfile 2011-10-22 10:11:41 UTC (rev 86224)
@@ -36,13 +36,30 @@
depends_lib-append port:xplanet
}
+variant indi description "Add support for astronomical hardware through indi" {
+ depends_lib-append port:indi
+}
+
pre-configure {
+ #Ensure finding openGL
reinplace "s|<GL/gl.h>|<gl.h>|g" ${worksrcpath}/kstars/skyglpainter.cpp
+ #Path to indi
+ reinplace "s|/usr|${prefix}|g" ${worksrcpath}/kstars/kstars.kcfg
+ #Force deactivation of documentation if no indi variant
+ if {![variant_isset indi]} {
+ reinplace "s|macro_optional_find_package(INDI)|#macro_optional_find_package(INDI)|g" \
+ ${worksrcpath}/CMakeLists.txt
+ reinplace "s|macro_bool_to_01(INDI_FOUND HAVE_INDI_H)|#macro_bool_to_01(INDI_FOUND HAVE_INDI_H)|g" \
+ ${worksrcpath}/CMakeLists.txt
+ }
+
+ #Force deactivation of documentation if no docs variant
if {![variant_isset docs]} {
reinplace "s|add_subdirectory( doc )|#add_subdirectory( doc )|g" ${worksrcpath}/CMakeLists.txt
}
+ #Force deactivation of xplanet if no x11 variant
if {![variant_isset x11]} {
reinplace "s|macro_optional_find_package(Xplanet)|#macro_optional_find_package(Xplanet)|g" \
${worksrcpath}/CMakeLists.txt
Modified: trunk/dports/kde/kstars/files/patch-CMakeLists.txt.diff
===================================================================
--- trunk/dports/kde/kstars/files/patch-CMakeLists.txt.diff 2011-10-22 08:33:32 UTC (rev 86223)
+++ trunk/dports/kde/kstars/files/patch-CMakeLists.txt.diff 2011-10-22 10:11:41 UTC (rev 86224)
@@ -1,6 +1,19 @@
--- CMakeLists.txt.orig 2011-10-02 15:25:33.000000000 +0200
-+++ CMakeLists.txt 2011-10-11 14:06:52.000000000 +0200
-@@ -35,6 +35,7 @@
++++ CMakeLists.txt 2011-10-22 11:43:06.000000000 +0200
+@@ -17,12 +17,9 @@
+ macro_bool_to_01(CFITSIO_FOUND HAVE_CFITSIO_H)
+ macro_log_feature(CFITSIO_FOUND "libcfitsio0" "Support for the FITS (Flexible Image Transport System) data format in KStars." "http://indi.sf.net" FALSE "3.09" "")
+
+-# INDI is a Linux-specific addon
+-IF(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
+ macro_optional_find_package(INDI)
+ macro_bool_to_01(INDI_FOUND HAVE_INDI_H)
+ macro_log_feature(INDI_FOUND "libindi" "Support for controlling astronomical devices with KStars." "http://www.indilib.org" FALSE "0.8.0" "")
+-ENDIF(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
+
+ check_include_files(linux/videodev2.h HAVE_LINUX_VIDEODEV2_H)
+ check_include_files(termios.h TERMIOS_FOUND)
+@@ -35,6 +32,7 @@
macro_optional_find_package(OpenGL)
macro_bool_to_01(OPENGL_FOUND HAVE_OPENGL)
macro_log_feature(OPENGL_FOUND "OpenGL" "Support for hardware rendering in KStars." "http://www.opengl.org/" FALSE "" "OpenGL rendering is generally faster on hardware with graphics acceleration.")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111022/06369d28/attachment-0001.html>
More information about the macports-changes
mailing list