talimat 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Tanım: OGRE için çok katmanlı ve üst üste bindirilebilir bir GUI Sistemi
  2. # URL: http://mygui.info/
  3. # Paketçi: Cihan_Alkan
  4. # Gerekler: boost cmake doxygen graphviz dejavu-ttf ogre ois
  5. # Grup: geliştirme
  6. isim=mygui
  7. surum=3.2.2
  8. devir=1
  9. kaynak=(https://github.com/MyGUI/mygui/archive/MyGUI$surum.tar.gz)
  10. derle() {
  11. cd $SRC/mygui-MyGUI$surum
  12. sed -i 's:"bin:"../opt/MYGUI:' CMake/Utils/MyGUIConfigTargets.cmake
  13. sed -i -e 's:../share:/usr/share:' \
  14. -e 's:"bin":"../opt/MYGUI":' \
  15. CMake/InstallResources.cmake
  16. sed -i '71 i set(MYGUI_GCC_VISIBILITY_FLAGS "")' CMakeLists.txt
  17. sed -i 's/\${OIS_LIBRARIES}/${OIS_LIBRARIES} boost_system/g' Common/CMakeLists.txt
  18. mkdir -p build
  19. cd build
  20. export PKG_CONFIG_PATH="/usr/share/OGRE/lib/pkgconfig:$PKG_CONFIG_PATH"
  21. cmake .. \
  22. -DCMAKE_INSTALL_PREFIX=/usr \
  23. -DMYGUI_INSTALL_SAMPLES=TRUE \
  24. -DMYGUI_INSTALL_TOOLS=TRUE \
  25. -DMYGUI_INSTALL_DOCS=TRUE \
  26. -DMYGUI_INSTALL_MEDIA=TRUE \
  27. -DFREETYPE_INCLUDE_DIR=/usr/include/freetype2/ \
  28. -DMYGUI_BUILD_DEMOS=FALSE \
  29. -DMYGUI_BUILD_TOOLS=FALSE \
  30. -DCMAKE_BUILD_TYPE=Release \
  31. -DMYGUI_RENDERSYSTEM=7 \
  32. -DBUILD_SHARED_LIBS=TRUE
  33. make
  34. make api-docs
  35. make DESTDIR="$PKG" install
  36. install -d $PKG/usr/share/doc/
  37. cp -r Docs/html $PKG/usr/share/doc/MYGUI
  38. }