Rich Burridge
2012-10-01 acd5aced161a476e52e65a2f143650be29860814
commit | author | age
a331c9 1 #
RB 2 # CDDL HEADER START
3 #
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21
22 #
35e110 23 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
a331c9 24 #
RB 25
26 include ../../make-rules/shared-macros.mk
27
28 COMPONENT_NAME=        clisp
2cdf35 29 COMPONENT_VERSION=    2.49
a331c9 30 COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)
RB 31 COMPONENT_PROJECT_URL=    http://clisp.cons.org/
32 COMPONENT_ARCHIVE=    $(COMPONENT_SRC).tar.bz2
35e110 33 COMPONENT_ARCHIVE_HASH=    \
2cdf35 34     sha256:8132ff353afaa70e6b19367a25ae3d5a43627279c25647c220641fed00f8e890
a331c9 35 COMPONENT_ARCHIVE_URL=    http://ftp.gnu.org/gnu/clisp/release/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
RB 36
37 include ../../make-rules/prep.mk
38 include ../../make-rules/configure.mk
39 include ../../make-rules/ips.mk
2cdf35 40
RB 41 # To include correct locale header file in .../modules/regexp/gllib/regex.c
42 CPPFLAGS += -I/usr/share/gettext/intl
a331c9 43
RB 44 # Required to configure correctly.
45 COMPONENT_PRE_CONFIGURE_ACTION = \
46     ($(CLONEY) $(SOURCE_DIR) $(@D))
47
48 COMPILER=    gcc
49 PATCH_LEVEL=    0
50
c5e804 51 # SHELLOPTS appears to cause clisp's configure script to fail while
NJ 52 # checking the compiler.
53 unexport SHELLOPTS
a331c9 54
RB 55 # clisp's configure script is not a GNU auto* tools generated configure script
56 # and doesn't take --sbindir, so we need to override the default values.
8858ad 57 CONFIGURE_OPTIONS = CC="$(CC) -DNO_GENERATIONAL_GC"
2cdf35 58 CONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
a331c9 59 CONFIGURE_OPTIONS += --prefix=$(CONFIGURE_PREFIX)
RB 60 CONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR)
61 CONFIGURE_OPTIONS += --bindir=$(CONFIGURE_BINDIR.$(BITS))
62 CONFIGURE_OPTIONS += --libdir=$(CONFIGURE_LIBDIR.$(BITS))
63 CONFIGURE_OPTIONS += --srcdir=$(SOURCE_DIR)
64 CONFIGURE_OPTIONS += --with-libsigsegv-prefix=$(CONFIGURE_PREFIX)
65 CONFIGURE_OPTIONS += --with-libreadline-prefix=$(CONFIGURE_PREFIX)
66
acd5ac 67 # Prevent clisp.ps and clisp.pdf having different versions for SPARC
RB 68 # and x86 in the clisp package, because of embedded dates.
69 TIME_CONSTANT = 1348000000
70 COMPONENT_BUILD_ENV +=        $(CONSTANT_TIME)
71
72 # Adjust the "/ID [ ... ]" line in clisp.pdf to set it to a fixed value
73 # to prevent it having different versions for SPARC and x86 in the clisp
74 # package.  This value is normally generated by ghostscript, and is
75 # different on each machine. The fixed value that's been used comes from 
76 # value generated when building clisp on the Userland SPARC build machine.
77 COMPONENT_POST_INSTALL_ACTION = \
78     (cd $(PROTOUSRSHAREDOCDIR)/clisp/doc ; \
79     $(GSED) -i 's|^/ID.*|/ID [<DEA6B2ECA0DB714B6BEB6209A211AEF0><DEA6B2ECA0DB714B6BEB6209A211AEF0>]|' clisp.pdf)
80
2cdf35 81 # One of the tests now needs the GNU tail command.
RB 82 COMPONENT_TEST_ENV +=  PATH="$(GNUBIN):$(PATH)"
83
a331c9 84 # common targets
RB 85 build:        $(BUILD_32)
86
87 install:    $(INSTALL_32)
88
89 test:        $(TEST_32)
90
91 BUILD_PKG_DEPENDENCIES =    $(BUILD_TOOLS)
92
93 include ../../make-rules/depend.mk