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>
15 include ..
/..
/..
/make-rules
/shared-macros.mk
18 COMPONENT_VERSION
= 1.3.6
19 COMPONENT_PROJECT_URL
= http
://www.sbcl.org
/
20 COMPONENT_FMRI
= runtime
/sbcl
21 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
22 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
)-source.
tar.bz2
23 COMPONENT_ARCHIVE_HASH
= \
24 sha256
:f017ac1bd8fe0ad56a4cfda4f7543a06a8993db8da1c9c079e188c28c551b0d9
25 COMPONENT_ARCHIVE_URL
= http
://downloads.sourceforge.net
/project
/sbcl
/sbcl
/$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)
26 COMPONENT_LICENSE
= BSD-PublicDomain
27 COMPONENT_LICENSE_FILE
= $(COMPONENT_NAME
).license
28 COMPONENT_SUMMARY
= sbcl
- Steel Bank Common Lisp
30 include $(WS_MAKE_RULES
)/prep.mk
31 include $(WS_MAKE_RULES
)/ips.mk
33 COMPONENT_ENV
= PATH
=/usr
/bin
:/usr
/sbin
:/bin
:/sbin
:/usr
/gnu
/bin
34 COMPONENT_ENV
+= GNUMAKE
=$(GMAKE
)
35 COMPONENT_BUILD_ARGS
= --prefix=/usr
36 COMPONENT_BUILD_ARGS
+= --arch
=x86
37 COMPONENT_BUILD_ARGS
+= --with-sb-thread
38 COMPONENT_BUILD_ARGS
+= --with-sb-core-compression
40 $(BUILD_DIR
)/%/.built
: $(SOURCE_DIR
)/.prep
41 $(RM
) -r
$(@D
) ; $(MKDIR
) $(BUILD_DIR
)
42 $(CP
) -a
$(SOURCE_DIR
) $(@D
)
43 (cd
$(@D
) ; chmod
+x find-gnumake.sh
)
44 (cd
$(@D
) ; $(ENV
) $(COMPONENT_ENV
) /usr
/gnu
/bin
/sh make.sh
$(COMPONENT_BUILD_ARGS
))
45 ifeq ($(strip $(PARFAIT_BUILD
)),yes
)
50 $(BUILD_DIR
)/%/.installed
: $(BUILD_DIR
)/%/.built
51 (cd
$(@D
) ; $(ENV
) $(COMPONENT_ENV
) BUILD_ROOT
=$(PROTO_DIR
) /usr
/gnu
/bin
/sh
install.sh
)
56 install: $(INSTALL_32
)
59 $(RM
) -r
$(BUILD_DIR
) $(PROTO_DIR
)
61 REQUIRED_PACKAGES
+= runtime
/sbcl
62 REQUIRED_PACKAGES
+= system
/library
63 REQUIRED_PACKAGES
+= system
/library
/math