rebuild gst-plugins-good1 for libvpx-1.15.0; fix gcc-14 problem
[oi-userland.git] / components / scientific / pari / Makefile
blob2dc2339f781127ad2629f9738d7b4914b9683f04
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 (c) 2021,2022 David Stes
13 # Copyright (c) 2023 Andreas Wacknitz
14 # Copyright (c) 2024 David Stes
17 # The manifest pari.p5m holds no license and copyright info per explicit request from
18 # Bill Allombert from the PARI team
21 include ../../../make-rules/shared-macros.mk
23 COMPONENT_NAME= pari
24 COMPONENT_VERSION= 2.17.1
25 COMPONENT_SUMMARY= The PARI Computer Algebra System
26 COMPONENT_PROJECT_URL= https://pari.math.u-bordeaux.fr
27 COMPONENT_SRC= pari-$(COMPONENT_VERSION)
28 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
29 COMPONENT_ARCHIVE_HASH= sha256:67ba6f3071233725258541e4f174b5efbc64c65ae5115bade9edfc45f1fde5dc
30 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/pub/pari/unix/$(COMPONENT_ARCHIVE)
31 COMPONENT_FMRI= library/math/pari
32 COMPONENT_CLASSIFICATION= Development/Other Languages
33 COMPONENT_LICENSE= GPLv2
34 COMPONENT_LICENSE_FILE= COPYING
36 include $(WS_MAKE_RULES)/common.mk
38 PATH= $(PATH.gnu)
40 # Configure has an option --builddir but this fails when built outside of source tree
41 # The PARI script config/genfunclist uses find -type f and skips symlinks
42 COMPONENT_PRE_CONFIGURE_ACTION= ( $(CLONEY) $(SOURCE_DIR) $(@D) )
44 # PARI/gp Configure is not autoconf
45 CONFIGURE_SCRIPT= $(SOURCE_DIR)/Configure
47 # reset all options because Configure does not understand --sbindir= only --dir
48 CONFIGURE_OPTIONS= --prefix=$(CONFIGURE_PREFIX)
49 # PARI/gp installs its 64bit library in /usr/lib
50 CONFIGURE_OPTIONS += --libdir=$(USRLIBDIR64)
51 # multi-threaded libraries (enables tls, or thread local stack)
52 CONFIGURE_OPTIONS += --mt=pthread
53 CONFIGURE_OPTIONS += --with-readline
55 CONFIGURE_ENV += CFLAGS="$(CFLAGS)"
57 # all does not work because documentation requires Tex typesetting
58 COMPONENT_BUILD_TARGETS= gp
60 # dobench is a quicktest, test-all takes more time and also compares gp-static
61 # try to do all regression tests but only on the dynamic executable gp-dyn
62 COMPONENT_TEST_TARGETS= dyntest-all
64 # I believe PARI measures with test-all diffs between static and dyn linked gp
65 # the test script is in : src/test/dotest
66 # I think it prints timing information and checks for correctness
67 # the timing info could be useful but for our purprose remove/transform it
68 COMPONENT_TEST_TRANSFORMS += '-e "s/gp-sta..TIME=[ ]*[0-9]*//g"'
69 COMPONENT_TEST_TRANSFORMS += '-e "s/gp-dyn..TIME=[ ]*[0-9]*//g"'
70 COMPONENT_TEST_TRANSFORMS += '-e "/Total bench/d"'
72 # gmake test dependencies
73 TEST_REQUIRED_PACKAGES += library/math/pari-elldata
75 # Auto-generated dependencies
76 REQUIRED_PACKAGES += $(READLINE_PKG)
77 REQUIRED_PACKAGES += library/gmp
78 REQUIRED_PACKAGES += runtime/perl
79 REQUIRED_PACKAGES += system/library
80 REQUIRED_PACKAGES += system/library/math
81 REQUIRED_PACKAGES += x11/library/libx11