2005-07-22 04:38:13 +02:00
|
|
|
# $NetBSD: Makefile,v 1.2 2005/07/22 02:38:13 jonb Exp $
|
2005-06-23 05:00:20 +02:00
|
|
|
|
|
|
|
DISTNAME= ${PKGNAME}-source
|
|
|
|
PKGNAME= sbcl-0.9.1
|
|
|
|
CATEGORIES= lang
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sbcl/}
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
|
|
|
MAINTAINER= jonb@NetBSD.org
|
|
|
|
HOMEPAGE= http://www.sbcl.org/
|
|
|
|
COMMENT= SBCL, a Common Lisp implementation
|
|
|
|
|
|
|
|
ONLY_FOR_PLATFORM= NetBSD-*-i386
|
|
|
|
# It should be possible to have SBCL working on amd64, powerpc,
|
|
|
|
# sparc, alpha, mips, and HPPA hardware also, but they probably
|
|
|
|
# need a bit of porting work done in SBCL itself.
|
|
|
|
# In addition, SBCL should also work on Linux, Darwin, Solaris,
|
|
|
|
# FreeBSD, OpenBSD, and possibly Win32, OSF/1, HP-UX, and Irix.
|
|
|
|
|
2005-07-22 04:38:13 +02:00
|
|
|
USE_TOOLS+= gmake gtar:run
|
2005-06-23 05:00:20 +02:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PKGNAME}/
|
|
|
|
|
|
|
|
#
|
|
|
|
# Bootstrap section.
|
|
|
|
#
|
|
|
|
# SBCL needs an existing Common Lisp system to build it...
|
|
|
|
# Currently allowed systems are CLisp, CMUCL, OpenMCL, and SBCL itself.
|
|
|
|
#
|
|
|
|
SBCL_BOOT_SYSTEM= clisp
|
|
|
|
#SBCL_BOOT_SYSTEM= "lisp -batch"
|
|
|
|
#SBCL_BOOT_SYSTEM= "openmcl --batch"
|
|
|
|
#SBCL_BOOT_SYSTEM= sbcl
|
|
|
|
|
|
|
|
.if defined(SBCL_BOOT_SYSTEM) && ${SBCL_BOOT_SYSTEM} == clisp
|
|
|
|
BUILD_DEPENDS+= clisp-[0-9]*:../../lang/clisp
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(SBCL_BOOT_SYSTEM)
|
|
|
|
PKG_SKIP_REASON= "Sorry, need a Common Lisp system"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2005-07-22 04:38:13 +02:00
|
|
|
${MV} ${WRKSRC}install.sh ${WRKSRC}install.sh.dist
|
|
|
|
${SED} -e "s,@PREFIX@,${PREFIX}," ${WRKSRC}install.sh.dist > ${WRKSRC}install.sh
|
|
|
|
${MV} ${WRKSRC}src/runtime/runtime.c ${WRKSRC}src/runtime/runtime.c.dist
|
|
|
|
${SED} -e "s,@PREFIX@,${PREFIX}," ${WRKSRC}src/runtime/runtime.c.dist > ${WRKSRC}src/runtime/runtime.c
|
|
|
|
${MV} ${WRKSRC}doc/sbcl.1 ${WRKSRC}doc/sbcl.1.dist
|
|
|
|
${SED} -e "s,@PREFIX@,${PREFIX}," ${WRKSRC}doc/sbcl.1.dist > ${WRKSRC}doc/sbcl.1
|
|
|
|
${MV} ${WRKSRC}contrib/asdf-install/installer.lisp ${WRKSRC}contrib/asdf-install/installer.lisp.dist
|
|
|
|
${SED} -e "s,@GTAR@,${GTAR}," ${WRKSRC}contrib/asdf-install/installer.lisp.dist > ${WRKSRC}contrib/asdf-install/installer.lisp
|
2005-06-23 05:00:20 +02:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC} && ${SH} make.sh "${SBCL_BOOT_SYSTEM}"
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
cd ${WRKSRC} && INSTALL_ROOT=${PREFIX} ${SH} install.sh
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|