postgresql-16/pg-repack: update to 1.5.2
[oi-userland.git] / components / runtime / clisp / Makefile
blobb14045b8fcc2220a6235ff16a8ae331bdb27854c
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
23 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
25 BUILD_BITS=32
27 include ../../../make-rules/shared-macros.mk
29 COMPONENT_NAME= clisp
30 COMPONENT_VERSION= 2.49
31 COMPONENT_REVISION= 5
32 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
33 COMPONENT_PROJECT_URL= http://clisp.cons.org/
34 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
35 COMPONENT_ARCHIVE_HASH= \
36 sha256:8132ff353afaa70e6b19367a25ae3d5a43627279c25647c220641fed00f8e890
37 COMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/clisp/release/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
38 COMPONENT_BUGDB= utility/clisp
40 include $(WS_MAKE_RULES)/common.mk
42 # To include correct locale header file in .../modules/regexp/gllib/regex.c
43 CPPFLAGS += -I/usr/share/gettext/intl
45 # Required to configure correctly.
46 COMPONENT_PRE_CONFIGURE_ACTION = \
47 ($(CLONEY) $(SOURCE_DIR) $(@D))
49 COMPILER= gcc
50 PATCH_LEVEL= 0
52 COMPONENT_BUILD_ARGS =
54 # SHELLOPTS appears to cause clisp's configure script to fail while
55 # checking the compiler.
56 unexport SHELLOPTS
58 # clisp's configure script is not a GNU auto* tools generated configure script
59 # and doesn't take --sbindir, so we need to override the default values.
60 CONFIGURE_OPTIONS = CC="$(CC) -DNO_GENERATIONAL_GC"
61 CONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
62 CONFIGURE_OPTIONS += --prefix=$(CONFIGURE_PREFIX)
63 CONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR)
64 CONFIGURE_OPTIONS += --bindir=$(CONFIGURE_BINDIR.$(BITS))
65 CONFIGURE_OPTIONS += --libdir=$(CONFIGURE_LIBDIR.$(BITS))
66 CONFIGURE_OPTIONS += --srcdir=$(SOURCE_DIR)
67 CONFIGURE_OPTIONS += --with-libsigsegv-prefix=$(CONFIGURE_PREFIX)
68 CONFIGURE_OPTIONS += --with-libreadline-prefix=$(CONFIGURE_PREFIX)
69 # Workaround invalid configure guess
70 CONFIGURE_OPTIONS += gl_cv_func_mbrtowc_retval=yes
72 # For now keep ASLR disabled for clisp (the default); build may core dump with ASLR
73 # ASLR_MODE = $(ASLR_DISABLE)
75 # Prevent clisp.ps and clisp.pdf having different versions for SPARC
76 # and x86 in the clisp package, because of embedded dates.
77 TIME_CONSTANT = 1348000000
78 COMPONENT_BUILD_ENV += $(CONSTANT_TIME)
80 # Adjust the "/ID [ ... ]" line in clisp.pdf to set it to a fixed value
81 # to prevent it having different versions for SPARC and x86 in the clisp
82 # package. This value is normally generated by ghostscript, and is
83 # different on each machine. The fixed value that's been used comes from
84 # value generated when building clisp on the Userland SPARC build machine.
85 COMPONENT_POST_INSTALL_ACTION = \
86 (cd $(PROTOUSRSHAREDOCDIR)/clisp/doc ; \
87 $(GSED) -i 's|^/ID.*|/ID [<DEA6B2ECA0DB714B6BEB6209A211AEF0><DEA6B2ECA0DB714B6BEB6209A211AEF0>]|' clisp.pdf)
89 # One of the tests now needs the GNU tail command.
90 COMPONENT_TEST_ENV += PATH="$(GNUBIN):$(PATH)"
92 REQUIRED_PACKAGES += SUNWcs
93 REQUIRED_PACKAGES += library/libsigsegv
94 REQUIRED_PACKAGES += library/ncurses
95 REQUIRED_PACKAGES += library/readline
96 REQUIRED_PACKAGES += system/library
97 REQUIRED_PACKAGES += system/library/math