From 6185a5ceaa95bc569a761643a339e2e39054eac1 Mon Sep 17 00:00:00 2001 From: milisbir Date: Sun, 18 Mar 2018 15:23:05 +0200 Subject: [PATCH] btogre --- talimatname/genel/b/btogre/BtOgre.cpp.patch | 5 ++++ .../genel/b/btogre/cmake-targets.patch | 30 +++++++++++++++++++ talimatname/genel/b/btogre/talimat | 25 ++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 talimatname/genel/b/btogre/BtOgre.cpp.patch create mode 100644 talimatname/genel/b/btogre/cmake-targets.patch create mode 100644 talimatname/genel/b/btogre/talimat diff --git a/talimatname/genel/b/btogre/BtOgre.cpp.patch b/talimatname/genel/b/btogre/BtOgre.cpp.patch new file mode 100644 index 000000000..aea5ba604 --- /dev/null +++ b/talimatname/genel/b/btogre/BtOgre.cpp.patch @@ -0,0 +1,5 @@ +353c353,354 +< trimesh->addTriangle(vertexPos[0], vertexPos[1], vertexPos[2]); +--- +> // Create continuous mesh. +> trimesh->addTriangle(vertexPos[0], vertexPos[1], vertexPos[2], true); diff --git a/talimatname/genel/b/btogre/cmake-targets.patch b/talimatname/genel/b/btogre/cmake-targets.patch new file mode 100644 index 000000000..656ebebad --- /dev/null +++ b/talimatname/genel/b/btogre/cmake-targets.patch @@ -0,0 +1,30 @@ +commit 05cdf41dd6937fb02031727c8a5735aca70be439 +Author: Alexander Hirsch <1zeeky@gmail.com> +Date: Thu Feb 21 04:00:41 2013 +0100 + + add cmake install targets + +diff --git a/BtOgreConfig.cmake b/BtOgreConfig.cmake +new file mode 100644 +index 0000000..d29444d +--- /dev/null ++++ b/BtOgreConfig.cmake +@@ -0,0 +1,2 @@ ++find_path(BtOgre_INCLUDE_DIR BtOgreGP.h HINTS "/usr/include/BtOgre" "/usr/include") ++find_library(BtOgre_LIBRARY NAMES BtOgre libBtOgre HINTS "/usr/lib") +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 4fe3d14..6d44be4 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -15,3 +15,11 @@ include_directories( + + add_library(BtOgre STATIC BtOgre.cpp) + target_link_libraries(BtOgre ${BULLET_LIBRARIES} ${OGRE_LIBRARIES}) ++ ++file(GLOB BtOgre_HEADERS "${PROJECT_SOURCE_DIR}/include/*.h") ++set_target_properties(BtOgre PROPERTIES PUBLIC_HEADER "${BtOgre_HEADERS}") ++ ++install(TARGETS BtOgre ++ PUBLIC_HEADER DESTINATION include/BtOgre ++ ARCHIVE DESTINATION lib) ++install(FILES BtOgreConfig.cmake DESTINATION lib/cmake/BtOgre) diff --git a/talimatname/genel/b/btogre/talimat b/talimatname/genel/b/btogre/talimat new file mode 100644 index 000000000..0c558516c --- /dev/null +++ b/talimatname/genel/b/btogre/talimat @@ -0,0 +1,25 @@ +# Tanım: İnce bir Bullet-Ogre bağlantısı. +# URL: http://www.ogre3d.org/forums/viewtopic.php?f=5&t=46856 +# Paketçi: Cihan_Alkan +# Gerekler: cmake boost bullet ogre +# Grup: geliştirme + +isim=btogre +surum=6266297 +devir=1 +kaynak=(cmake-targets.patch + BtOgre.cpp.patch) + +derle() { + git_indir https://github.com/nikki93/btogre $isim + + cd "${SRC}/${isim}" + + patch -Np1 -i "${SRC}/cmake-targets.patch" + patch "${SRC}/${isim}/BtOgre.cpp" "${SRC}/BtOgre.cpp.patch" + cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr \ + -DOGRE_BUILD=/opt/OGRE-1.9 \ + -DOGRE_LIB_DIR=/opt/OGRE-1.9/lib + make + make DESTDIR="${PKG}" install +}