diff options
author | Jonathan Scruggs <j.scruggs@gmail.com> | 2017-01-14 17:30:36 +0000 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2017-01-15 12:14:23 +0100 |
commit | 48847536c6479332114935068725e76fd3e6c406 (patch) | |
tree | b300b54c29739962827e21205c262f770d07cfa5 /media-libs | |
parent | media-libs/opencollada: Remove 1.2.2_p20150207 (diff) | |
download | gentoo-48847536c6479332114935068725e76fd3e6c406.tar.gz gentoo-48847536c6479332114935068725e76fd3e6c406.tar.bz2 gentoo-48847536c6479332114935068725e76fd3e6c406.zip |
media-libs/opencollada: Version bump to 1.6.36
* General bug fix bump with no added features.
* Changed soname to use versionator eclass.
* Fixed out of source building.
Signed-off by: Jonathan Scruggs (j.scruggs@gmail.com)
Closes: https://github.com/gentoo/gentoo/pull/3361
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/opencollada/Manifest | 1 | ||||
-rw-r--r-- | media-libs/opencollada/files/opencollada-build-fixes-v1.patch | 86 | ||||
-rw-r--r-- | media-libs/opencollada/opencollada-1.6.36.ebuild | 68 |
3 files changed, 155 insertions, 0 deletions
diff --git a/media-libs/opencollada/Manifest b/media-libs/opencollada/Manifest index 27cb178fc5d4..acaa1754892f 100644 --- a/media-libs/opencollada/Manifest +++ b/media-libs/opencollada/Manifest @@ -1,2 +1,3 @@ DIST opencollada-1.6.25.tar.gz 11817949 SHA256 9cea5c85164758b01ac0d5c37ea10373a0d1fc7eba1e5d9dea9ba4af8aa6dca9 SHA512 48ede841d43beddbaa153899e2a1eb45d875c468536b276f6b9cb80a84b90b16ca376fb2fbc68a7f25f4908ef94a376c431ed7e94e7c6657afe60464f067a00e WHIRLPOOL e074a66424e66b98476d40f7c525a4e05e0e5537efc7c695f0e1b9099a51bd8d4645ce7a2ceae646607c7399446f22098a93dbc0bcf8c49013a49940f5737d87 DIST opencollada-1.6.31.tar.gz 11832790 SHA256 ef338d03646da3039cf67382b19f39fe51aa638e05213ba9ad6a41f8069ad683 SHA512 6290600bed59fef72c4986a9d00683ae1bfedf6811a44fb9e05e1a46e4ceaee7585c2281918f0a491369e49b01d3dfab0eb38b3e0728f96fe8264a80ca28d8c9 WHIRLPOOL 6ad70665178e54bd93c431c6fe6c03800fc62a99e845c54a502d21e995b77dd6d1f5624aa2d70a03ba271bdfb5d60a0b9b9ac876ab8a14e14308458eea1118ab +DIST opencollada-1.6.36.tar.gz 12275972 SHA256 774b41611ab3ebb3a6008d32bcfd326d4ac1545d5316ba383b4ae90f16335701 SHA512 bcee958d229a6d28043afd6dbe2e8536668ce57b510d2759ef68420aa9ac5b8f82ab5956fbcef7ecc6177ad5f0f20c9a7364a886236e583c85215de86f7066f8 WHIRLPOOL 2184e01d903f662afa94369445336d510bcc9a5f9e1a54677476d41cf920052f9fab5190e8f2c2ddc775ee0062e7cbb5f0a1c1b120d2476217ff78ccd9c38b8b diff --git a/media-libs/opencollada/files/opencollada-build-fixes-v1.patch b/media-libs/opencollada/files/opencollada-build-fixes-v1.patch new file mode 100644 index 000000000000..171b45debb34 --- /dev/null +++ b/media-libs/opencollada/files/opencollada-build-fixes-v1.patch @@ -0,0 +1,86 @@ +diff -purN a/CMakeLists.txt b/CMakeLists.txt +--- a/CMakeLists.txt 2017-01-07 18:10:57.214728093 +0000 ++++ b/CMakeLists.txt 2017-01-07 18:11:06.322736320 +0000 +@@ -37,12 +37,6 @@ cmake_policy(SET CMP0010 NEW) + # Input directories must have CMakeLists.txt + cmake_policy(SET CMP0014 NEW) + +-# avoid having empty buildtype +-set(CMAKE_BUILD_TYPE_INIT "Release") +- +-set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "Only do Release and Debug" FORCE ) +-mark_as_advanced(CMAKE_CONFIGURATION_TYPES) +- + SET(CMAKE_DEBUG_POSTFIX "" CACHE STRING "Add this string to as suffix to Debug libraries, e.g.: xml2_d.lib " ) + + #----------------------------------------------------------------------------- +@@ -84,7 +78,7 @@ macro(opencollada_add_lib + message(${name} " WARNING: Shared library support implemented for UNIX-like OS only") + endif () + add_library(${name}_shared SHARED ${sources}) +- set_target_properties(${name}_shared PROPERTIES OUTPUT_NAME ${name}) ++ set_target_properties(${name}_shared PROPERTIES OUTPUT_NAME ${name} SOVERSION ${soversion}) + foreach(target_lib ${target_libs}) + if(TARGET ${target_lib}_shared) + target_link_libraries(${name}_shared ${target_lib}_shared) +@@ -158,6 +152,9 @@ set(OPENCOLLADA_VERSION_MINOR 1) + set(OPENCOLLADA_VERSION_PATCH 0) + set(OPENCOLLADA_VERSION ${OPENCOLLADA_VERSION_MAJOR}.${OPENCOLLADA_VERSION_MINOR}.${OPENCOLLADA_VERSION_PATCH}) + ++#----------------------------------------------------------------------------- ++# Generic install paths ++include(GNUInstallDirs) + + #----------------------------------------------------------------------------- + # Compiler warnings. +@@ -190,9 +187,9 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} + #----------------------------------------------------------------------------- + # Install vars + +-set(OPENCOLLADA_INST_INCLUDE ${CMAKE_INSTALL_PREFIX}/include/opencollada) +-set(OPENCOLLADA_INST_LIBRARY ${CMAKE_INSTALL_PREFIX}/lib/opencollada) +-set(OPENCOLLADA_INST_CMAKECONFIG ${OPENCOLLADA_INST_LIBRARY}/cmake) ++set(OPENCOLLADA_INST_INCLUDE ${CMAKE_INSTALL_FULL_INCLUDEDIR}/opencollada) ++set(OPENCOLLADA_INST_LIBRARY ${CMAKE_INSTALL_FULL_LIBDIR}/opencollada) ++set(OPENCOLLADA_INST_CMAKECONFIG ${CMAKE_INSTALL_FULL_LIBDIR}/opencollada/cmake) + + + #----------------------------------------------------------------------------- +@@ -236,8 +233,7 @@ endif () + + if (USE_EXPAT) + add_definitions(-DGENERATEDSAXPARSER_XMLPARSER_EXPAT) +- message("FATAL: EXPAT support not implemented") +- # TODO:: use externals ++ set(LIBEXPAT_LIBRARIES expat) + endif () + + if(USE_STATIC_MSVC_RUNTIME) +@@ -270,10 +266,10 @@ else () # if pcre not found building it + endif () + + # building required libs ++add_subdirectory(${EXTERNAL_LIBRARIES}/UTF) ++add_subdirectory(${EXTERNAL_LIBRARIES}/MathMLSolver) + add_subdirectory(common/libftoa) + add_subdirectory(common/libBuffer) +-add_subdirectory(${EXTERNAL_LIBRARIES}/UTF) +-add_subdirectory(${EXTERNAL_LIBRARIES}/MathMLSolver) + + # building OpenCOLLADA libs + add_subdirectory(COLLADABaseUtils) +diff -purN a/common/libBuffer/CMakeLists.txt b/common/libBuffer/CMakeLists.txt +--- a/common/libBuffer/CMakeLists.txt 2016-11-30 17:19:38.000000000 +0000 ++++ b/common/libBuffer/CMakeLists.txt 2017-01-07 18:05:50.306440325 +0000 +@@ -28,7 +28,10 @@ set(SRC + include/performanceTest/performanceTest.h + ) + +-set(TARGET_LIBS ftoa) ++set(TARGET_LIBS ++ ftoa ++ UTF ++) + + include_directories( + ${libBuffer_include_dirs} diff --git a/media-libs/opencollada/opencollada-1.6.36.ebuild b/media-libs/opencollada/opencollada-1.6.36.ebuild new file mode 100644 index 000000000000..34c4aa67ab8e --- /dev/null +++ b/media-libs/opencollada/opencollada-1.6.36.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit cmake-utils versionator + +DESCRIPTION="Stream based read/write library for COLLADA files" +HOMEPAGE="http://www.opencollada.org/" +SRC_URI="https://github.com/KhronosGroup/OpenCOLLADA/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" + +KEYWORDS="~amd64 ~ppc64 ~x86" + +IUSE="expat static-libs" + +# This is still needed to have so version numbers +MY_SOVERSION="$(get_version_component_range 1-2)" + +RDEPEND="dev-libs/libpcre + dev-libs/zziplib + media-libs/lib3ds + sys-libs/zlib + expat? ( dev-libs/expat ) + !expat? ( dev-libs/libxml2 )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S="${WORKDIR}"/OpenCOLLADA-${PV} + +PATCHES=( "${FILESDIR}"/${PN}-build-fixes-v1.patch ) + +src_prepare() { + edos2unix CMakeLists.txt + + cmake-utils_src_prepare + + # Remove bundled depends that have portage equivalents + rm -rv Externals/{expat,lib3ds,LibXML,pcre,zlib,zziplib} || die + + # Remove unused build systems + rm -v Makefile scripts/{unixbuild.sh,vcproj2cmake.rb} || die + find "${S}" -name SConscript -delete || die +} + +src_configure() { + local mycmakeargs=( + -DUSE_SHARED=ON + -DUSE_STATIC=$(usex static-libs) + -DUSE_EXPAT=$(usex expat) + -DUSE_LIBXML=$(usex !expat) + -Dsoversion=${MY_SOVERSION} + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + echo "LDPATH=/usr/$(get_libdir)/opencollada" > "${T}"/99${PN} || die "echo failed" + doenvd "${T}"/99${PN} + + dobin ${BUILD_DIR}/bin/OpenCOLLADAValidator +} |