Makefile revision 1273
1767N/A#
1767N/A# CDDL HEADER START
1767N/A#
1767N/A# The contents of this file are subject to the terms of the
1767N/A# Common Development and Distribution License (the "License").
1767N/A# You may not use this file except in compliance with the License.
1767N/A#
1767N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1767N/A# or http://www.opensolaris.org/os/licensing.
1767N/A# See the License for the specific language governing permissions
1767N/A# and limitations under the License.
1767N/A#
1767N/A# When distributing Covered Code, include this CDDL HEADER in each
1767N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1767N/A# If applicable, add the following below this CDDL HEADER, with the
1767N/A# fields enclosed by brackets "[]" replaced with your own identifying
1767N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1767N/A#
1767N/A# CDDL HEADER END
1767N/A#
2337N/A
1767N/A#
1767N/A# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
1767N/A#
1767N/A
1767N/Ainclude ../../make-rules/shared-macros.mk
1767N/A
1767N/ACOMPONENT_NAME= clisp
1767N/ACOMPONENT_VERSION= 2.49
1767N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1767N/ACOMPONENT_PROJECT_URL= http://clisp.cons.org/
1767N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
1767N/ACOMPONENT_ARCHIVE_HASH= \
1767N/A sha256:8132ff353afaa70e6b19367a25ae3d5a43627279c25647c220641fed00f8e890
1767N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/clisp/release/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
1767N/ACOMPONENT_BUGDB= utility/clisp
1767N/A
1767N/Ainclude ../../make-rules/prep.mk
1767N/Ainclude ../../make-rules/configure.mk
1767N/Ainclude ../../make-rules/ips.mk
1767N/A
1767N/A# To include correct locale header file in .../modules/regexp/gllib/regex.c
1767N/ACPPFLAGS += -I/usr/share/gettext/intl
2337N/A
1767N/A# Required to configure correctly.
1767N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
1767N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
1767N/A
1767N/ACOMPILER= gcc
1767N/APATCH_LEVEL= 0
1767N/A
1767N/A# SHELLOPTS appears to cause clisp's configure script to fail while
1767N/A# checking the compiler.
1767N/Aunexport SHELLOPTS
1767N/A
1767N/A# clisp's configure script is not a GNU auto* tools generated configure script
1767N/A# and doesn't take --sbindir, so we need to override the default values.
1767N/ACONFIGURE_OPTIONS = CC="$(CC) -DNO_GENERATIONAL_GC"
1767N/ACONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
CONFIGURE_OPTIONS += --prefix=$(CONFIGURE_PREFIX)
CONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR)
CONFIGURE_OPTIONS += --bindir=$(CONFIGURE_BINDIR.$(BITS))
CONFIGURE_OPTIONS += --libdir=$(CONFIGURE_LIBDIR.$(BITS))
CONFIGURE_OPTIONS += --srcdir=$(SOURCE_DIR)
CONFIGURE_OPTIONS += --with-libsigsegv-prefix=$(CONFIGURE_PREFIX)
CONFIGURE_OPTIONS += --with-libreadline-prefix=$(CONFIGURE_PREFIX)
# Prevent clisp.ps and clisp.pdf having different versions for SPARC
# 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)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk