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