limesuite: add application bundle

create application bundle to easily launch the GUI
This commit is contained in:
Davide Gerhard
2019-09-18 10:49:36 +02:00
committed by Michael Dickens
parent 387a666aec
commit 121e789006
3 changed files with 19 additions and 9 deletions
+16 -6
View File
@@ -5,6 +5,7 @@ PortGroup cmake 1.1
PortGroup cxx11 1.1
PortGroup github 1.0
PortGroup wxWidgets 1.0
PortGroup app 1.0
name limesuite
categories science comms
@@ -45,6 +46,10 @@ if {[string first "-devel" $subport] > 0} {
}
# fix where CMake files are installed; in MacPorts we strive for
# "$PREFIX/share/cmake/$PROJECT_NAME", not "$PREFIX/lib/cmake/$PROJECT_NAME".
patchfiles-append patch-src_CMakeLists.txt.diff
depends_build-append \
port:pkgconfig
@@ -60,7 +65,9 @@ configure.args-append \
-DENABLE_SOAPY_LMS7=OFF\
-DENABLE_OCTAVE=OFF
# need wxWidgets-3.2 to enable dark mode in mojave
app.create no
# needs wxWidgets-3.2 to enable dark mode in mojave
variant wxgui description {Enable wxWidgets LimeSuiteGUI} {
wxWidgets.use wxWidgets-3.2
depends_lib-append port:${wxWidgets.port}
@@ -82,9 +89,12 @@ variant octave description {Enable Octave support} {
configure.args-append -DENABLE_OCTAVE=ON
}
default_variants +wxgui +soapy
variant bundle description {Enable Application bundle} {
app.create yes
app.name LimeSuiteGUI
app.executable LimeSuiteGUI
app.icon ${filespath}/limesuitegui.icns
app.retina yes
}
# fix where CMake files are installed; in MacPorts we strive for
# "$PREFIX/share/cmake/$PROJECT_NAME", not "$PREFIX/lib/cmake/$PROJECT_NAME".
patchfiles-append patch-src_CMakeLists.txt.diff
patch.pre_args -p1
default_variants +wxgui +soapy +bundle
Binary file not shown.
@@ -1,7 +1,7 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a266ec6..e7e2233 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -237,7 +237,7 @@
install(FILES
${PROJECT_SOURCE_DIR}/cmake/Modules/LimeSuiteConfig.cmake
@@ -9,5 +9,5 @@ index a266ec6..e7e2233 100644
- DESTINATION lib${LIB_SUFFIX}/cmake/${PROJECT_NAME})
+ DESTINATION share/cmake/${PROJECT_NAME})
endif (ENABLE_HEADERS AND ENABLE_LIBRARY)
########################################################################