cog-spur: update inisqueak to 6.1alpha 23193 image
[oi-userland.git] / components / scientific / wxmaxima / Makefile
blobd8b6f5fda2ec0085ae0e02429f12e1ed7a2a9490
3 # This file and its contents are supplied under the terms of the
4 # Common Development and Distribution License ("CDDL"), version 1.0.
5 # You may only use this file in accordance with the terms of version
6 # 1.0 of the CDDL.
8 # A full copy of the text of the CDDL should have accompanied this
9 # source. A copy of the CDDL is also available via the Internet at
10 # http://www.illumos.org/license/CDDL.
14 # Copyright 2024 Andreas Wacknitz
17 BUILD_STYLE= cmake
18 USE_DEFAULT_TEST_TRANSFORMS= yes
19 include ../../../make-rules/shared-macros.mk
21 COMPONENT_NAME= wxmaxima
22 COMPONENT_VERSION= 24.5.0
23 HUMAN_VERSION= 24.05.0
24 COMPONENT_SUMMARY= wxMaxima is a document based interface for the computer algebra system Maxima
25 COMPONENT_PROJECT_URL= https://github.com/wxMaxima-developers/wxmaxima
26 COMPONENT_SRC= $(COMPONENT_NAME)-$(HUMAN_VERSION)
27 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
28 COMPONENT_ARCHIVE_URL= https://github.com/wxMaxima-developers/wxmaxima/archive/refs/tags/Version-$(HUMAN_VERSION).tar.gz
29 COMPONENT_ARCHIVE_HASH= sha256:21dc8715b71372dc35743486307254a5a0285f35a6acbc68b894d432c4f14c98
30 COMPONENT_FMRI= application/$(COMPONENT_NAME)
31 COMPONENT_CLASSIFICATION= Applications/Office
32 COMPONENT_LICENSE= GPLv2
33 COMPONENT_LICENSE_FILE= COPYING
35 include $(WS_MAKE_RULES)/common.mk
37 PATH= $(PATH.gnu)
39 COMPONENT_POST_UNPACK_ACTION= ( $(MV) $(COMPONENT_NAME)-Version-$(HUMAN_VERSION) $(COMPONENT_SRC) );
41 CFLAGS += $(XPG6MODE)
43 LDFLAGS += -lsocket -lnsl
45 CMAKE_OPTIONS += -DCMAKE_BUILD_TYPE=Release
46 CMAKE_OPTIONS += -DWXM_DISABLE_WEBVIEW=ON
48 # Testing needs an X server
49 # With a xvfb the tests are stuck at #6, with a real X server we get many segfaults
50 TEST_REQUIRED_PACKAGES += x11/server/xvfb
51 COMPONENT_PRE_TEST_ACTION += /usr/bin/Xvfb :1 >/dev/null 2>&1 &
52 COMPONENT_TEST_ENV += DISPLAY=:1
53 COMPONENT_POST_TEST_ACTION += /usr/bin/pkill -x Xvfb ;
55 # Manually added build dependencies
56 REQUIRED_PACKAGES += utility/bash-completion
57 TEST_REQUIRED_PACKAGES += library/math/maxima
59 # Auto-generated dependencies
60 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
61 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
62 REQUIRED_PACKAGES += library/graphics/wxwidgets-3
63 REQUIRED_PACKAGES += system/library
64 REQUIRED_PACKAGES += system/library/math