diff -r 165add577cba -r e336bbbceb4f components/clisp/Makefile --- a/components/clisp/Makefile Tue Jan 12 04:51:27 2016 -0800 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,138 +0,0 @@ -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License (the "License"). -# You may not use this file except in compliance with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# - -# -# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. -# - -COMPILER= gcc - -include ../../make-rules/shared-macros.mk - -COMPONENT_NAME= clisp -COMPONENT_VERSION= 2.49 -COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) -COMPONENT_PROJECT_URL= http://clisp.cons.org/ -COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2 -COMPONENT_ARCHIVE_HASH= \ - sha256:8132ff353afaa70e6b19367a25ae3d5a43627279c25647c220641fed00f8e890 -COMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/clisp/release/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE) -COMPONENT_BUGDB= utility/clisp - -TPNO= 8347 - -include $(WS_MAKE_RULES)/prep.mk -include $(WS_MAKE_RULES)/configure.mk -include $(WS_MAKE_RULES)/ips.mk - -# To include correct locale header file in .../modules/regexp/gllib/regex.c -CPPFLAGS += -I/usr/share/gettext/intl - -# Required to configure correctly. -COMPONENT_PRE_CONFIGURE_ACTION = \ - ($(CLONEY) $(SOURCE_DIR) $(@D)) - -# There is a compiler optimization problem when using -O2 on io.c and -# lisparit.c on SPARC with the gcc 4.7.X compilers. Remove the '-O2" -# just for those two source files. -COMPONENT_POST_CONFIGURE_ACTION.sparc = \ - $(GSED) -i -e '/^CFLAGS/aCFLAGSNOOPT = \$$\(CFLAGS:-O2=)' \ - -e 's/(CFLAGS) -c io.c/(CFLAGSNOOPT) -c io.c/' \ - -e 's/(CFLAGS) -c lisparit.c/(CFLAGSNOOPT) -c lisparit.c/' \ - $(BUILD_DIR_32)/Makefile - -COMPONENT_POST_CONFIGURE_ACTION = \ - $(COMPONENT_POST_CONFIGURE_ACTION.$(MACH)) - -PATCH_LEVEL= 0 - -# SHELLOPTS appears to cause clisp's configure script to fail while -# checking the compiler. -unexport SHELLOPTS - -# clisp's configure script is not a GNU auto* tools generated configure script -# and doesn't take --sbindir, so we need to override the default values. -CONFIGURE_OPTIONS = CC="$(CC) -DNO_GENERATIONAL_GC" -ifeq ($(strip $(PARFAIT_BUILD)),yes) -CONFIGURE_OPTIONS = CC="$(CC) -DNO_GENERATIONAL_GC -DNO_ASM" -endif -CONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)" -CONFIGURE_OPTIONS += CFLAGS= -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) - -# For now keep ASLR disabled for clisp (the default); build may core dump with ASLR -ASLR_MODE = $(ASLR_DISABLE) - -# 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 []|' clisp.pdf) - -# One of the tests now needs the GNU tail command. -COMPONENT_TEST_ENV += PATH="$(GNUBIN):$(PATH)" - -COMPONENT_SYSTEM_TEST_ARGS += LISP="LC_MESSAGES=en_US /usr/bin/clisp -E utf-8 -norc -m 30MW -L english" -COMPONENT_SYSTEM_TEST_ENV += PATH="$(GNUBIN):$(PATH)" - -# different results for different architectures -COMPONENT_TEST_MASTER = \ - $(COMPONENT_TEST_RESULTS_DIR)/results-$(MACH)-$(BITS).master - -# extract the test result summaries -COMPONENT_TEST_TRANSFORMS += \ - '-n ' \ - '-e "/error[s]* out of.*test[s]*$$/p" ' - - -configure: $(CONFIGURE_32) - -build: $(BUILD_32) - -install: $(INSTALL_32) - -test: $(TEST_32) - -# system-test on sparc segfaults and produces a different result on x86 -system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED) - - -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 -REQUIRED_PACKAGES += text/groff/groff-core