pkgsrc/lang/sbcl/Makefile
asau 80fb331f44 Update to SBCL 1.3.12
New in version 1.3.12

 * enhancement: on x86-64, compiled functions loaded from fasl
   files can not be moved, but can be freed, by GC.
   Additionally, COMPILE will produce immobile code
   if SB-C::*COMPILE-TO-MEMORY-SPACE* is set to :IMMOBILE.
   (Caution: the flag is experimental and subject to change.)
   The benefits are better physical separation of code from
   data, and potentially easier examination of live images by
   external tools.
 * enhancement: the docstring for SAVE-LISP-AND-DIE has been
   amended to say that the :ROOT-STRUCTURES parameter is not
   meaningless on gencgc, depending on the platform.
 * bug fix: calling a named function (e.g. a DEFUN) concurrently
   with redefining that same function could lead to execution of
   random bytes.
 * bug fix: yes-or-no-p accepts formatter functions (#1639490)
 * bug fix: better handling of exceptions on macOS.


New in version 1.3.11

 * minor incompatible change: SB-EXT:*INTEXP-MAXIMUM-EXPONENT*
   is removed.
 * enhancement: TRACE ... :REPORT {TRACE,NIL} now work as
   advertised in the documentation string (based on patch by
   Patrick Stein)
 * enhancement: support unboxed signed-word structure slots on
   x86, x86-64 and ARM64. (#377616)
 * optimization: faster logical bit-array operations on
   multidimensional arrays.
 * optimization: better GC performance in the presence of many
   threads. (patch by Ilya Perminov, #1339924)
 * optimization: multiple-value-call is optimized with multiple
   argument forms, not just one. (#753803)
 * bug fix: MAKE-ALIEN-STRING returns the number of allocated
   bytes as a second value as advertised (reported by Johann
   'Myrkraverk' Oskarsson)
 * bug fix: when TO-READTABLE is supplied to COPY-READTABLE, it
   will contain only the macros in FROM-READTABLE and no others.
   (#1631506)
 * enhancement: gencgc has been modified for x86-64 on Linux and
   macOS to a support mark-and-sweep as well as the traditional
   copying strategy. It is conceivable that some applications
   might be adversely affected. Please see ':immobile-space' in
   'base-target-features.lisp-expr' for further details, and
   possible reasons to disable this feature.
 * enhancement: x86-64 supports shrinking the fixed overhead in
   a structure from 2 words to 1 word, reducing memory
   consumption in applications which create many small
   structures.
2016-12-05 20:03:29 +00:00

103 lines
3.5 KiB
Makefile

# $NetBSD: Makefile,v 1.70 2016/12/05 20:03:29 asau Exp $
DISTNAME= ${PKGNAME_NOREV}-source
PKGNAME= sbcl-1.3.12
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sbcl/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= asau@NetBSD.org
HOMEPAGE= http://www.sbcl.org/
COMMENT= SBCL, a Common Lisp implementation
# SBCL creates a new release with minor updates and fixes every
# month. The maintainer of this package does not have the time
# to build, test, update, etc. this package that often. If you
# would like a newer (or older) version, this works very often:
# 1) change the PKGNAME variable above as desired
# 2) make fetch && make makesum && make package
USE_TOOLS+= gmake
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
.include "../../mk/bsd.prefs.mk"
#
# Bootstrap section.
#
# SBCL needs an existing Common Lisp system to build it...
# Currently allowed systems are CLISP, CMUCL, OpenMCL, and SBCL itself.
#
# If SBCL is installed in an unusual place when trying to build this
# package, you may need to set the full path in SBCL_BOOT_SYSTEM and
# build the package with "SBCL_HOME=/path/to/SBCL/core/image/ make"
#SBCL_BOOT_SYSTEM= clisp # CLisp
#SBCL_BOOT_SYSTEM= "lisp -batch" # CMUCL
#SBCL_BOOT_SYSTEM= "openmcl --batch" # OpenMCL
#SBCL_BOOT_SYSTEM= sbcl # SBCL
.if !defined(SBCL_BOOT_SYSTEM)
# Use "clisp -ansi -on-error abort" to make the build more reproducible,
# per Christophe Rhodes:
SBCL_BOOT_SYSTEM= clisp -norc -ansi -on-error abort
BUILD_DEPENDS+= clisp-[0-9]*:../../lang/clisp
UNLIMIT_RESOURCES= datasize
.elif ${SBCL_BOOT_SYSTEM} == clisp
BUILD_DEPENDS+= clisp-[0-9]*:../../lang/clisp
UNLIMIT_RESOURCES= datasize
.elif ${SBCL_BOOT_SYSTEM} == sbcl
# Get bootstrap version:
BUILD_DEPENDS+= sbcl-[0-9]*:../../lang/sbcl
.endif
SUBST_CLASSES+= fix-paths
SUBST_STAGE.fix-paths= pre-configure
SUBST_MESSAGE.fix-paths= Fixing absolute paths.
SUBST_FILES.fix-paths= install.sh src/runtime/runtime.c doc/sbcl.1
SUBST_SED.fix-paths= -e 's,@PREFIX@,${PREFIX},g'
SUBST_SED.fix-paths+= -e 's,/var/log,${VARBASE}/log,g'
SUBST_CLASSES+= fix-gtar
SUBST_STAGE.fix-gtar= pre-configure
SUBST_MESSAGE.fix-gtar= Fixing GNU tar references.
SUBST_FILES.fix-gtar= contrib/asdf-install/installer.lisp
SUBST_SED.fix-gtar= -e 's,@GTAR@,${GTAR},'
SUBST_CLASSES+= fix-bins
SUBST_STAGE.fix-bins= pre-configure
SUBST_FILES.fix-bins= src/runtime/Config.x86-64-sunos
SUBST_FILES.fix-bins+= src/runtime/Config.x86-sunos
SUBST_SED.fix-bins= -e 's,nm ,/usr/bin/nm ,'
SUBST_SED.fix-bins+= -e 's,ggrep,grep,'
.if !empty(MACHINE_PLATFORM:MSunOS-*-i386)
SBCL_ARCH_ARGS= "--arch=x86"
.elif !empty(MACHINE_PLATFORM:MSunOS-*-x86_64)
SBCL_ARCH_ARGS= "--arch=x86-64"
.endif
do-build:
cd ${WRKSRC} && ${SH} make.sh --prefix=${PREFIX} ${SBCL_ARCH_ARGS} --xc-host=${SBCL_BOOT_SYSTEM:Q}
post-build:
cd ${WRKSRC} && ${RM} -f contrib/sb-cover/test-output/*
do-install:
cd ${WRKSRC} && BUILD_ROOT=${DESTDIR:Q} INSTALL_ROOT=${PREFIX:Q} MAN_DIR=${PREFIX:Q}/${PKGMANDIR} ${SH} install.sh
rm -f $(DESTDIR)$(PREFIX)/lib/sbcl/sb-posix/test-output/write-test.txt
rm -f $(DESTDIR)$(PREFIX)/lib/sbcl/sb-posix/test-output/read-test.txt
rm -f $(DESTDIR)$(PREFIX)/lib/sbcl/asdf-install/installer.lisp.orig
do-test:
# for f in compiler.pure.lisp interface.pure.lisp compiler.impure.lisp debug.impure.lisp interface.impure.lisp; do mv ${WRKSRC}/tests/$$f ${WRKSRC}/tests/$$f.off || :; done
cd ${WRKSRC}/tests && ${SH} ./run-tests.sh
.if ${MACHINE_ARCH} == "x86_64"
PLIST_SUBST+= SUFX64=-64
.else
PLIST_SUBST+= SUFX64=
.endif
.include "../../mk/bsd.pkg.mk"