derle.sh 556 B

12345678910111213141516171819202122232425262728
  1. sed -i '/"lib64"/s/64//' Modules/GNUInstallDirs.cmake
  2. _parallel_opt() {
  3. local i n
  4. for i in $MAKEOPTS; do
  5. case "$i" in
  6. -j*) n=${i#-j};;
  7. esac;
  8. done
  9. [ -n "$n" ] && echo "--parallel $n"
  10. }
  11. # jsoncpp needs cmake to build so to avoid recursive build
  12. # dependency, we use the bundled version of jsoncpp.
  13. # Do NOT remove --no-system-jsoncpp unless you consulted
  14. # from alpine/apkbuild
  15. ./bootstrap \
  16. --prefix=/usr \
  17. --mandir=/share/man \
  18. --datadir=/share/$isim \
  19. --docdir=/share/doc/$isim \
  20. --system-libs \
  21. --no-system-jsoncpp \
  22. $(_parallel_opt)
  23. make