Makefile revision 3996
551N/A#
551N/A# CDDL HEADER START
1402N/A#
551N/A# The contents of this file are subject to the terms of the
1402N/A# Common Development and Distribution License (the "License").
551N/A# You may not use this file except in compliance with the License.
551N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A
919N/A#
919N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
919N/A#
551N/A
551N/ACOMPILER= gcc3
551N/A
551N/Ainclude ../../make-rules/shared-macros.mk
551N/A
551N/ACOMPONENT_NAME= clisp
1360N/ACOMPONENT_VERSION= 2.49
1360N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1360N/ACOMPONENT_PROJECT_URL= http://clisp.cons.org/
1360N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
1360N/ACOMPONENT_ARCHIVE_HASH= \
1360N/A sha256:8132ff353afaa70e6b19367a25ae3d5a43627279c25647c220641fed00f8e890
1360N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/clisp/release/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
970N/ACOMPONENT_BUGDB= utility/clisp
970N/A
970N/ATPNO= 8347
970N/A
970N/Ainclude $(WS_MAKE_RULES)/prep.mk
970N/Ainclude $(WS_MAKE_RULES)/configure.mk
970N/Ainclude $(WS_MAKE_RULES)/ips.mk
970N/A
551N/A# To include correct locale header file in .../modules/regexp/gllib/regex.c
551N/ACPPFLAGS += -I/usr/share/gettext/intl
551N/A
551N/A# Required to configure correctly.
551N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
551N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
1097N/A
1097N/APATCH_LEVEL= 0
1097N/A
1097N/A# SHELLOPTS appears to cause clisp's configure script to fail while
551N/A# checking the compiler.
1402N/Aunexport SHELLOPTS
551N/A
551N/A# clisp's configure script is not a GNU auto* tools generated configure script
551N/A# and doesn't take --sbindir, so we need to override the default values.
551N/ACONFIGURE_OPTIONS = CC="$(CC) -DNO_GENERATIONAL_GC"
551N/Aifeq ($(strip $(PARFAIT_BUILD)),yes)
551N/ACONFIGURE_OPTIONS = CC="$(CC) -DNO_GENERATIONAL_GC -DNO_ASM"
1193N/Aendif
1193N/ACONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
1193N/ACONFIGURE_OPTIONS += --prefix=$(CONFIGURE_PREFIX)
551N/ACONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR)
1193N/ACONFIGURE_OPTIONS += --bindir=$(CONFIGURE_BINDIR.$(BITS))
1193N/ACONFIGURE_OPTIONS += --libdir=$(CONFIGURE_LIBDIR.$(BITS))
1193N/ACONFIGURE_OPTIONS += --srcdir=$(SOURCE_DIR)
551N/ACONFIGURE_OPTIONS += --with-libsigsegv-prefix=$(CONFIGURE_PREFIX)
970N/ACONFIGURE_OPTIONS += --with-libreadline-prefix=$(CONFIGURE_PREFIX)
970N/A
970N/A# Prevent clisp.ps and clisp.pdf having different versions for SPARC
551N/A# and x86 in the clisp package, because of embedded dates.
TIME_CONSTANT = 1348000000
COMPONENT_BUILD_ENV += $(CONSTANT_TIME)
# Adjust the "/ID [ ... ]" line in clisp.pdf to set it to a fixed value
# to prevent it having different versions for SPARC and x86 in the clisp
# package. This value is normally generated by ghostscript, and is
# different on each machine. The fixed value that's been used comes from
# value generated when building clisp on the Userland SPARC build machine.
COMPONENT_POST_INSTALL_ACTION = \
(cd $(PROTOUSRSHAREDOCDIR)/clisp/doc ; \
$(GSED) -i 's|^/ID.*|/ID [<DEA6B2ECA0DB714B6BEB6209A211AEF0><DEA6B2ECA0DB714B6BEB6209A211AEF0>]|' clisp.pdf)
# One of the tests now needs the GNU tail command.
COMPONENT_TEST_ENV += PATH="$(GNUBIN):$(PATH)"
# common targets
build: $(BUILD_32)
install: $(INSTALL_32)
test: $(TEST_32)
REQUIRED_PACKAGES += library/libsigsegv
REQUIRED_PACKAGES += library/ncurses
REQUIRED_PACKAGES += library/readline
REQUIRED_PACKAGES += shell/ksh93
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/math