April Chin
2013-02-02 0f1b630307ae471bc13fab9a38a9f528b909f4a1
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 #
0f1b63 23 # Copyright (c) 2011, 2013, 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)
3b89c9 36 COMPONENT_BUGDB=    utility/clisp
a331c9 37
RB 38 include ../../make-rules/prep.mk
39 include ../../make-rules/configure.mk
40 include ../../make-rules/ips.mk
2cdf35 41
RB 42 # To include correct locale header file in .../modules/regexp/gllib/regex.c
43 CPPFLAGS += -I/usr/share/gettext/intl
a331c9 44
RB 45 # Required to configure correctly.
46 COMPONENT_PRE_CONFIGURE_ACTION = \
47     ($(CLONEY) $(SOURCE_DIR) $(@D))
48
49 COMPILER=    gcc
50 PATCH_LEVEL=    0
51
c5e804 52 # SHELLOPTS appears to cause clisp's configure script to fail while
NJ 53 # checking the compiler.
54 unexport SHELLOPTS
a331c9 55
RB 56 # clisp's configure script is not a GNU auto* tools generated configure script
57 # and doesn't take --sbindir, so we need to override the default values.
8858ad 58 CONFIGURE_OPTIONS = CC="$(CC) -DNO_GENERATIONAL_GC"
2cdf35 59 CONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
a331c9 60 CONFIGURE_OPTIONS += --prefix=$(CONFIGURE_PREFIX)
RB 61 CONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR)
62 CONFIGURE_OPTIONS += --bindir=$(CONFIGURE_BINDIR.$(BITS))
63 CONFIGURE_OPTIONS += --libdir=$(CONFIGURE_LIBDIR.$(BITS))
64 CONFIGURE_OPTIONS += --srcdir=$(SOURCE_DIR)
65 CONFIGURE_OPTIONS += --with-libsigsegv-prefix=$(CONFIGURE_PREFIX)
66 CONFIGURE_OPTIONS += --with-libreadline-prefix=$(CONFIGURE_PREFIX)
67
0f1b63 68 # For now keep ASLR disabled for clisp (the default); build may core dump with ASLR
AC 69
acd5ac 70 # Prevent clisp.ps and clisp.pdf having different versions for SPARC
RB 71 # and x86 in the clisp package, because of embedded dates.
72 TIME_CONSTANT = 1348000000
73 COMPONENT_BUILD_ENV +=        $(CONSTANT_TIME)
74
75 # Adjust the "/ID [ ... ]" line in clisp.pdf to set it to a fixed value
76 # to prevent it having different versions for SPARC and x86 in the clisp
77 # package.  This value is normally generated by ghostscript, and is
78 # different on each machine. The fixed value that's been used comes from 
79 # value generated when building clisp on the Userland SPARC build machine.
80 COMPONENT_POST_INSTALL_ACTION = \
81     (cd $(PROTOUSRSHAREDOCDIR)/clisp/doc ; \
82     $(GSED) -i 's|^/ID.*|/ID [<DEA6B2ECA0DB714B6BEB6209A211AEF0><DEA6B2ECA0DB714B6BEB6209A211AEF0>]|' clisp.pdf)
83
2cdf35 84 # One of the tests now needs the GNU tail command.
RB 85 COMPONENT_TEST_ENV +=  PATH="$(GNUBIN):$(PATH)"
86
a331c9 87 # common targets
RB 88 build:        $(BUILD_32)
89
90 install:    $(INSTALL_32)
91
92 test:        $(TEST_32)
93
94 BUILD_PKG_DEPENDENCIES =    $(BUILD_TOOLS)
95
96 include ../../make-rules/depend.mk