summaryrefslogtreecommitdiff
path: root/lang/sbcl/Makefile
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-01-11 07:41:57 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-01-11 07:41:57 +0000
commit604e514e2fb112177031ca4963f8fdd814269636 (patch)
tree78ba9bc797dd1ee277cf25e058618003b42c7add /lang/sbcl/Makefile
parentMigrate to gfortran42. (diff)
-Use native binaries to bootstrap on amd64 not to require i386 binary
compatibility. - This would fix build failure on pointyhat. PR: ports/107804 Submitted by: NIIMI Satoshi <sa2c@sa2c.net> (maintainer)
Notes
Notes: svn path=/head/; revision=182065
Diffstat (limited to 'lang/sbcl/Makefile')
-rw-r--r--lang/sbcl/Makefile24
1 files changed, 15 insertions, 9 deletions
diff --git a/lang/sbcl/Makefile b/lang/sbcl/Makefile
index 1f0221308df8..d7abc5717ad6 100644
--- a/lang/sbcl/Makefile
+++ b/lang/sbcl/Makefile
@@ -7,6 +7,7 @@
PORTNAME= sbcl
PORTVERSION= 1.0.1
+PORTREVISION= 1
CATEGORIES= lang lisp
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= sbcl
@@ -35,17 +36,22 @@ INFODIR= ${PREFIX}/${INFO_PATH}
LISP_CMD= ""
.else
BOOT_VERSION= ${PORTVERSION}
-BOOT_ARCH= x86
-BOOT_OS= freebsd4
-BOOT_DISTNAME= ${PORTNAME}-${BOOT_VERSION}-${BOOT_ARCH}-${BOOT_OS}
-DISTFILES+= ${BOOT_DISTNAME}-binary${EXTRACT_SUFX}
-LISP_CMD= "${WRKDIR}/${BOOT_DISTNAME}/src/runtime/sbcl --core ${WRKDIR}/${BOOT_DISTNAME}/output/sbcl.core --disable-debugger --userinit /dev/null --sysinit /dev/null"
-.if ${OSVERSION} >= 500000
-.if ${ARCH} == i386
-BUILD_DEPENDS+= ${LOCALBASE}/lib/compat/libc.so.4:${PORTSDIR}/misc/compat4x
+.if ${.TARGETS} == makesum
+BOOT_ARCH_OS_LIST= x86-freebsd4 x86-64-freebsd5
+.elif ${ARCH} == i386
+BOOT_ARCH_OS_LIST= x86-freebsd4
.elif ${ARCH} == amd64
-BUILD_DEPENDS+= ${LOCALBASE}/lib32/compat/libc.so.4:${PORTSDIR}/misc/compat4x
+BOOT_ARCH_OS_LIST= x86-64-freebsd5
.endif
+.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
+LISP_CMD= "${WRKDIR}/${BOOT_DISTNAME}/src/runtime/sbcl --core ${WRKDIR}/${BOOT_DISTNAME}/output/sbcl.core --disable-debugger --userinit /dev/null --sysinit /dev/null"
+.if ${ARCH} == i386 && ${OSVERSION} >= 500000
+BUILD_DEPENDS+= ${LOCALBASE}/lib/compat/libc.so.4:${PORTSDIR}/misc/compat4x
+.elif ${ARCH} == amd64 && ${OSVERSION} >= 600000
+BUILD_DEPENDS+= ${LOCALBASE}/lib/compat/libc.so.5:${PORTSDIR}/misc/compat5x
.endif
.endif