milis/talimatname/genel/s/sbcl/talimat

53 lines
1.4 KiB
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: Steel Bank Common Lisp
2017-05-13 05:08:22 +02:00
# URL: http://www.sbcl.org/
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler: clisp
2017-05-13 05:08:22 +02:00
2017-10-28 14:10:23 +02:00
isim=sbcl
surum=1.3.17
devir=1
kaynak=(https://downloads.sourceforge.net/project/sbcl/sbcl/1.3.17/sbcl-$surum-source.tar.bz2
2017-05-13 05:08:22 +02:00
arch-fixes.lisp
customize-target-features.lisp)
2017-10-27 23:59:41 +02:00
derle() {
2017-10-28 14:10:23 +02:00
cd "$SRC/$isim-$surum"
2017-05-13 05:08:22 +02:00
export CFLAGS+=" -D_GNU_SOURCE -fno-omit-frame-pointer -DSBCL_HOME=/usr/lib/sbcl"
export GNUMAKE="make"
# build system uses LINKFLAGS and OS_LIBS to build LDFLAGS
export LINKFLAGS="$LDFLAGS"
unset LDFLAGS
unset MAKEFLAGS
enable_disable_largefile=enable
# Make a multi-threaded SBCL, disable LARGEFILE
#cp $SRC/customize-target-features.lisp .
bash make.sh clisp --prefix=/usr --fancy
# cannot have both SBCL_HOME and INSTALL_ROOT
SBCL_HOME="" INSTALL_ROOT="$PKG/usr" sh install.sh
src/runtime/sbcl --core output/sbcl.core --script "${SRC}/arch-fixes.lisp"
mv sbcl-new.core "${PKG}/usr/lib/sbcl/sbcl.core"
# sources
mkdir -p "$PKG/usr/share/sbcl-source"
2017-10-28 14:10:23 +02:00
cp -R -t "$PKG/usr/share/sbcl-source" "$SRC/$isim-$surum/"{src,contrib}
2017-05-13 05:08:22 +02:00
# license
2017-10-28 14:10:23 +02:00
install -D -m644 "$SRC/$isim-$surum/COPYING" "$PKG/usr/share/licenses/$isim/license.txt"
2017-05-13 05:08:22 +02:00
# drop unwanted files
find "$PKG" \( -name Makefile -o -name .cvsignore \) -delete
find "$PKG/usr/share/sbcl-source" -type f \( -name \*.fasl -o -name \*.o -o -name \*.log -o -name \*.so -o -name a.out \) -delete
rm "$PKG/usr/share/sbcl-source/src/runtime/sbcl"{,.nm}
}