2003-01-15 11:25:05 +00:00
|
|
|
# New ports collection makefile for: sbcl
|
|
|
|
# Date created: 2002-11-26
|
|
|
|
# Whom: des
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
2008-05-04 04:47:34 +00:00
|
|
|
# Note: If you update this port make sure you create the distfinfo for all
|
|
|
|
# versions: sbcl-1.v.v-x86-64-freebsd and sbcl-1.v.v-x86-freebsd
|
|
|
|
#
|
2003-01-15 11:25:05 +00:00
|
|
|
|
|
|
|
PORTNAME= sbcl
|
2008-04-30 01:55:54 +00:00
|
|
|
PORTVERSION= 1.0.16
|
2008-05-04 04:47:34 +00:00
|
|
|
PORTREVISION= 1
|
2005-10-16 14:48:09 +00:00
|
|
|
CATEGORIES= lang lisp
|
2007-05-27 17:39:28 +00:00
|
|
|
MASTER_SITES= SF
|
2003-01-15 11:25:05 +00:00
|
|
|
DISTFILES= ${DISTNAME}-source${EXTRACT_SUFX}
|
|
|
|
|
2008-05-14 14:39:23 +00:00
|
|
|
MAINTAINER= stas@FreeBSD.org
|
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
|
|
|
|
2005-11-07 15:46:15 +00:00
|
|
|
EXTRACT_AFTER_ARGS= | ${TAR} -xf - --exclude */CVS/*
|
|
|
|
|
2007-05-27 17:39:28 +00:00
|
|
|
# More platforms are supported, but on Linux.
|
2006-12-02 00:20:41 +00:00
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
2007-05-27 17:39:28 +00:00
|
|
|
ONLY_FOR_ARCHS_REASON= is a native code compiler, and has not been ported to this architecture yet
|
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
CFLAGS+= -DSBCL_HOME=\\"${PREFIX}/lib/sbcl/\\"
|
|
|
|
|
|
|
|
OPTIONS= SBCL "Use installed SBCL binary if available" off \
|
2007-06-04 07:45:34 +00:00
|
|
|
THREADS "Enable experimental threading support" off
|
2003-01-15 11:25:05 +00:00
|
|
|
|
2004-06-08 08:40:03 +00:00
|
|
|
MAN1= sbcl.1
|
2005-11-07 15:46:15 +00:00
|
|
|
INFO= asdf sbcl
|
|
|
|
INFODIR= ${PREFIX}/${INFO_PATH}
|
2004-01-14 15:15:39 +00:00
|
|
|
|
2005-10-08 18:21:19 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-05-27 17:39:28 +00:00
|
|
|
.if ${ARCH} == "i386"
|
|
|
|
PLIST_SUB+= I386_ONLY=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= I386_ONLY="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# If WITH_SBCL is defined, try to use existing "sbcl" first.
|
|
|
|
.if defined(WITH_SBCL) && exists(${LOCALBASE}/bin/sbcl)
|
2006-12-02 00:20:41 +00:00
|
|
|
LISP_CMD= ""
|
|
|
|
.else
|
2007-06-28 14:02:51 +00:00
|
|
|
BOOT_VERSION= 1.0.6
|
2007-03-01 10:01:15 +00:00
|
|
|
.if make(makesum)
|
2007-04-29 21:07:20 +00:00
|
|
|
BOOT_ARCH_OS_LIST= x86-freebsd x86-64-freebsd
|
2007-05-27 17:39:28 +00:00
|
|
|
.elif ${ARCH} == "i386"
|
2007-04-29 21:07:20 +00:00
|
|
|
BOOT_ARCH_OS_LIST= x86-freebsd
|
2007-06-01 11:20:21 +00:00
|
|
|
LISP_EXTRA_ARG= --dynamic-space-size 512
|
2007-05-27 17:39:28 +00:00
|
|
|
.elif ${ARCH} == "amd64"
|
2007-04-29 21:07:20 +00:00
|
|
|
BOOT_ARCH_OS_LIST= x86-64-freebsd
|
2007-06-01 11:20:21 +00:00
|
|
|
LISP_EXTRA_ARG=
|
2006-12-02 00:20:41 +00:00
|
|
|
.endif
|
2007-01-11 07:41:57 +00:00
|
|
|
.for BOOT_ARCH_OS in ${BOOT_ARCH_OS_LIST}
|
|
|
|
BOOT_DISTNAME= ${PORTNAME}-${BOOT_VERSION}-${BOOT_ARCH_OS}
|
|
|
|
DISTFILES:= ${DISTFILES} ${BOOT_DISTNAME}-binary${EXTRACT_SUFX}
|
|
|
|
.endfor
|
2007-06-01 11:20:21 +00:00
|
|
|
LISP_CMD= "${WRKDIR}/${BOOT_DISTNAME}/src/runtime/sbcl --core ${WRKDIR}/${BOOT_DISTNAME}/output/sbcl.core ${LISP_EXTRA_ARG} --disable-debugger --userinit /dev/null --sysinit /dev/null"
|
2007-04-29 21:07:20 +00:00
|
|
|
.if ${OSVERSION} >= 600000
|
2007-01-11 07:41:57 +00:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/compat/libc.so.5:${PORTSDIR}/misc/compat5x
|
2005-12-28 13:35:28 +00:00
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2005-11-07 15:46:15 +00:00
|
|
|
post-patch:
|
2007-05-27 17:39:28 +00:00
|
|
|
@${REINPLACE_CMD} -E -e 's|(CFLAGS =) .*|\1 ${CFLAGS}|' \
|
2005-11-08 18:47:52 +00:00
|
|
|
${WRKSRC}/src/runtime/GNUmakefile
|
2007-05-27 17:39:28 +00:00
|
|
|
@${FIND} ${WRKSRC} -name '*.orig' -o -name '*.bak' -delete
|
2006-12-02 00:20:41 +00:00
|
|
|
.if defined(WITH_THREADS)
|
|
|
|
@${CP} ${FILESDIR}/customize-target-features.lisp ${WRKSRC}
|
|
|
|
.endif
|
2003-01-15 11:25:05 +00:00
|
|
|
|
|
|
|
do-build:
|
2006-12-02 00:20:41 +00:00
|
|
|
@(cd ${WRKSRC} && ${SETENV} INSTALL_ROOT=${PREFIX} \
|
2005-11-07 15:46:15 +00:00
|
|
|
${SH} make.sh ${LISP_CMD})
|
2007-05-27 17:39:28 +00:00
|
|
|
@${RM} -rf ${WRKSRC}/contrib/sb-cover/test-output
|
2006-12-02 00:20:41 +00:00
|
|
|
@(cd ${WRKSRC}/doc/manual && \
|
2005-11-07 15:46:15 +00:00
|
|
|
${GMAKE} MAKEINFO='makeinfo --no-split' info)
|
2003-01-15 11:25:05 +00:00
|
|
|
|
|
|
|
do-install:
|
2004-01-14 15:15:39 +00:00
|
|
|
(cd ${WRKSRC} && ${SETENV} INSTALL_ROOT=${PREFIX} \
|
2005-11-07 15:46:15 +00:00
|
|
|
MAN_DIR=${PREFIX}/man DOC_DIR=${DOCSDIR} \
|
2007-05-27 17:39:28 +00:00
|
|
|
INFO_DIR=${INFODIR} ${SH} install.sh)
|
2005-11-07 15:46:15 +00:00
|
|
|
@${RMDIR} ${DOCSDIR}/html
|
2005-10-08 18:21:19 +00:00
|
|
|
|
2005-11-07 15:46:15 +00:00
|
|
|
test: build
|
2005-10-08 18:21:19 +00:00
|
|
|
(cd ${WRKSRC}/tests && ${SH} run-tests.sh)
|
|
|
|
|
2007-05-27 17:39:28 +00:00
|
|
|
.if defined(WITH_THREADS) && ${OSVERSION} < 600000
|
2006-12-02 00:20:41 +00:00
|
|
|
pre-everything::
|
|
|
|
@${ECHO_MSG} "====>"
|
|
|
|
@${ECHO_MSG} "====> WARNING: Current threading support is very unstable on FreeBSD 5.x."
|
|
|
|
@${ECHO_MSG} "====>"
|
|
|
|
.endif
|
|
|
|
|
2005-10-08 18:21:19 +00:00
|
|
|
.include <bsd.port.post.mk>
|