talimat 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # Tanım: Yüksek performanslı bir derleyici (Steel Bank Common Lisp)
  2. # URL: http://www.sbcl.org/
  3. # Paketçi: milisarge
  4. # Gerekler: clisp
  5. # Grup: geliştirme
  6. isim=sbcl
  7. surum=1.3.17
  8. devir=1
  9. kaynak=(https://downloads.sourceforge.net/project/sbcl/sbcl/1.3.17/sbcl-$surum-source.tar.bz2
  10. arch-fixes.lisp
  11. customize-target-features.lisp)
  12. derle() {
  13. cd "$SRC/$isim-$surum"
  14. export CFLAGS+=" -D_GNU_SOURCE -fno-omit-frame-pointer -DSBCL_HOME=/usr/lib/sbcl"
  15. export GNUMAKE="make"
  16. # build system uses LINKFLAGS and OS_LIBS to build LDFLAGS
  17. export LINKFLAGS="$LDFLAGS"
  18. unset LDFLAGS
  19. unset MAKEFLAGS
  20. enable_disable_largefile=enable
  21. # Make a multi-threaded SBCL, disable LARGEFILE
  22. #cp $SRC/customize-target-features.lisp .
  23. bash make.sh clisp --prefix=/usr --fancy
  24. # cannot have both SBCL_HOME and INSTALL_ROOT
  25. SBCL_HOME="" INSTALL_ROOT="$PKG/usr" sh install.sh
  26. src/runtime/sbcl --core output/sbcl.core --script "${SRC}/arch-fixes.lisp"
  27. mv sbcl-new.core "${PKG}/usr/lib/sbcl/sbcl.core"
  28. # sources
  29. mkdir -p "$PKG/usr/share/sbcl-source"
  30. cp -R -t "$PKG/usr/share/sbcl-source" "$SRC/$isim-$surum/"{src,contrib}
  31. # license
  32. install -D -m644 "$SRC/$isim-$surum/COPYING" "$PKG/usr/share/licenses/$isim/license.txt"
  33. # drop unwanted files
  34. find "$PKG" \( -name Makefile -o -name .cvsignore \) -delete
  35. find "$PKG/usr/share/sbcl-source" -type f \( -name \*.fasl -o -name \*.o -o -name \*.log -o -name \*.so -o -name a.out \) -delete
  36. rm "$PKG/usr/share/sbcl-source/src/runtime/sbcl"{,.nm}
  37. }