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 2021,2022 David Stes
15 include ..
/..
/..
/make-rules
/shared-macros.mk
18 COMPONENT_VERSION
= 2.15.5
19 COMPONENT_SUMMARY
= The PARI Computer Algebra System
20 COMPONENT_PROJECT_URL
= https
://pari.math.u-bordeaux.fr
21 COMPONENT_SRC
= pari-
$(COMPONENT_VERSION
)
22 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
23 COMPONENT_ARCHIVE_HASH
= sha256
:0efdda7515d9d954f63324c34b34c560e60f73a81c3924a71260a2cc91d5f981
24 COMPONENT_ARCHIVE_URL
= $(COMPONENT_PROJECT_URL
)/pub
/pari
/unix
/$(COMPONENT_ARCHIVE
)
25 COMPONENT_FMRI
= library
/math
/pari
26 COMPONENT_CLASSIFICATION
= Development
/Other Languages
27 COMPONENT_LICENSE
= GPLv2
28 COMPONENT_LICENSE_FILE
= COPYING
30 include $(WS_MAKE_RULES
)/common.mk
34 # Configure complains when built outside of source tree
35 # The PARI script config/genfunclist uses find -type f and fails on symlinks
36 COMPONENT_PRE_CONFIGURE_ACTION
= ( $(CLONEY
) $(SOURCE_DIR
) $(@D
) )
38 # PARI/gp Configure is not autoconf
39 CONFIGURE_SCRIPT
= $(SOURCE_DIR
)/Configure
41 # reset all options because Configure does not understand --sbindir= only --dir
42 CONFIGURE_OPTIONS
= --prefix=$(CONFIGURE_PREFIX
)
43 # PARI/gp installs its 64bit library in /usr/lib
44 CONFIGURE_OPTIONS
+= --libdir=$(USRLIBDIR64
)
45 CONFIGURE_OPTIONS
+= --with-readline
47 CONFIGURE_ENV
+= CFLAGS
="$(CFLAGS)"
49 # all does not work because documentation requires Tex typesetting
50 COMPONENT_BUILD_TARGETS
= gp
52 # dobench is a quicktest, test-all takes more time and also compares gp-static
53 # try to do all regression tests but only on the dynamic executable gp-dyn
54 COMPONENT_TEST_TARGETS
= dyntest-all
56 # I believe PARI measures with test-all diffs between static and dyn linked gp
57 # the test script is in : src/test/dotest
58 # I think it prints timing information and checks for correctness
59 # the timing info could be useful but for our purprose remove/transform it
60 COMPONENT_TEST_TRANSFORMS
+= '-e "s/gp-sta..TIME=[ ]*[0-9]*//g"'
61 COMPONENT_TEST_TRANSFORMS
+= '-e "s/gp-dyn..TIME=[ ]*[0-9]*//g"'
62 COMPONENT_TEST_TRANSFORMS
+= '-e "/Total bench/d"'
64 # Auto-generated dependencies
65 REQUIRED_PACKAGES
+= library
/gmp
66 REQUIRED_PACKAGES
+= library
/readline
67 REQUIRED_PACKAGES
+= runtime
/perl
68 REQUIRED_PACKAGES
+= system
/library
69 REQUIRED_PACKAGES
+= system
/library
/math
70 REQUIRED_PACKAGES
+= x11
/library
/libx11