talimat 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Tanım: C++11'i hedef alan C++ standart kütüphanesinin yeni bir uygulaması.
  2. # URL: http://libcxx.llvm.org/
  3. # Paketçi: Cihan_Alkan
  4. # Gerekler: clang cmake python3 libunwind
  5. # Grup: kütüphane
  6. isim=libcxx
  7. surum=5.0.1
  8. devir=1
  9. kaynak=(https://releases.llvm.org/$surum/llvm-$surum.src.tar.xz
  10. https://releases.llvm.org/$surum/libcxx-$surum.src.tar.xz
  11. https://releases.llvm.org/$surum/libcxxabi-$surum.src.tar.xz)
  12. derle() {
  13. mv llvm* llvm
  14. mv libcxxabi* llvm/projects/libcxxabi
  15. mv libcxx-* llvm/projects/libcxx
  16. sed -i 's/CREDITS.TXT/CREDITS/' llvm/projects/libcxx/LICENSE.TXT
  17. sed -i 's/CREDITS.TXT/CREDITS/' llvm/projects/libcxxabi/LICENSE.TXT
  18. [[ -d build ]] || mkdir build
  19. cd build
  20. CC=clang CXX=clang++ cmake \
  21. -G "Unix Makefiles" \
  22. -DLIBCXX_ENABLE_EXPERIMENTAL_LIBRARY=On \
  23. -DLIBCXX_INSTALL_EXPERIMENTAL_LIBRARY=Off \
  24. -DCMAKE_BUILD_TYPE=Release \
  25. -DCMAKE_INSTALL_PREFIX=/usr \
  26. ${SRC}/llvm
  27. make cxx cxx_experimental
  28. make DESTDIR="${PKG}" install-libcxx
  29. install -Dm644 ${SRC}/llvm/projects/libcxx/CREDITS.TXT "${PKG}/usr/share/licenses/${isim}/CREDITS"
  30. install -Dm644 ${SRC}/llvm/projects/libcxx/LICENSE.TXT "${PKG}/usr/share/licenses/${isim}/LICENSE"
  31. make DESTDIR="${PKG}" install-libcxxabi
  32. install -Dm644 ${SRC}/build/include/c++/v1/cxxabi.h "${PKG}/usr/include/c++/v1/cxxabi.h"
  33. install -Dm644 ${SRC}/build/include/c++/v1/__cxxabi_config.h "${PKG}/usr/include/c++/v1/__cxxabi_config.h"
  34. install -Dm644 ${SRC}/llvm/projects/libcxxabi/CREDITS.TXT "${PKG}/usr/share/licenses/${isim}/CREDITS"
  35. install -Dm644 ${SRC}/llvm/projects/libcxxabi/LICENSE.TXT "${PKG}/usr/share/licenses/${isim}/LICENSE"
  36. install -Dm644 ${SRC}/build/lib/libc++experimental.a ${PKG}/usr/lib/libc++experimental.a
  37. install -Dm644 ${SRC}/llvm/projects/libcxx/CREDITS.TXT "${PKG}/usr/share/licenses/${isim}/CREDITS"
  38. install -Dm644 ${SRC}/llvm/projects/libcxx/LICENSE.TXT "${PKG}/usr/share/licenses/${isim}/LICENSE"
  39. }