2003-01-15 11:25:05 +00:00
|
|
|
# New ports collection makefile for: sbcl
|
|
|
|
# Date created: 2002-11-26
|
|
|
|
# Whom: des
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= sbcl
|
2005-10-08 18:21:19 +00:00
|
|
|
PORTVERSION= 0.9.5
|
2003-01-15 11:25:05 +00:00
|
|
|
CATEGORIES= lang
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= sbcl
|
|
|
|
DISTFILES= ${DISTNAME}-source${EXTRACT_SUFX}
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
DISTFILES+= ${DISTNAME}-html${EXTRACT_SUFX}
|
|
|
|
.endif
|
|
|
|
|
2005-09-28 14:06:33 +00:00
|
|
|
MAINTAINER= aeacides@gmail.com
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= A Common Lisp development system derived from the CMU CL system
|
2003-01-15 11:25:05 +00:00
|
|
|
|
|
|
|
# If you have a previous version of SBCL installed, you can use it
|
|
|
|
# instead of CMUCL to build the port, then deinstall it before
|
|
|
|
# installing the new version.
|
|
|
|
.if defined(WITH_SBCL)
|
|
|
|
LISP_CMD= ""
|
|
|
|
.else
|
|
|
|
BUILD_DEPENDS= lisp:${PORTSDIR}/lang/cmucl
|
|
|
|
LISP_CMD= "lisp -noinit -batch"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
|
|
|
|
# Can currently only bootstrap using cmucl, which is i386-only
|
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
|
2004-06-08 08:40:03 +00:00
|
|
|
MAN1= sbcl.1
|
2004-01-14 15:15:39 +00:00
|
|
|
|
2005-10-08 18:21:19 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} >= 502124
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-contrib_asdf-install_installer.lisp
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${OSVERSION} >= 600022
|
|
|
|
BUILD_DEPENDS+= gtar:${PORTSDIR}/archivers/gtar
|
|
|
|
.endif
|
|
|
|
|
2004-01-14 15:15:39 +00:00
|
|
|
post-extract:
|
|
|
|
(${FIND} ${WRKSRC} -type d -name CVS -print0 | ${XARGS} -0 ${RM} -rf)
|
2003-01-15 11:25:05 +00:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
(cd ${WRKSRC} && ${SH} make.sh ${LISP_CMD})
|
|
|
|
|
|
|
|
do-install:
|
2004-01-14 15:15:39 +00:00
|
|
|
(cd ${WRKSRC} && ${SETENV} INSTALL_ROOT=${PREFIX} \
|
2004-06-08 08:40:03 +00:00
|
|
|
MAN_DIR=${PREFIX}/man DOC_DIR=${DOCSDIR} \
|
2004-10-25 23:31:12 +00:00
|
|
|
INFO_DIR=${DOCSDIR}/info NO_DOCS=${NO_DOCS} \
|
|
|
|
${SH} install.sh)
|
|
|
|
# sbcl creates these directories even when they're not needed
|
2005-10-08 18:21:19 +00:00
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
${RMDIR} ${DOCSDIR}/html
|
2003-01-15 11:25:05 +00:00
|
|
|
.endif
|
2005-10-08 18:21:19 +00:00
|
|
|
# we do not build the documentation
|
|
|
|
# perhaps this should be configurable
|
|
|
|
${RMDIR} ${DOCSDIR}/info
|
|
|
|
|
|
|
|
test:
|
|
|
|
(cd ${WRKSRC}/tests && ${SH} run-tests.sh)
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
${FIND} ${WRKSRC} -name '*.orig' -delete
|
2003-01-15 11:25:05 +00:00
|
|
|
|
2005-10-08 18:21:19 +00:00
|
|
|
.include <bsd.port.post.mk>
|