David Stes
2024-03-31 8cdd197ba643eb2608c5aab87567625bb9336cee
commit | author | age
a7412b 1 #
J'S 2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"). You may
4 # only use this file in accordance with the terms of the CDDL.
5 #
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
9 #
10
11 #
12 # Copyright 2014 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
a2eb28 13 # Copyright 2021, 2024, Andreas Wacknitz
a7412b 14 #
J'S 15
da4014 16 BUILD_STYLE= justmake
59782d 17 include ../../../make-rules/shared-macros.mk
a7412b 18
J'S 19 COMPONENT_NAME=        sbcl
bff194 20 COMPONENT_VERSION=    2.4.3
b9142b 21 COMPONENT_SUMMARY=    sbcl - Steel Bank Common Lisp
e4999e 22 COMPONENT_PROJECT_URL=    https://sbcl.sourceforge.io/
a7412b 23 COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)
J'S 24 COMPONENT_ARCHIVE=    $(COMPONENT_SRC)-source.tar.bz2
bff194 25 COMPONENT_ARCHIVE_HASH=    sha256:89c9aadf92b82ad3c74a3d4f158a038893dea0e4f394dcafc963583c30b7c3f2
e36e43 26 COMPONENT_ARCHIVE_URL=    https://downloads.sourceforge.net/project/sbcl/sbcl/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
b9142b 27 COMPONENT_FMRI=        runtime/sbcl
239f23 28 COMPONENT_CLASSIFICATION=    Development/Other Languages
b9142b 29 COMPONENT_LICENSE=    BSD-PublicDomain
2a0e21 30 COMPONENT_LICENSE_FILE=    COPYING
a7412b 31
b9142b 32 TEST_TARGET= $(NO_TESTS)
1ed85d 33 include $(WS_MAKE_RULES)/common.mk
a7412b 34
e2f01c 35 COMPONENT_ENV  =    PATH="$(PATH)"
a7412b 36 COMPONENT_ENV +=    GNUMAKE=$(GMAKE)
105420 37 COMPONENT_ENV +=    CC="$(CC)"
e2f01c 38 COMPONENT_BUILD_ARGS  =    --prefix=$(USRDIR)
1038ab 39 COMPONENT_BUILD_ARGS +=    --arch=x86-64
2dc6f4 40 # This is currently --with-sb-thread --with-sb-core-compression
RL 41 # --with-sb-xref-internals and :sb-after-xc-core as a build feature.
42 COMPONENT_BUILD_ARGS +=    --fancy
a7412b 43
J'S 44 $(BUILD_DIR)/%/.built:    $(SOURCE_DIR)/.prep
45     $(RM) -r $(@D) ; $(MKDIR) $(BUILD_DIR)
46     $(CP) -a $(SOURCE_DIR) $(@D)
47     (cd $(@D) ; $(ENV) $(COMPONENT_ENV) /usr/gnu/bin/sh make.sh $(COMPONENT_BUILD_ARGS))
4eb852 48     (cd $(@D)/doc/manual ; $(ENV) $(COMPONENT_ENV) BUILD_ROOT=$(PROTO_DIR) $(GMAKE) html info)
a7412b 49     $(TOUCH) $@
J'S 50
51 $(BUILD_DIR)/%/.installed:    $(BUILD_DIR)/%/.built
52     (cd $(@D) ; $(ENV) $(COMPONENT_ENV) BUILD_ROOT=$(PROTO_DIR) /usr/gnu/bin/sh install.sh)
53     $(TOUCH) $@
54
288756 55 $(BUILD_DIR)/%/.tested:        $(BUILD_DIR)/%/.installed
RL 56     (cd $(@D)/tests; $(ENV) $(COMPONENT_ENV) BUILD_ROOT=$(PROTO_DIR) /usr/gnu/bin/sh run-tests.sh)
57
e2f01c 58 # Pre-installed sbcl is needed to build sbcl
MT 59 REQUIRED_PACKAGES += runtime/sbcl
a7412b 60
a8dd28 61 # Auto-generated dependencies
1038ab 62 REQUIRED_PACKAGES += compress/zstd
59782d 63 REQUIRED_PACKAGES += system/library
AP 64 REQUIRED_PACKAGES += system/library/math