2008-06-26 01:42:19 +02:00
|
|
|
# $NetBSD: Makefile,v 1.18 2008/06/25 23:42:19 obache Exp $
|
2008-05-28 16:06:31 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2005-06-23 05:00:20 +02:00
|
|
|
|
2006-02-18 23:18:30 +01:00
|
|
|
DISTNAME= ${PKGNAME_NOREV}-source
|
2008-05-28 16:06:31 +02:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
|
|
sbcl-${OPSYS}-${MACHINE_ARCH}-${OS_VERSION}.tgz
|
|
|
|
PKGNAME= sbcl-1.0.16
|
2005-06-23 05:00:20 +02:00
|
|
|
CATEGORIES= lang
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sbcl/}
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2008-05-28 16:06:31 +02:00
|
|
|
SITES.sbcl-${OPSYS}-${MACHINE_ARCH}-${OS_VERSION}.tgz= \
|
|
|
|
ftp://ftp.NetBSD.org/pub/NetBSD/misc/jonb/sbcl/
|
2005-06-23 05:00:20 +02:00
|
|
|
|
|
|
|
MAINTAINER= jonb@NetBSD.org
|
|
|
|
HOMEPAGE= http://www.sbcl.org/
|
|
|
|
COMMENT= SBCL, a Common Lisp implementation
|
|
|
|
|
2005-08-02 07:22:05 +02:00
|
|
|
ONLY_FOR_PLATFORM= NetBSD-[2-9]*-i386
|
2008-05-28 16:06:31 +02:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2005-06-23 05:00:20 +02:00
|
|
|
# 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.
|
|
|
|
|
2008-05-28 16:06:31 +02:00
|
|
|
# SBCL needs an existing Common Lisp system to build it...
|
|
|
|
# In theory CLisp, CMUCL, OpenMCL, and SBCL itself should work.
|
|
|
|
# In practice, CLisp has been a PITA, while CMUCL and OpenMCL
|
|
|
|
# haven't been ported to NetBSD. That leaves SBCL itself to
|
|
|
|
# do the build, so pull in a working binary package of SBCL
|
|
|
|
# along with the sources when building.
|
|
|
|
|
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
|
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}/
|
2005-06-23 05:00:20 +02:00
|
|
|
|
2008-05-28 16:06:31 +02:00
|
|
|
SUBST_CLASSES+= fix-paths
|
|
|
|
SUBST_STAGE.fix-paths= pre-configure
|
|
|
|
SUBST_MESSAGE.fix-paths=fixing pathnames
|
|
|
|
SUBST_FILES.fix-paths= install.sh src/runtime/runtime.c doc/sbcl.1
|
|
|
|
SUBST_SED.fix-paths= -e 's,@PREFIX@,${PREFIX},g'
|
2005-06-23 05:00:20 +02:00
|
|
|
|
2008-05-28 16:06:31 +02:00
|
|
|
SUBST_CLASSES+= fix-gtar
|
|
|
|
SUBST_STAGE.fix-gtar= pre-configure
|
|
|
|
SUBST_MESSAGE.fix-gtar= fixing gtar references
|
|
|
|
SUBST_FILES.fix-gtar= contrib/asdf-install/installer.lisp
|
2008-06-26 01:42:19 +02:00
|
|
|
SUBST_SED.fix-gtar= -e 's,@GTAR@,${GTAR},g'
|
2005-06-23 05:00:20 +02:00
|
|
|
|
|
|
|
do-build:
|
2008-05-28 16:06:31 +02:00
|
|
|
export SBCL_HOME=${WRKDIR}/lib/sbcl/ \
|
|
|
|
&& cd ${WRKSRC} \
|
|
|
|
&& ${SH} make.sh ${WRKDIR}/bin/sbcl
|
|
|
|
|
|
|
|
# Rather not do this, but the file names seem to be hash values of
|
|
|
|
# timestamps or something and the pkgsrc system does *not* like
|
|
|
|
# randomly named and always changing file names
|
|
|
|
post-build:
|
|
|
|
${RM} -rf ${WRKSRC}/contrib/sb-cover/test-output
|
2005-06-23 05:00:20 +02:00
|
|
|
|
|
|
|
do-install:
|
2008-05-28 16:06:31 +02:00
|
|
|
cd ${WRKSRC} \
|
|
|
|
&& INSTALL_ROOT=${PREFIX} \
|
|
|
|
MAN_DIR=${PREFIX}/${PKGMANDIR} \
|
|
|
|
${SH} install.sh
|
2005-06-23 05:00:20 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|