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.
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.
12 # Copyright 2014 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
13 # Copyright 2021, 2024, Andreas Wacknitz
17 include ..
/..
/..
/make-rules
/shared-macros.mk
20 COMPONENT_VERSION
= 2.4.11
21 COMPONENT_SUMMARY
= sbcl
- Steel Bank Common Lisp
22 COMPONENT_PROJECT_URL
= https
://sbcl.sourceforge.io
/
23 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
24 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
)-source.
tar.bz2
25 COMPONENT_ARCHIVE_HASH
= sha256
:4f03e5846f35834c10700bbe232da41ba4bdbf81bdccacb1d4de24297657a415
26 COMPONENT_ARCHIVE_URL
= https
://downloads.sourceforge.net
/project
/sbcl
/sbcl
/$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)
27 COMPONENT_FMRI
= runtime
/sbcl
28 COMPONENT_CLASSIFICATION
= Development
/Other Languages
29 COMPONENT_LICENSE
= BSD-PublicDomain
30 COMPONENT_LICENSE_FILE
= COPYING
32 TEST_TARGET
= $(NO_TESTS
)
33 include $(WS_MAKE_RULES
)/common.mk
35 COMPONENT_ENV
= PATH
="$(PATH)"
36 COMPONENT_ENV
+= GNUMAKE
=$(GMAKE
)
37 COMPONENT_ENV
+= CC
="$(CC)"
38 COMPONENT_BUILD_ARGS
= --prefix=$(USRDIR
)
39 COMPONENT_BUILD_ARGS
+= --arch
=x86-64
40 # This is currently --with-sb-thread --with-sb-core-compression
41 # --with-sb-xref-internals and :sb-after-xc-core as a build feature.
42 COMPONENT_BUILD_ARGS
+= --fancy
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
))
48 (cd
$(@D
)/doc
/manual
; $(ENV
) $(COMPONENT_ENV
) BUILD_ROOT
=$(PROTO_DIR
) $(GMAKE
) html
info)
51 $(BUILD_DIR
)/%/.installed
: $(BUILD_DIR
)/%/.built
52 (cd
$(@D
) ; $(ENV
) $(COMPONENT_ENV
) BUILD_ROOT
=$(PROTO_DIR
) /usr
/gnu
/bin
/sh
install.sh
)
55 $(BUILD_DIR
)/%/.tested
: $(BUILD_DIR
)/%/.installed
56 (cd
$(@D
)/tests
; $(ENV
) $(COMPONENT_ENV
) BUILD_ROOT
=$(PROTO_DIR
) /usr
/gnu
/bin
/sh run-tests.sh
)
58 # Pre-installed sbcl is needed to build sbcl
59 REQUIRED_PACKAGES
+= runtime
/sbcl
61 # Auto-generated dependencies
62 REQUIRED_PACKAGES
+= compress
/zstd
63 REQUIRED_PACKAGES
+= system
/library
64 REQUIRED_PACKAGES
+= system
/library
/math