diff options
author | Maciej Mrozowski <reavertm@gentoo.org> | 2021-01-24 04:35:19 +0100 |
---|---|---|
committer | Maciej Mrozowski <reavertm@gentoo.org> | 2021-01-24 04:38:06 +0100 |
commit | 3a144cb3379f83e093d1e224d15bdfec51a6ad4f (patch) | |
tree | 8c9a740db0f89d0ee414f1948e99ff3334940d83 /media-libs/simage | |
parent | media-video/mediainfo: Use BDEPEND, grep-friendlier DEPEND, sort it (diff) | |
download | gentoo-3a144cb3379f83e093d1e224d15bdfec51a6ad4f.tar.gz gentoo-3a144cb3379f83e093d1e224d15bdfec51a6ad4f.tar.bz2 gentoo-3a144cb3379f83e093d1e224d15bdfec51a6ad4f.zip |
media-libs/simage: reorder cmake options to match order in CMakeLists. Prevent silent fail to find QuickTime
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Maciej Mrozowski <reavertm@gentoo.org>
Diffstat (limited to 'media-libs/simage')
-rw-r--r-- | media-libs/simage/files/simage-1.8.1-fail-on-missing-quicktime.patch | 12 | ||||
-rw-r--r-- | media-libs/simage/simage-1.8.1.ebuild | 33 | ||||
-rw-r--r-- | media-libs/simage/simage-9999.ebuild | 32 |
3 files changed, 47 insertions, 30 deletions
diff --git a/media-libs/simage/files/simage-1.8.1-fail-on-missing-quicktime.patch b/media-libs/simage/files/simage-1.8.1-fail-on-missing-quicktime.patch new file mode 100644 index 000000000000..c6fc96af05dc --- /dev/null +++ b/media-libs/simage/files/simage-1.8.1-fail-on-missing-quicktime.patch @@ -0,0 +1,12 @@ +diff -ruN simage/CMakeLists.txt simage-my/CMakeLists.txt +--- simage/CMakeLists.txt 2021-01-11 23:16:40.000000000 +0100 ++++ simage-my/CMakeLists.txt 2021-01-24 04:12:55.309111983 +0100 +@@ -126,7 +126,7 @@ + # On macOS QuickTime supports BMP, GIF, JPEG, JPEG 2000, PNG, TIFF, and TGA. + # see https://en.wikipedia.org/wiki/QuickTime + if(SIMAGE_USE_QUICKTIME) +- find_package(QuickTime) ++ find_package(QuickTime REQUIRED) + endif() + + if(SIMAGE_USE_CGIMAGE) diff --git a/media-libs/simage/simage-1.8.1.ebuild b/media-libs/simage/simage-1.8.1.ebuild index abb7ac24fcbc..20e75177d9c1 100644 --- a/media-libs/simage/simage-1.8.1.ebuild +++ b/media-libs/simage/simage-1.8.1.ebuild @@ -51,36 +51,39 @@ BDEPEND="test? ( media-libs/libsndfile )" PATCHES=( "${FILESDIR}"/${P}-0001-Gentoo-specific-remove-RELEASE-flag-from-pkg-config.patch + "${FILESDIR}"/${PN}-1.8.1-fail-on-missing-quicktime.patch ) DOCS=(AUTHORS ChangeLog NEWS README) src_configure() { local mycmakeargs=( - -DSIMAGE_BUILD_DOCUMENTATION=OFF - -DSIMAGE_BUILD_EXAMPLES=OFF -DSIMAGE_BUILD_SHARED_LIBS=ON + -DSIMAGE_BUILD_EXAMPLES=OFF -DSIMAGE_BUILD_TESTS=$(usex test) - -DSIMAGE_EPS_SUPPORT=ON - -DSIMAGE_GIF_SUPPORT=$(usex gif) - -DSIMAGE_JPEG_SUPPORT=$(usex jpeg) + -DSIMAGE_BUILD_DOCUMENTATION=OFF + -DSIMAGE_USE_AVIENC=OFF # Windows only + -DSIMAGE_USE_GDIPLUS=OFF # Windows + -DSIMAGE_USE_CGIMAGE=OFF # OS X only + -DSIMAGE_USE_QUICKTIME=OFF # OS X only + -DSIMAGE_USE_QIMAGE=$(usex qt5) + -DSIMAGE_USE_QT5=$(usex qt5) + -DSIMAGE_USE_CPACK=OFF + -DSIMAGE_USE_STATIC_LIBS=OFF + -DSIMAGE_LIBJASPER_SUPPORT=OFF -DSIMAGE_LIBSNDFILE_SUPPORT=$(usex sndfile) - -DSIMAGE_MPEG2ENC_SUPPORT=ON -DSIMAGE_OGGVORBIS_SUPPORT=$(usex vorbis) + -DSIMAGE_EPS_SUPPORT=ON + -DSIMAGE_MPEG2ENC_SUPPORT=ON -DSIMAGE_PIC_SUPPORT=ON - -DSIMAGE_PNG_SUPPORT=$(usex png) -DSIMAGE_RGB_SUPPORT=ON -DSIMAGE_TGA_SUPPORT=ON - -DSIMAGE_TIFF_SUPPORT=$(usex tiff) - -DSIMAGE_USE_AVIENC=OFF # Windows only - -DSIMAGE_USE_CGIMAGE=OFF # OS X only - -DSIMAGE_USE_GDIPLUS=OFF # Windows only - -DSIMAGE_USE_QIMAGE=$(usex qt5) - -DSIMAGE_USE_QT5=$(usex qt5) - -DSIMAGE_USE_QUICKTIME=OFF # OS X only -DSIMAGE_XWD_SUPPORT=ON -DSIMAGE_ZLIB_SUPPORT=$(usex zlib) + -DSIMAGE_GIF_SUPPORT=$(usex gif) + -DSIMAGE_JPEG_SUPPORT=$(usex jpeg) + -DSIMAGE_PNG_SUPPORT=$(usex png) + -DSIMAGE_TIFF_SUPPORT=$(usex tiff) ) - cmake_src_configure } diff --git a/media-libs/simage/simage-9999.ebuild b/media-libs/simage/simage-9999.ebuild index 4dc309e659c7..f18a1bb093a3 100644 --- a/media-libs/simage/simage-9999.ebuild +++ b/media-libs/simage/simage-9999.ebuild @@ -57,30 +57,32 @@ DOCS=(AUTHORS ChangeLog NEWS README) src_configure() { local mycmakeargs=( - -DSIMAGE_BUILD_DOCUMENTATION=OFF - -DSIMAGE_BUILD_EXAMPLES=OFF -DSIMAGE_BUILD_SHARED_LIBS=ON + -DSIMAGE_BUILD_EXAMPLES=OFF -DSIMAGE_BUILD_TESTS=$(usex test) - -DSIMAGE_EPS_SUPPORT=ON - -DSIMAGE_GIF_SUPPORT=$(usex gif) - -DSIMAGE_JPEG_SUPPORT=$(usex jpeg) + -DSIMAGE_BUILD_DOCUMENTATION=OFF + -DSIMAGE_USE_AVIENC=OFF # Windows only + -DSIMAGE_USE_GDIPLUS=OFF # Windows + -DSIMAGE_USE_CGIMAGE=OFF # OS X only + -DSIMAGE_USE_QUICKTIME=OFF # OS X only + -DSIMAGE_USE_QIMAGE=$(usex qt5) + -DSIMAGE_USE_QT5=$(usex qt5) + -DSIMAGE_USE_CPACK=OFF + -DSIMAGE_USE_STATIC_LIBS=OFF + -DSIMAGE_LIBJASPER_SUPPORT=OFF -DSIMAGE_LIBSNDFILE_SUPPORT=$(usex sndfile) - -DSIMAGE_MPEG2ENC_SUPPORT=ON -DSIMAGE_OGGVORBIS_SUPPORT=$(usex vorbis) + -DSIMAGE_EPS_SUPPORT=ON + -DSIMAGE_MPEG2ENC_SUPPORT=ON -DSIMAGE_PIC_SUPPORT=ON - -DSIMAGE_PNG_SUPPORT=$(usex png) -DSIMAGE_RGB_SUPPORT=ON -DSIMAGE_TGA_SUPPORT=ON - -DSIMAGE_TIFF_SUPPORT=$(usex tiff) - -DSIMAGE_USE_AVIENC=OFF # Windows only - -DSIMAGE_USE_CGIMAGE=OFF # OS X only - -DSIMAGE_USE_GDIPLUS=OFF # Windows only - -DSIMAGE_USE_QIMAGE=$(usex qt5) - -DSIMAGE_USE_QT5=$(usex qt5) - -DSIMAGE_USE_QUICKTIME=OFF # OS X only -DSIMAGE_XWD_SUPPORT=ON -DSIMAGE_ZLIB_SUPPORT=$(usex zlib) + -DSIMAGE_GIF_SUPPORT=$(usex gif) + -DSIMAGE_JPEG_SUPPORT=$(usex jpeg) + -DSIMAGE_PNG_SUPPORT=$(usex png) + -DSIMAGE_TIFF_SUPPORT=$(usex tiff) ) - cmake_src_configure } |