diff --git a/ogre-pagedgeometry/all/conandata.yml b/ogre-pagedgeometry/all/conandata.yml new file mode 100644 index 0000000..8d84cd4 --- /dev/null +++ b/ogre-pagedgeometry/all/conandata.yml @@ -0,0 +1,9 @@ +sources: + "1.2.1": + url: "https://github.com/OGRECave/ogre-pagedgeometry/archive/7c9295f771e8c7973efc04d53283978ccd44fc9b.zip" + sha256: "513043eecf1aaf6f8b2335c953b0664128aa492007fe3d93068e5f4be436093a" +patches: + "1.2.1": + - patch_file: "patches/1.2.1/CMakeLists.txt.patch" +requirements: + - "ogre3d/[1.x]@anotherfoxguy/stable" \ No newline at end of file diff --git a/ogre-pagedgeometry/all/conanfile.py b/ogre-pagedgeometry/all/conanfile.py new file mode 100644 index 0000000..b4a06eb --- /dev/null +++ b/ogre-pagedgeometry/all/conanfile.py @@ -0,0 +1,33 @@ +from conans import ConanFile, CMake, tools + + +class CaelumConan(ConanFile): + name = "ogre3d-pagedgeometry" + license = "GNU Lesser General Public License v2.1" + url = "https://github.com/RigsOfRods/Caelum/issues" + description = "PagedGeometry is a plugin for OGRE for rendering of dense vegetation " + settings = "os", "compiler", "build_type", "arch" + generators = "cmake_paths" + exports_sources = "patches/**" + + def requirements(self): + for req in self.conan_data["requirements"]: + self.requires(req) + + def source(self): + tools.get(**self.conan_data["sources"][self.version], strip_root=True) + for patch in self.conan_data["patches"][self.version]: + tools.patch(**patch) + + def build(self): + cmake = CMake(self) + cmake.configure() + cmake.build() + + def package(self): + cmake = CMake(self) + cmake.install() + + def package_info(self): + self.cpp_info.includedirs = ['include/Caelum'] + self.cpp_info.libs = tools.collect_libs(self) diff --git a/ogre-pagedgeometry/all/patches/1.2.1/CMakeLists.txt.patch b/ogre-pagedgeometry/all/patches/1.2.1/CMakeLists.txt.patch new file mode 100644 index 0000000..0e22691 --- /dev/null +++ b/ogre-pagedgeometry/all/patches/1.2.1/CMakeLists.txt.patch @@ -0,0 +1,19 @@ +--- CMakeLists.txt ++++ CMakeLists.txt +@@ -9,6 +9,7 @@ + cmake_minimum_required( VERSION 3.0.2 ) + set( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake ) + ++include(${CMAKE_BINARY_DIR}/conan_paths.cmake) + + # add some functions we use that are shipped with cmake + INCLUDE(CheckLibraryExists) +@@ -20,7 +21,7 @@ + # some versioning things + SET(LIB_MAJOR_VERSION "1") + SET(LIB_MINOR_VERSION "2") +-SET(LIB_BUILD_VERSION "0") ++SET(LIB_BUILD_VERSION "1") + SET(LIB_VERSION "${LIB_MAJOR_VERSION}.${LIB_MINOR_VERSION}.${LIB_BUILD_VERSION}") + IF(NOT DEFINED LIB_INSTALL_DIR) + SET(LIB_INSTALL_DIR "lib${LIB_SUFFIX}") \ No newline at end of file diff --git a/ogre-pagedgeometry/config.yml b/ogre-pagedgeometry/config.yml new file mode 100644 index 0000000..b230418 --- /dev/null +++ b/ogre-pagedgeometry/config.yml @@ -0,0 +1,3 @@ +versions: + "1.2.1": + folder: all