2014-08-24 18:45:32 +02:00
|
|
|
# Template file for 'sbcl'
|
|
|
|
pkgname=sbcl
|
2014-09-06 16:07:22 +02:00
|
|
|
version=1.2.3
|
|
|
|
revision=1
|
2014-08-25 15:55:18 +02:00
|
|
|
makedepends="zlib-devel"
|
2014-08-25 02:51:44 +02:00
|
|
|
conf_files="/etc/sbclrc"
|
2014-08-24 18:45:32 +02:00
|
|
|
short_desc="Steel Bank Common Lisp"
|
|
|
|
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
|
|
|
license="custom"
|
|
|
|
homepage="http://www.sbcl.org/"
|
|
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}-source.tar.bz2"
|
2014-09-06 16:07:22 +02:00
|
|
|
checksum=d2c85d5843ad3210f1f3b8b670d7fb4acb5fc6ed8692a00be0be77dad251e253
|
2014-08-24 18:45:32 +02:00
|
|
|
nocross=yes
|
|
|
|
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
x86_64*)
|
2014-09-06 16:07:22 +02:00
|
|
|
distfiles+=" ${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-1.2.3-x86-64-linux-binary.tar.bz2"
|
|
|
|
checksum+=" 57cf85cfa43718d84761f2ea6912a02f83c0d77b7b020394aed14afbea9e97c0"
|
2014-08-24 18:45:32 +02:00
|
|
|
;;
|
|
|
|
i686*)
|
|
|
|
distfiles+=" ${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-1.0.58-x86-linux-binary.tar.bz2"
|
|
|
|
checksum+=" a2195fce096fd7c64acef60ca496a29d703afc61eb39c366fdd9e56dc8982f84"
|
|
|
|
;;
|
|
|
|
arm*)
|
|
|
|
distfiles+=" ${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-1.2.1-armhf-linux-binary.tar.bz2"
|
|
|
|
checksum+=" c3fd37ea204cdf7433fa4f688d21f91b71ea01343acab39caca6c4a2ecaf6544"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
export CFLAGS+=" -D_GNU_SOURCE -fno-omit-frame-pointer -DSBCL_HOME=/usr/lib/sbcl"
|
|
|
|
export LINKFLAGS="$LDFLAGS"
|
|
|
|
bash make.sh \
|
|
|
|
"bash ../sbcl-*-linux/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \
|
|
|
|
--without-sb-test --with-sb-core-compression --prefix=/usr
|
|
|
|
make -C doc/manual info
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
SBCL_HOME="" INSTALL_ROOT="$DESTDIR/usr" sh install.sh
|
|
|
|
vlicense COPYING LICENSE
|
2014-08-25 02:51:44 +02:00
|
|
|
vconf ${FILESDIR}/sbclrc
|
|
|
|
}
|
|
|
|
|
|
|
|
sbcl-source_package() {
|
|
|
|
noarch=yes
|
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
|
|
short_desc+=" -- source files"
|
|
|
|
pkg_install() {
|
|
|
|
cd $wrksrc
|
|
|
|
./clean.sh
|
|
|
|
vmkdir usr/lib/sbcl
|
|
|
|
vcopy src usr/lib/sbcl
|
|
|
|
}
|
2014-08-24 18:45:32 +02:00
|
|
|
}
|