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