recipe 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. # Build recipe for isl.
  2. #
  3. # Copyright (c) 2016-2020 Matias Fonzo, <selk@dragora.org>.
  4. #
  5. # Licensed under the Apache License, Version 2.0 (the "License");
  6. # you may not use this file except in compliance with the License.
  7. # You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. program=isl
  17. version=0.22.1
  18. release=1
  19. # Set 'outdir' for a nice and well-organized output directory
  20. outdir="${outdir}/${arch}/libs"
  21. tarname=${program}-${version}.tar.bz2
  22. # Remote source(s)
  23. fetch=http://isl.gforge.inria.fr/$tarname
  24. description="
  25. A library of integers.
  26. ISL is a library for manipulating sets and relations of integer points
  27. bounded by linear constraints. Supported operations on sets include
  28. intersection, union, set difference, emptiness check, convex hull,
  29. (integer) affine hull, integer projection, and computing the
  30. lexicographic minimum using parametric integer programming.
  31. It also includes an ILP solver based on generalized basis reduction.
  32. "
  33. homepage=http://freshmeat.net/projects/isl
  34. license=MIT
  35. # Source documentation
  36. docs="AUTHORS ChangeLog LICENSE README"
  37. docsdir="${docdir}/${program}-${version}"
  38. build()
  39. {
  40. set -e
  41. unpack "${tardir}/$tarname"
  42. cd "$srcdir"
  43. # Update for hosts based on musl
  44. cp -f "${worktree}/archive/common/config.guess" config.guess
  45. cp -f "${worktree}/archive/common/config.sub" config.sub
  46. # Set sane permissions
  47. chmod -R u+w,go-w,a+rX-s .
  48. ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
  49. $configure_args \
  50. --libdir=/usr/lib${libSuffix} \
  51. --enable-static \
  52. --enable-shared \
  53. --build="$(cc -dumpmachine)"
  54. make -j${jobs} V=1
  55. make -j${jobs} DESTDIR="$destdir" install-strip
  56. # Move misplaced file(s) for GDB
  57. mkdir -p "${destdir}/usr/share/gdb/auto-load/usr/lib${libSuffix}"
  58. mv "${destdir}/usr/lib${libSuffix}"/*-gdb.py \
  59. "${destdir}/usr/share/gdb/auto-load/usr/lib${libSuffix}"
  60. # Copy documentation
  61. mkdir -p "${destdir}${docsdir}"
  62. cp -p $docs "${destdir}${docsdir}"
  63. }