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
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
18 USE_DEFAULT_TEST_TRANSFORMS
= yes
19 include ..
/..
/..
/make-rules
/shared-macros.mk
21 COMPONENT_NAME
= wxmaxima
22 COMPONENT_VERSION
= 23.12.0
23 COMPONENT_SUMMARY
= wxMaxima is a document based interface for the computer algebra system Maxima
24 COMPONENT_PROJECT_URL
= https
://github.com
/wxMaxima-developers
/wxmaxima
25 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
26 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
27 COMPONENT_ARCHIVE_URL
= https
://github.com
/wxMaxima-developers
/wxmaxima
/archive
/refs
/tags/Version-
$(COMPONENT_VERSION
).
tar.gz
28 COMPONENT_ARCHIVE_HASH
= sha256
:abec636e96474adf6451e81728b16afaa83ed1a70b86a695fa083ecec65aaae1
29 COMPONENT_FMRI
= application
/$(COMPONENT_NAME
)
30 COMPONENT_CLASSIFICATION
= Applications
/Office
31 COMPONENT_LICENSE
= GPLv2
32 COMPONENT_LICENSE_FILE
= COPYING
34 include $(WS_MAKE_RULES
)/common.mk
38 COMPONENT_POST_UNPACK_ACTION
= ( $(MV
) $(COMPONENT_NAME
)-Version-
$(COMPONENT_VERSION
) $(COMPONENT_SRC
) );
42 LDFLAGS
+= -lsocket
-lnsl
44 CMAKE_OPTIONS
+= -DCMAKE_BUILD_TYPE
=Release
45 CMAKE_OPTIONS
+= -DWXM_DISABLE_WEBVIEW
=ON
47 # Testing needs an X server
48 # With a xvfb the tests are stuck at #6, with a real X server we get many segfaults
49 TEST_REQUIRED_PACKAGES
+= x11
/server
/xvfb
50 COMPONENT_PRE_TEST_ACTION
+= /usr
/bin
/Xvfb
:1 >/dev
/null
2>&1 &
51 COMPONENT_TEST_ENV
+= DISPLAY
=:1
52 COMPONENT_POST_TEST_ACTION
+= /usr
/bin
/pkill
-x Xvfb
;
54 # Manually added build dependencies
55 REQUIRED_PACKAGES
+= utility
/bash-completion
56 TEST_REQUIRED_PACKAGES
+= library
/math
/maxima
58 # Auto-generated dependencies
59 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
60 REQUIRED_PACKAGES
+= $(GXX_RUNTIME_PKG
)
61 REQUIRED_PACKAGES
+= library
/graphics
/wxwidgets-3
62 REQUIRED_PACKAGES
+= system
/library
63 REQUIRED_PACKAGES
+= system
/library
/math