xdg-user-dirs-gtk: update to 0.12
[oi-userland.git] / components / image / CalcMySky / Makefile
blob5a4b563986f899239f64e75262e943c2a778017a
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"). You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2023 Andreas Wacknitz
15 BUILD_STYLE= cmake
16 USE_PARALLEL_BUILD= yes
17 include ../../../make-rules/shared-macros.mk
19 COMPONENT_NAME= CalcMySky
20 COMPONENT_VERSION= 0.3.3
21 COMPONENT_SUMMARY= CalcMySky simulates scattering of light by the atmosphere to render daytime and twilight skies (without stars)
22 COMPONENT_PROJECT_URL= https://github.com/10110111/CalcMySky
23 COMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)
24 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
25 COMPONENT_ARCHIVE_HASH= sha256:21cce3187009ce62a4a08a72b4e22ae7bc00654edfbc7fa9fe8ab65b412791df
26 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/archive/refs/tags/v$(COMPONENT_VERSION).tar.gz
27 COMPONENT_FMRI= image/calcmysky
28 COMPONENT_CLASSIFICATION= Applications/Graphics and Imaging
29 COMPONENT_LICENSE= GPLv3.0
30 COMPONENT_LICENSE_FILE= COPYING
32 include $(WS_MAKE_RULES)/common.mk
34 CFLAGS += $(XPG6MODE)
36 LDFLAGS += -lsocket -lnsl
37 LD_OPTIONS += -L$(QT5_LIBDIR) -R$(QT5_LIBDIR)
39 CMAKE_OPTIONS += -DCMAKE_BUILD_TYPE=Release
40 CMAKE_OPTIONS += -DBUILD_STATIC_LIBS=OFF
41 CMAKE_OPTIONS += -DQT_VERSION=5
42 CMAKE_OPTIONS += -DQt5_DIR=$(QT5_LIBDIR)/cmake/Qt5
43 #CMAKE_OPTIONS += -DQt5Charts_DIR=$(QT5_LIBDIR)/cmake/Qt5Charts
44 #CMAKE_OPTIONS += -DQt5Concurrent_DIR=$(QT5_LIBDIR)/cmake/Qt5Concurrent
45 #CMAKE_OPTIONS += -DQt5Core_DIR=$(QT5_LIBDIR)/cmake/Qt5Core
46 #CMAKE_OPTIONS += -DQt5Gui_DIR=$(QT5_LIBDIR)/cmake/Qt5Gui
47 #CMAKE_OPTIONS += -DQt5LinguistTools_DIR=$(QT5_LIBDIR)/cmake/Qt5LinguistTools
48 #CMAKE_OPTIONS += -DQt5MultimediaWidgets_DIR=$(QT5_LIBDIR)/cmake/Qt5MultimediaWidgets
49 #CMAKE_OPTIONS += -DQt5Multimedia_DIR=$(QT5_LIBDIR)/cmake/Qt5Multimedia
50 #CMAKE_OPTIONS += -DQt5Network_DIR=$(QT5_LIBDIR)/cmake/Qt5Network
51 #CMAKE_OPTIONS += -DQt5OpenGL_DIR=$(QT5_LIBDIR)/cmake/Qt5OpenGL
52 #CMAKE_OPTIONS += -DQt5Positioning_DIR=$(QT5_LIBDIR)/cmake/Qt5Positioning
53 #CMAKE_OPTIONS += -DQt5PrintSupport_DIR=$(QT5_LIBDIR)/cmake/Qt5PrintSupport
54 #CMAKE_OPTIONS += -DQt5Script_DIR=$(QT5_LIBDIR)/cmake/Qt5Script
55 #CMAKE_OPTIONS += -DQt5SerialPort_DIR=$(QT5_LIBDIR)/cmake/Qt5SerialPort
56 #CMAKE_OPTIONS += -DQt5Widgets_DIR=$(QT5_LIBDIR)/cmake/Qt5Widgets
58 COMPONENT_TEST_TRANSFORMS= \
59 ' -e "s/[0-9]*\.[0-9]* sec//" ' \
60 ' -n ' \
61 ' -e "/Passed/p" ' \
62 ' -e "/passed/p" ' \
63 ' -e "/Failed/p" '
65 # Auto-generated dependencies
66 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
67 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
68 REQUIRED_PACKAGES += library/qt5
69 REQUIRED_PACKAGES += system/library
70 REQUIRED_PACKAGES += system/library/math