recipe 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. # Build recipe for clisp.
  2. #
  3. # Copyright (c) 2017 MMPG, <mmpg@vp.pl>.
  4. # Copyright (c) 2017 Matias Fonzo, <selk@dragora.org>.
  5. #
  6. # Licensed under the Apache License, Version 2.0 (the "License");
  7. # you may not use this file except in compliance with the License.
  8. # You may obtain a copy of the License at
  9. #
  10. # http://www.apache.org/licenses/LICENSE-2.0
  11. #
  12. # Unless required by applicable law or agreed to in writing, software
  13. # distributed under the License is distributed on an "AS IS" BASIS,
  14. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. # See the License for the specific language governing permissions and
  16. # limitations under the License.
  17. program=clisp
  18. version=2.49
  19. release=1
  20. tarname=${program}-${version}.tar.bz2
  21. # Remote source(s)
  22. fetch=http://ftp.gnu.org/pub/gnu/clisp/release/${version}/$tarname
  23. description="
  24. A Common Lisp implementation.
  25. In computing, CLISP is an implementation of the programming language
  26. Common Lisp originally developed by Bruno Haible and Michael Stoll for
  27. the Atari ST.
  28. LISP includes an interpreter, a bytecode compiler, debugger, socket
  29. interface, high-level foreign language interface, strong
  30. internationalization support, and two object systems:
  31. Common Lisp Object System (CLOS) and metaobject protocol (MOP).
  32. It is written in C and Common Lisp. It is now part of the GNU Project
  33. and is free software, available under the terms of the GNU General
  34. Public License (GPL).
  35. "
  36. hompage=http://clisp.org
  37. license=GPLv2
  38. # Source documentation
  39. docs="ANNOUNCE COPYRIGHT GNU-GPL SUMMARY"
  40. docsdir="${docdir}/${program}-${version}"
  41. build()
  42. {
  43. set -e
  44. unpack "${tardir}/$tarname"
  45. cd "$srcdir"
  46. # Set sane permissions
  47. chmod -R u+w,go-w,a+rX-s .
  48. # Apply to fix build failure with current readline (Thanks to BLFS)
  49. patch -Np1 -i \
  50. "${worktree}/patches/clisp/clisp-2.49-readline7_fixes-1.patch"
  51. # Update for hosts based on musl
  52. cp -f "${worktree}/archive/common/config.guess" src/build-aux/config.guess
  53. cp -f "${worktree}/archive/common/config.sub" src/build-aux/config.sub
  54. # Create a separate build directory
  55. rm -rf build
  56. mkdir build
  57. cd build
  58. ../configure --srcdir=../ \
  59. --prefix=/usr \
  60. --docdir=$docsdir \
  61. --with-libsigsegv-prefix=/usr \
  62. --build="$(cc -dumpmachine)"
  63. make -j${jobs}
  64. make -j${jobs} DESTDIR="$destdir" install
  65. #./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
  66. # --prefix=/usr --build="$(cc -dumpmachine)"
  67. #cd src/
  68. #make -j${jobs}
  69. #make -j${jobs} DESTDIR="$destdir" install
  70. # Copy documentation
  71. mkdir -p "${destdir}${docsdir}"
  72. cp -p $docs "${destdir}${docsdir}/"
  73. }