diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-05-10 00:01:14 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-05-10 00:01:14 +0100 |
commit | 17e5f1ea4a2e1c5664f96480ca46348d008e8711 (patch) | |
tree | 7166d1b58a582290a4ad23ff5882cca911b8035c /media-gfx | |
parent | a0ce545d52f231499bf9f3644493113d8af58ec9 (diff) |
gentoo auto-resync : 10:05:2024 - 00:01:13
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/Manifest.gz | bin | 37994 -> 37993 bytes | |||
-rw-r--r-- | media-gfx/opencsg/Manifest | 2 | ||||
-rw-r--r-- | media-gfx/opencsg/files/opencsg-1.6.0-cmake.patch | 61 | ||||
-rw-r--r-- | media-gfx/opencsg/opencsg-1.6.0-r1.ebuild | 36 |
4 files changed, 99 insertions, 0 deletions
diff --git a/media-gfx/Manifest.gz b/media-gfx/Manifest.gz Binary files differindex 5c57bee2c6a3..b8532671867a 100644 --- a/media-gfx/Manifest.gz +++ b/media-gfx/Manifest.gz diff --git a/media-gfx/opencsg/Manifest b/media-gfx/opencsg/Manifest index 2a4611ae27e2..ead371f41bde 100644 --- a/media-gfx/opencsg/Manifest +++ b/media-gfx/opencsg/Manifest @@ -1,7 +1,9 @@ AUX opencsg-1.4.2-includepath.patch 537 BLAKE2B c54c3ff9bc802f34a92a72620fd20277d90174a3d0e69ec7d34987b387da44e37d1a6487f6c6063b555bca8c40a2d827d91b3ab0d9c0b8adbab5648fce90a639 SHA512 7ccc4b75560682ad7c3c340b8d8824d1339a8a1859f459139ad84d9a06e25072eba84a78c6d30aa4dbd72cf82465a176550a7e89b2590ccd85e4129511ad3893 +AUX opencsg-1.6.0-cmake.patch 1666 BLAKE2B 3733245ae3dacca588ef126c8d43b65b9ee0ac7cd5b3259845dedef6c5ea95a8fd7c03664020eeeb72edd91eebb56feb32541605281d6dccbfa2a3e9b79cab0f SHA512 48f3137169a15cce38e9a3d55658a0450739605ec41affa3e3fbc84ff7107515f5907a9ad9efa021234bb7bd08bd1cbd91c47895c4d21307589d635104b8b48c AUX opencsg-1.6.0-includepath.patch 514 BLAKE2B cf3b69d78543b1c45c6ecf0bc7d3c79cee8e01d05280e6f76f3ce8d2bd3b08d8d3d69c4aca2772a9acad06f6b14e7fe1a4ed09a12eb76d07524a654141659b80 SHA512 97f9886f62d8f73cafa1f62611a5b3f6c768fd4c0e1dfe5829850f39c622125482bd3b9c4b933375cf147a4b5f5d380b831ed4e966c050cea0dfb7de3c77f735 DIST OpenCSG-1.5.1.tar.gz 967182 BLAKE2B a24d7e736b58af78dfed218e7015c9a580c447b65367209fade0c90a36cf7bb638c4abe10cdf37a07c8f16d46389e92341ab72ea8d9c189e380502cbb2962d29 SHA512 aef3e785e730fd8f2ee06719d1c7a57c105e7432fb4dc6f4ad4305aabf1c7d4438ef869ae4eb840dc272b35f20c4ff296e6dd5418337230081e74ac4c91cd342 DIST OpenCSG-1.6.0.tar.gz 302547 BLAKE2B ceb99fb6558b38df0eb629cfd5e5e2b768311f026f2f42e0e35ca948761bd7c67fcfc35322d54eb6c013eded39d95ede08f634b30241ebad4231bf783f76b591 SHA512 0cbf28353aafb47738a122bd5fa8e8ab0abc616d7b3f4e5f1ee02f550a060ccfbd6569d1183fcc4e992fe9bbb49584c23aa9cc7db2a7e7c53b119544aa9589a7 EBUILD opencsg-1.5.1-r1.ebuild 1165 BLAKE2B 535c82bade697db1063d85464ea38acc104843e05288c73d89c1cc8d6a601586b5410db197ec7e1839cf40bcb7aa36b53037f44f9c6ea84193690ca0abc7b4e7 SHA512 7e3cdba506001516bfd795c9d3982d7be84cae080a12b2ca554ba5c706222dd05f18194f85993d7102f2b60af69485cae3573bb29bf2c0ea5d46abf981d379ca +EBUILD opencsg-1.6.0-r1.ebuild 686 BLAKE2B 34047a1512451af054ba3ea2d94ae27d47e38388dc74902ee718ce439f587b18e321fbd254a03005265f54376c0770649e8367dcb245f2c9fafc89edc5af6537 SHA512 6589a5bb18b8a2a223cf3433cde272492615c2029f7ea5cf17e6836bb54b32811fe7d7676cbeca4e6c75dd1575f552721d70a01ea87de1bd430bca8c8401d8db EBUILD opencsg-1.6.0.ebuild 1037 BLAKE2B 0fb9e5764a37b39088ae51ee0447d908af72ff94edbe19df5c34ab6e1789f98aaf87dbf0c5d64af196b746ad3cb3be2c5b4a8c8e88b9b0f024d28c4697b5af8a SHA512 27f77aa726e038e6ac266dd26987e8029385937f825740a34ef557976e2acc0815bccec3a5a6dd15919f37b5f24abdb93ac8dab78a3509041109db00258ea4b2 MISC metadata.xml 1303 BLAKE2B 39b12bf1071d488890726841c2e609023e99edc3387007408b1a332051cb7adb7faf71ea3e5afdc660ba9a62116a322addba637aa1a7dc78adcae4cf27ac6508 SHA512 5a56d0545ab79ed384f580aa97be7736ac844ed8951262d016b4eb43193c594fe889f067b1c7243346b8185c8e63d933457b9b1f1f1ae47d5e350fc93d65476c diff --git a/media-gfx/opencsg/files/opencsg-1.6.0-cmake.patch b/media-gfx/opencsg/files/opencsg-1.6.0-cmake.patch new file mode 100644 index 000000000000..19866126da08 --- /dev/null +++ b/media-gfx/opencsg/files/opencsg-1.6.0-cmake.patch @@ -0,0 +1,61 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +new file mode 100644 +index 0000000..0ba23fe +--- /dev/null ++++ b/CMakeLists.txt +@@ -0,0 +1,12 @@ ++cmake_minimum_required(VERSION 3.16) ++project(opencsg VERSION 1.6.0 LANGUAGES CXX) ++ ++option(BUILD_EXAMPLE "Build example program" ON) ++option(BUILD_SHARED_LIBS "Build using shared libraries" ON) ++ ++include(GNUInstallDirs) ++ ++add_subdirectory(src) ++if(BUILD_EXAMPLE) ++ add_subdirectory(example) ++endif() +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +new file mode 100644 +index 0000000..323a491 +--- /dev/null ++++ b/src/CMakeLists.txt +@@ -0,0 +1,37 @@ ++add_library(opencsg ++ area.cpp area.h ++ batch.cpp batch.h ++ channelManager.cpp channelManager.h ++ context.cpp context.h ++ frameBufferObject.cpp frameBufferObject.h ++ frameBufferObjectExt.cpp frameBufferObjectExt.h ++ glad/include/KHR/khrplatform.h ++ glad/include/glad/gl.h ++ glad/src/gl.cpp ++ occlusionQuery.cpp occlusionQuery.h ++ offscreenBuffer.h ++ opencsgConfig.h ++ opencsgRender.cpp opencsgRender.h ++ openglExt.h ++ openglHelper.cpp openglHelper.h ++ primitive.cpp ++ primitiveHelper.cpp primitiveHelper.h ++ renderGoldfeather.cpp ++ renderSCS.cpp ++ scissorMemo.cpp scissorMemo.h ++ settings.cpp settings.h ++) ++target_include_directories(opencsg PUBLIC ++ ${CMAKE_SOURCE_DIR}/include ++) ++ ++set_target_properties(opencsg PROPERTIES ++ VERSION ${PROJECT_VERSION} ++ SOVERSION ${PROJECT_VERSION_MAJOR} ++ PUBLIC_HEADER ${CMAKE_SOURCE_DIR}/include/opencsg.h ++) ++ ++install(TARGETS opencsg ++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ++ PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} ++) diff --git a/media-gfx/opencsg/opencsg-1.6.0-r1.ebuild b/media-gfx/opencsg/opencsg-1.6.0-r1.ebuild new file mode 100644 index 000000000000..020597e9a1b0 --- /dev/null +++ b/media-gfx/opencsg/opencsg-1.6.0-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +MY_P="OpenCSG-${PV}" + +DESCRIPTION="The Constructive Solid Geometry rendering library" +HOMEPAGE="https://www.opencsg.org" +SRC_URI="https://www.opencsg.org/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="GPL-2+" +SLOT="0/1.6" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" +IUSE="doc" +RESTRICT="test" + +DOCS=( build.txt changelog.txt ) + +PATCHES=( "${FILESDIR}"/${PN}-1.6.0-cmake.patch ) + +src_configure() { + local mycmakeargs=( + -DBUILD_EXAMPLE=OFF + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + use doc && local HTML_DOCS=( doc/. ) + einstalldocs +} |