diff --git a/ogre-caelum/all/conandata.yml b/ogre-caelum/all/conandata.yml new file mode 100644 index 0000000..0182a18 --- /dev/null +++ b/ogre-caelum/all/conandata.yml @@ -0,0 +1,9 @@ +sources: + "0.6.4": + url: "https://github.com/OGRECave/ogre-caelum/archive/94913d2040a41148c14001c33a0bdc0f100842f8.zip" + sha256: "9de4159ae8050fd0858b3c1c09005aa50b36079a3a06accfb67203669be9a09e" +patches: + "0.6.4": + - patch_file: "patches/0.6.4/CMakeLists.txt.patch" +requirements: + - "ogre3d/[1.x]@anotherfoxguy/stable" \ No newline at end of file diff --git a/ogre-caelum/all/conanfile.py b/ogre-caelum/all/conanfile.py new file mode 100644 index 0000000..441d57c --- /dev/null +++ b/ogre-caelum/all/conanfile.py @@ -0,0 +1,33 @@ +from conans import ConanFile, CMake, tools + + +class CaelumConan(ConanFile): + name = "ogre3d-caelum" + license = "GNU Lesser General Public License v2.1" + url = "https://github.com/RigsOfRods/Caelum/issues" + description = "Caelum is a library which provides cross-platform socket abstraction" + 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-caelum/all/patches/0.6.4/CMakeLists.txt.patch b/ogre-caelum/all/patches/0.6.4/CMakeLists.txt.patch new file mode 100644 index 0000000..79bfd4f --- /dev/null +++ b/ogre-caelum/all/patches/0.6.4/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) +@@ -18,7 +19,7 @@ + INCLUDE(CheckCSourceCompiles) + + # define the project +-project(Caelum VERSION 0.6.3) ++project(Caelum VERSION 0.6.4) + + # some versioning things + SET(LIB_MAJOR_VERSION ${Caelum_VERSION_MAJOR}) \ No newline at end of file diff --git a/ogre-caelum/config.yml b/ogre-caelum/config.yml new file mode 100644 index 0000000..bc61499 --- /dev/null +++ b/ogre-caelum/config.yml @@ -0,0 +1,3 @@ +versions: + "3.4.0": + folder: all