qtoiio-2021.1.0.ebuild 772 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # Copyright 2021 Gentoo Authors
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=7
  4. inherit cmake
  5. DESCRIPTION="Qt Image IO plugin based on OpenImageIO"
  6. HOMEPAGE="http://www.openimageio.org/"
  7. SRC_URI="https://github.com/alicevision/QtOIIO/archive/v$PV.tar.gz -> $P.tar.gz"
  8. LICENSE=MPL-2.0
  9. SLOT=0
  10. KEYWORDS=~amd64
  11. S=$WORKDIR/QtOIIO-$PV
  12. #PATCHES=$FILESDIR/$PN-cmake-fix.patch
  13. CMAKE_BUILD_TYPE=Release
  14. DEPEND="
  15. sys-libs/zlib
  16. media-libs/openexr
  17. media-libs/openimageio
  18. dev-qt/qtcore
  19. "
  20. RESTRICT="mirror"
  21. src_prepare() {
  22. cmake_src_prepare
  23. sed -i '1 i\#include <cmath>' src/jetColorMap.hpp
  24. #sed -i 's|imageformats|plugins/imageformats|' src/imageIOHandler/CMakeLists.txt
  25. sed -i 's|/usr/lib|${EPREFIX}/usr/${get_libdir}|' src/CMakeLists.txt
  26. }