* [gentoo-commits] repo/gentoo:master commit in: media-libs/simage/, media-libs/simage/files/
@ 2019-11-16 13:55 Miroslav Šulc
0 siblings, 0 replies; 5+ messages in thread
From: Miroslav Šulc @ 2019-11-16 13:55 UTC (permalink / raw
To: gentoo-commits
commit: cbf3b048f150e28d08d1ba12cbaf22f6135cd552
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 16 13:54:01 2019 +0000
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Sat Nov 16 13:54:51 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cbf3b048
media-libs/simage-1.7.1: bump
1) removed not needed stuff from simage-1.7.1-cmake-automagic-deps.patch
2) disabling check that uses GifQuantizeBuffer (see #687088, #682198)
3) added simage-1.7.1-fix-examples-linking.patch for fixing linking issues
4) reintroduced ~sparc
5) removed buggy simage-1.7.1a_beta_pre20180312.ebuild (see 2))
Bug: https://bugs.gentoo.org/682198
Closes: https://bugs.gentoo.org/687088
Closes: https://bugs.gentoo.org/698882
Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
media-libs/simage/Manifest | 2 +-
.../files/simage-1.7.1-cmake-automagic-deps.patch | 498 ++-------------------
.../simage-1.7.1-disable-gif-quantize-buffer.patch | 31 ++
.../files/simage-1.7.1-fix-examples-linking.patch | 22 +
...beta_pre20180312.ebuild => simage-1.7.1.ebuild} | 19 +-
5 files changed, 108 insertions(+), 464 deletions(-)
diff --git a/media-libs/simage/Manifest b/media-libs/simage/Manifest
index 59b5c71b67f..58cf77d47d7 100644
--- a/media-libs/simage/Manifest
+++ b/media-libs/simage/Manifest
@@ -1,2 +1,2 @@
-DIST Coin3D-simage-3bd369da8f08.tar.bz2 630229 BLAKE2B 6231dde891c07d8a4a37eebd5f89d9e445c048bf48d1718a5f1e2b12f488ad6c806edd04fd4eb30b5e041f978fbb65ea0b1d3b1263d7006bbda4568f4bef87c6 SHA512 61793a728c66dc4f427b1f853e0dcf38a71dced68814c8438e6653a4a1486d8066ce50a7c088d476cf796b4872c724687b3ca9d51ec0ed74f54d5d7e47c89b34
DIST simage-1.7.0.tar.gz 752602 BLAKE2B feca31f8d41ae67271e43c9c664243d872985068ffc8496d43c9b59a47ae5c3067956acced3ff9abbdc5a360aec662e3972a93d8523a704a72ac9d12dd4cfaa0 SHA512 944ec009dd7041692073ddd9795fdd633fe3bc9101f1c1234e8be3746487a9431aecf52abde01563e719153fbe1ca7d29f9b64042e4a64ea08d6cb14666dd89f
+DIST simage-1.7.1-src.zip 4145907 BLAKE2B 99f5f5f46530c2600d47ab0bb080d69281447ee96a2bb9b63ebe5a5c56e235f34ca8bd97b0d6adedf061fe221a61d144d4ccce00123941a9c74d72b1f190030d SHA512 b3c81fa363cd570b3512cd2984f154b83876353ec389dc35afcac4e4ddf8d301eef5b0f8df93c38b9caa6afd81fbe53d3943ad05e041b77734f03c26d2e12867
diff --git a/media-libs/simage/files/simage-1.7.1-cmake-automagic-deps.patch b/media-libs/simage/files/simage-1.7.1-cmake-automagic-deps.patch
index c119c938eeb..5f3fd2db714 100644
--- a/media-libs/simage/files/simage-1.7.1-cmake-automagic-deps.patch
+++ b/media-libs/simage/files/simage-1.7.1-cmake-automagic-deps.patch
@@ -1,497 +1,85 @@
-diff -ruN Coin3D-simage-3bd369da8f08/CMakeLists.txt my/CMakeLists.txt
---- Coin3D-simage-3bd369da8f08/CMakeLists.txt 2018-03-12 19:57:28.000000000 +0100
-+++ my/CMakeLists.txt 2018-05-06 08:53:45.202467390 +0200
-@@ -74,6 +74,36 @@
- set(SIMAGE_GDIPLUS_SUPPORT OFF)
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 5536922..8225dc4 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -218,14 +218,14 @@ if(NOT SIMAGE_QUICKTIME_SUPPORT AND NOT SIMAGE_CGIMAGE_SUPPORT AND NOT SIMAGE_GD
+ find_package(TIFF)
+
+ set(HAVE_ZLIB ${ZLIB_FOUND})
+- set(HAVE_GIFLIB ${GIF_FOUND})
+- set(HAVE_JPEGLIB ${JPEG_FOUND})
+- set(HAVE_PNGLIB ${PNG_FOUND})
+- set(HAVE_TIFFLIB ${TIFF_FOUND})
++ set(HAVE_GIFLIB ${SIMAGE_GIF_SUPPORT})
++ set(HAVE_JPEGLIB ${SIMAGE_JPEG_SUPPORT})
++ set(HAVE_PNGLIB ${SIMAGE_PNG_SUPPORT})
++ set(HAVE_TIFFLIB ${SIMAGE_TIFF_SUPPORT})
endif()
-+if(GIF_FOUND)
-+ option(SIMAGE_GIF_SUPPORT "Enable support for GIF images" ON)
-+else()
-+ set(SIMAGE_GIF_SUPPORT OFF)
-+endif()
-+
-+if(JASPER_FOUND)
-+ option(SIMAGE_JASPER_SUPPORT "Enable support for JPEG2K images" ON)
-+else()
-+ set(SIMAGE_JASPER_SUPPORT OFF)
-+endif()
-+
-+if(JPEG_FOUND)
-+ option(SIMAGE_JPEG_SUPPORT "Enable support for JPEG images" ON)
-+else()
-+ set(SIMAGE_JPEG_SUPPORT OFF)
-+endif()
-+
-+if(PNG_FOUND)
-+ option(SIMAGE_PNG_SUPPORT "Enable support for PNG images" ON)
-+else()
-+ set(SIMAGE_PNG_SUPPORT OFF)
-+endif()
-+
-+if(TIFF_FOUND)
-+ option(SIMAGE_TIFF_SUPPORT "Enable support for TIFF images" ON)
-+else()
-+ set(SIMAGE_TIFF_SUPPORT OFF)
-+endif()
-+
- if(SNDFILE_FOUND)
- option(SIMAGE_LIBSNDFILE_SUPPORT "" ON)
- else()
-@@ -141,23 +171,23 @@
- return 0;
- }
- " HAVE_GDIPLUS_LOCKBITS_RECTARG_POINTER)
--set(HAVE_GIFLIB ${GIF_FOUND})
-+set(HAVE_GIFLIB ${SIMAGE_GIF_SUPPORT})
- check_include_files(guile/gh.h HAVE_GUILE_GH_H)
- check_include_files(inttypes.h HAVE_INTTYPES_H)
-set(HAVE_JASPER ${JASPER_FOUND})
--set(HAVE_JPEGLIB ${JPG_FOUND})
-+set(HAVE_JASPER ${SIMAGE_JASPER_SUPPORT})
-+set(HAVE_JPEGLIB ${SIMAGE_JPEG_SUPPORT})
- check_include_files(libguile.h HAVE_LIBGUILE_H)
- check_include_files(memory.h HAVE_MEMORY_H)
--set(HAVE_PNGLIB ${PNG_FOUND})
-+set(HAVE_PNGLIB ${SIMAGE_PNG_SUPPORT})
- check_include_files(stdint.h HAVE_STDINT_H)
- check_include_files(stdlib.h HAVE_STDLIB_H)
- check_include_files(strings.h HAVE_STRINGS_H)
- check_include_files(string.h HAVE_STRING_H)
- check_include_files(sys/stat.h HAVE_SYS_STAT_H)
- check_include_files(sys/types.h HAVE_SYS_TYPES_H)
--set(HAVE_TIFFLIB ${TIFF_FOUND})
-+set(HAVE_TIFFLIB ${SIMAGE_TIFF_SUPPORT})
- check_include_files(unistd.h HAVE_UNISTD_H)
-set(HAVE_VFW ${VFW_FOUND})
++set(HAVE_JASPER ${SIMAGE_JASPER_SUPPORT})
+set(HAVE_VFW ${SIMAGE_AVIENC_SUPPORT})
- check_include_files(windows.h HAVE_WINDOWS_H)
- set(PACKAGE "simage")
- set(PACKAGE_BUGREPORT "coin-support@coin3d.org")
-@@ -321,27 +351,27 @@
- target_link_libraries(simage ${GDIPLUS_LIBRARIES})
+
+ check_include_files(guile/gh.h HAVE_GUILE_GH_H)
+ check_include_files(inttypes.h HAVE_INTTYPES_H)
+@@ -430,27 +430,27 @@ if(SIMAGE_GDIPLUS_SUPPORT)
+ target_link_libraries(simage PRIVATE ${GDIPLUS_LIBRARIES})
endif()
-if(GIF_FOUND)
+if(SIMAGE_GIF_SUPPORT)
- target_include_directories(simage PUBLIC ${GIF_INCLUDE_DIR})
- target_link_libraries(simage ${GIF_LIBRARIES})
+ target_include_directories(simage PRIVATE ${GIF_INCLUDE_DIR})
+ target_link_libraries(simage PRIVATE ${GIF_LIBRARIES})
endif()
-if(JASPER_FOUND)
+if(SIMAGE_JASPER_SUPPORT)
- target_include_directories(simage PUBLIC ${JASPER_INCLUDE_DIR})
- target_link_libraries(simage ${JASPER_LIBRARIES})
+ target_include_directories(simage PRIVATE ${JASPER_INCLUDE_DIR})
+ target_link_libraries(simage PRIVATE ${JASPER_LIBRARIES})
endif()
-if(JPEG_FOUND)
+if(SIMAGE_JPEG_SUPPORT)
- target_include_directories(simage PUBLIC ${JPEG_INCLUDE_DIR})
- target_link_libraries(simage ${JPEG_LIBRARIES})
+ target_include_directories(simage PRIVATE ${JPEG_INCLUDE_DIR})
+ target_link_libraries(simage PRIVATE ${JPEG_LIBRARIES})
endif()
-if(OGGVORBIS_FOUND)
+if(SIMAGE_OGGVORBIS_SUPPORT)
- target_include_directories(simage PUBLIC ${OGGVORBIS_INCLUDE_DIRS})
- target_link_libraries(simage ${OGGVORBIS_LIBRARIES})
+ target_include_directories(simage PRIVATE ${OGGVORBIS_INCLUDE_DIRS})
+ target_link_libraries(simage PRIVATE ${OGGVORBIS_LIBRARIES})
endif()
-if(PNG_FOUND)
+if(SIMAGE_PNG_SUPPORT)
- target_include_directories(simage PUBLIC ${PNG_INCLUDE_DIR})
- target_link_libraries(simage ${PNG_LIBRARIES})
+ target_include_directories(simage PRIVATE ${PNG_INCLUDE_DIR})
+ target_link_libraries(simage PRIVATE ${PNG_LIBRARIES})
endif()
-@@ -350,22 +380,22 @@
- target_link_libraries(simage ${QT_LIBRARIES})
+@@ -459,22 +459,22 @@ if(SIMAGE_QIMAGE_SUPPORT)
+ target_link_libraries(simage PRIVATE ${QT_LIBRARIES})
endif()
-if(QUICKTIME_FOUND)
+if(SIMAGE_QUICKTIME_SUPPORT)
- target_include_directories(simage PUBLIC ${QUICKTIME_INCLUDE_DIR})
- target_link_libraries(simage ${QUICKTIME_LIBRARIES})
+ target_include_directories(simage PRIVATE ${QUICKTIME_INCLUDE_DIR})
+ target_link_libraries(simage PRIVATE ${QUICKTIME_LIBRARIES})
endif()
-if(SNDFILE_FOUND)
-+if(SIMAGE_LIBSNDFILE_SUPPORT)
- target_include_directories(simage PUBLIC ${SNDFILE_INCLUDE_DIRS})
- target_link_libraries(simage ${SNDFILE_LIBRARIES})
++if(SIMAGE_SNDFILE_SUPPORT)
+ target_include_directories(simage PRIVATE ${SNDFILE_INCLUDE_DIRS})
+ target_link_libraries(simage PRIVATE ${SNDFILE_LIBRARIES})
endif()
-if(TIFF_FOUND)
+if(SIMAGE_TIFF_SUPPORT)
- target_include_directories(simage PUBLIC ${TIFF_INCLUDE_DIR})
- target_link_libraries(simage ${TIFF_LIBRARY})
+ target_include_directories(simage PRIVATE ${TIFF_INCLUDE_DIR})
+ target_link_libraries(simage PRIVATE ${TIFF_LIBRARY})
endif()
-if(VFW_FOUND)
-+if(SIMAGE_AVIENC_SUPPORT)
- target_link_libraries(simage ${VFW_LIBRARIES})
++if(SIMAGE_VFW_SUPPORT)
+ target_link_libraries(simage PRIVATE ${VFW_LIBRARIES})
endif()
-diff -ruN Coin3D-simage-3bd369da8f08/config.h.cmake.in my/config.h.cmake.in
---- Coin3D-simage-3bd369da8f08/config.h.cmake.in 2018-03-12 19:57:28.000000000 +0100
-+++ my/config.h.cmake.in 2018-05-06 09:29:09.795849171 +0200
-@@ -9,30 +9,18 @@
- /* Define if first argument of Gdiplus::Bitmap::LockBits() is a pointer */
- #cmakedefine HAVE_GDIPLUS_LOCKBITS_RECTARG_POINTER 1
-
--/* define to support the giflib library */
--#cmakedefine HAVE_GIFLIB 1
--
- /* Define to 1 if you have the <guile/gh.h> header file. */
- #cmakedefine HAVE_GUILE_GH_H 1
-
- /* Define to 1 if you have the <inttypes.h> header file. */
- #cmakedefine HAVE_INTTYPES_H 1
-
--/* define to support the jasper library */
--#cmakedefine HAVE_JASPER 1
--
--/* define to support the jpeg library */
--#cmakedefine HAVE_JPEGLIB 1
--
- /* Define to 1 if you have the <libguile.h> header file. */
- #cmakedefine HAVE_LIBGUILE_H 1
-
- /* Define to 1 if you have the <memory.h> header file. */
- #cmakedefine HAVE_MEMORY_H 1
-
--/* define for libpng support */
--#cmakedefine HAVE_PNGLIB 1
--
- /* Define to 1 if you have the <stdint.h> header file. */
- #cmakedefine HAVE_STDINT_H 1
-
-@@ -51,15 +39,9 @@
- /* Define to 1 if you have the <sys/types.h> header file. */
- #cmakedefine HAVE_SYS_TYPES_H 1
-
--/* define to support the tiff library */
--#cmakedefine HAVE_TIFFLIB 1
--
- /* Define to 1 if you have the <unistd.h> header file. */
- #cmakedefine HAVE_UNISTD_H 1
-
--/* Define to use the Video for Windows library */
--#cmakedefine HAVE_VFW 1
--
- /* Define to 1 if you have the <windows.h> header file. */
- #cmakedefine HAVE_WINDOWS_H 1
-
-@@ -108,6 +90,21 @@
- /* define this to the simage minor version number */
- #define SIMAGE_MINOR_VERSION @SIMAGE_MINOR_VERSION@
-
-+/* define to support the giflib library */
-+#cmakedefine SIMAGE_GIF_SUPPORT 1
-+
-+/* define to support the jasper library */
-+#cmakedefine SIMAGE_JASPER_SUPPORT 1
-+
-+/* define to support the jpeg library */
-+#cmakedefine SIMAGE_JPEG_SUPPORT 1
-+
-+/* define for libpng support */
-+#cmakedefine SIMAGE_PNG_SUPPORT 1
-+
-+/* define to support the tiff library */
-+#cmakedefine SIMAGE_TIFF_SUPPORT 1
-+
- /* define to enable mpeg2enc support */
- #cmakedefine SIMAGE_MPEG2ENC_SUPPORT 1
-
-diff -ruN Coin3D-simage-3bd369da8f08/include/simage_gif.h my/include/simage_gif.h
---- Coin3D-simage-3bd369da8f08/include/simage_gif.h 2018-03-12 19:57:28.000000000 +0100
-+++ my/include/simage_gif.h 2018-05-06 09:42:19.739539807 +0200
-@@ -21,9 +21,9 @@
- #include <config.h>
- #endif /* HAVE_CONFIG_H */
-
--#ifndef HAVE_GIFLIB
-+#ifndef SIMAGE_GIF_SUPPORT
- #error "This file should not be used under the current configuration!"
--#endif /* !HAVE_GIFLIB */
-+#endif /* !SIMAGE_GIF_SUPPORT */
-
- #ifdef __cplusplus
- extern "C" {
-diff -ruN Coin3D-simage-3bd369da8f08/include/simage_jasper.h my/include/simage_jasper.h
---- Coin3D-simage-3bd369da8f08/include/simage_jasper.h 2018-03-12 19:57:28.000000000 +0100
-+++ my/include/simage_jasper.h 2018-05-06 09:42:31.084498335 +0200
-@@ -21,9 +21,9 @@
- #include <config.h>
- #endif /* HAVE_CONFIG_H */
-
--#ifndef HAVE_JASPER
-+#ifndef SIMAGE_JASPER_SUPPORT
- #error "This file should not be used under the current configuration!"
--#endif /* !HAVE_JASPERLIB */
-+#endif /* !SIMAGE_JASPER_SUPPORT */
-
- #ifdef __cplusplus
- extern "C" {
-diff -ruN Coin3D-simage-3bd369da8f08/include/simage_jpeg.h my/include/simage_jpeg.h
---- Coin3D-simage-3bd369da8f08/include/simage_jpeg.h 2018-03-12 19:57:28.000000000 +0100
-+++ my/include/simage_jpeg.h 2018-05-06 09:42:50.762422085 +0200
-@@ -21,9 +21,9 @@
- #include <config.h>
- #endif /* HAVE_CONFIG_H */
-
--#ifndef HAVE_JPEGLIB
-+#ifndef SIMAGE_JPEG_SUPPORT
- #error "This file should not be used under the current configuration!"
--#endif /* !HAVE_JPEGLIB */
-+#endif /* !SIMAGE_JPEG_SUPPORT */
-
- #ifdef __cplusplus
- extern "C" {
-diff -ruN Coin3D-simage-3bd369da8f08/include/simage_png.h my/include/simage_png.h
---- Coin3D-simage-3bd369da8f08/include/simage_png.h 2018-03-12 19:57:28.000000000 +0100
-+++ my/include/simage_png.h 2018-05-06 09:43:08.250349842 +0200
-@@ -21,9 +21,9 @@
- #include <config.h>
- #endif /* HAVE_CONFIG_H */
-
--#ifndef HAVE_PNGLIB
-+#ifndef SIMAGE_PNG_SUPPORT
- #error "This file should not be used under the current configuration!"
--#endif /* !HAVE_PNGLIB */
-+#endif /* !SIMAGE_PNG_SUPPORT */
-
- #ifdef __cplusplus
- extern "C" {
-diff -ruN Coin3D-simage-3bd369da8f08/include/simage_tiff.h my/include/simage_tiff.h
---- Coin3D-simage-3bd369da8f08/include/simage_tiff.h 2018-03-12 19:57:28.000000000 +0100
-+++ my/include/simage_tiff.h 2018-05-06 09:43:32.091244844 +0200
-@@ -21,9 +21,9 @@
- #include <config.h>
- #endif /* HAVE_CONFIG_H */
-
--#ifndef HAVE_TIFFLIB
-+#ifndef SIMAGE_TIFF_SUPPORT
- #error "This file should not be used under the current configuration!"
--#endif /* !HAVE_TIFFLIB */
-+#endif /* !SIMAGE_TIFF_SUPPORT */
-
- #ifdef __cplusplus
- extern "C" {
-diff -ruN Coin3D-simage-3bd369da8f08/src/simage_gif.c my/src/simage_gif.c
---- Coin3D-simage-3bd369da8f08/src/simage_gif.c 2018-03-12 19:57:28.000000000 +0100
-+++ my/src/simage_gif.c 2018-05-06 09:40:56.444783960 +0200
-@@ -23,7 +23,7 @@
- #include <config.h>
- #endif /* HAVE_CONFIG_H */
-
--#ifdef HAVE_GIFLIB
-+#ifdef SIMAGE_GIF_SUPPORT
-
- #include <simage_gif.h>
- #include <stdlib.h>
-@@ -409,4 +409,4 @@
- return 1;
- }
-
--#endif /* HAVE_GIFLIB */
-+#endif /* SIMAGE_GIF_SUPPORT */
-diff -ruN Coin3D-simage-3bd369da8f08/src/simage_jasper.c my/src/simage_jasper.c
---- Coin3D-simage-3bd369da8f08/src/simage_jasper.c 2018-03-12 19:57:28.000000000 +0100
-+++ my/src/simage_jasper.c 2018-05-06 09:30:40.082652034 +0200
-@@ -23,7 +23,7 @@
- #include <config.h>
- #endif /* HAVE_CONFIG_H */
-
--#ifdef HAVE_JASPER
-+#ifdef SIMAGE_JASPER_SUPPORT
-
- #include <simage_jasper.h>
-
-@@ -331,4 +331,4 @@
- return 0;
- }
-
--#endif /* HAVE_JASPER */
-+#endif /* SIMAGE_JASPER_SUPPORT */
-diff -ruN Coin3D-simage-3bd369da8f08/src/simage_jpeg.c my/src/simage_jpeg.c
---- Coin3D-simage-3bd369da8f08/src/simage_jpeg.c 2018-03-12 19:57:28.000000000 +0100
-+++ my/src/simage_jpeg.c 2018-05-06 09:31:06.325304369 +0200
-@@ -23,7 +23,7 @@
- #include <config.h>
- #endif /* HAVE_CONFIG_H */
-
--#ifdef HAVE_JPEGLIB
-+#ifdef SIMAGE_JPEG_SUPPORT
-
- #include <stdio.h>
- #include <setjmp.h>
-@@ -74,7 +74,7 @@
- strncpy(buffer, "JPEG saver: Error opening file", buflen);
- break;
- case ERR_JPEGLIB_WRITE:
-- strncpy(buffer, "JPEG saver: Internal libjpeg error", buflen);
-+ strncpy(buffer, "JPEG saver: Internal libjpeg error", buflen);
- break;
- }
- return jpegerror;
-@@ -89,7 +89,7 @@
-
- typedef struct my_error_mgr * my_error_ptr;
-
--static void
-+static void
- my_error_exit (j_common_ptr cinfo)
- {
- /* cinfo->err really points to a my_error_mgr struct, so coerce pointer */
-@@ -105,7 +105,7 @@
- longjmp(myerr->setjmp_buffer, 1);
- }
-
--int
-+int
- simage_jpeg_identify(const char * ptr,
- const unsigned char *header,
- int headerlen)
-@@ -113,9 +113,9 @@
- static unsigned char jpgcmp[] = {'J', 'F', 'I', 'F' };
- static unsigned char jpgcmp2[] = {'E', 'x', 'i', 'f' };
- if (headerlen < 10) return 0;
-- if (memcmp((const void*)&header[6],
-+ if (memcmp((const void*)&header[6],
- (const void*)jpgcmp, 4) == 0) return 1;
-- if (memcmp((const void*)&header[6],
-+ if (memcmp((const void*)&header[6],
- (const void*)jpgcmp2, 4) == 0) return 1;
- return 0;
- }
-@@ -215,7 +215,7 @@
- format = 3;
- cinfo.out_color_space = JCS_RGB;
- }
--
-+
- (void) jpeg_start_decompress(&cinfo);
- /* We can ignore the return value since suspension is not possible
- * with the stdio data source.
-@@ -234,20 +234,20 @@
- ((j_common_ptr) &cinfo, JPOOL_IMAGE, row_stride, 1);
- width = cinfo.output_width;
- height = cinfo.output_height;
-- buffer = currPtr = (unsigned char*)
-+ buffer = currPtr = (unsigned char*)
- malloc(width*height*cinfo.output_components);
--
-+
- /* Step 6: while (scan lines remain to be read) */
- /* jpeg_read_scanlines(...); */
-
- /* Here we use the library's state variable cinfo.output_scanline as the
- * loop counter, so that we don't have to keep track ourselves.
- */
--
-+
- /* flip image upside down */
- if (buffer) {
-- currPtr = buffer + row_stride * (cinfo.output_height-1);
--
-+ currPtr = buffer + row_stride * (cinfo.output_height-1);
-+
- while (cinfo.output_scanline < cinfo.output_height) {
- /* jpeg_read_scanlines expects an array of pointers to scanlines.
- * Here the array is only one element long, but you could ask for
-@@ -293,7 +293,7 @@
- return buffer;
- }
-
--int
-+int
- simage_jpeg_save(const char * filename,
- const unsigned char * bytes,
- int width,
-@@ -321,7 +321,7 @@
- int quality;
- unsigned char * tmpbytes;
- int bytesperrow;
--
-+
- quality = 90;
- tmpbytes = NULL;
-
-@@ -375,7 +375,7 @@
- /*
- * alpha channel is not supported for jpeg. strip it.
- */
--
-+
- if (numcomponents == 4) {
- unsigned char * dst;
- const unsigned char * src;
-@@ -383,8 +383,8 @@
- dst = tmpbytes = (unsigned char *) malloc(n*3);
- src = bytes;
- for (i = 0; i < n; i++) {
-- *dst++ = *src++;
-- *dst++ = *src++;
-+ *dst++ = *src++;
-+ *dst++ = *src++;
- *dst++ = *src++;
- src++;
- }
-@@ -397,7 +397,7 @@
- dst = tmpbytes = (unsigned char *) malloc(n*3);
- src = bytes;
- for (i = 0; i < n; i++) {
-- *dst++ = *src++;
-+ *dst++ = *src++;
- src++;
- }
- numcomponents = 1;
-@@ -408,7 +408,7 @@
- /* First we supply a description of the input image.
- * Four fields of the cinfo struct must be filled in:
- */
--
-+
- cinfo.image_width = width; /* image width and height, in pixels */
- cinfo.image_height = height;
- cinfo.input_components = numcomponents; /* # of color components per pixel */
-@@ -468,4 +468,4 @@
- return 1;
- }
-
--#endif /* HAVE_JPEGLIB */
-+#endif /* SIMAGE_JPEG_SUPPORT */
-diff -ruN Coin3D-simage-3bd369da8f08/src/simage_png.c my/src/simage_png.c
---- Coin3D-simage-3bd369da8f08/src/simage_png.c 2018-03-12 19:57:28.000000000 +0100
-+++ my/src/simage_png.c 2018-05-06 09:32:01.648571705 +0200
-@@ -22,7 +22,7 @@
- #include <config.h>
- #endif /* HAVE_CONFIG_H */
-
--#ifdef HAVE_PNGLIB
-+#ifdef SIMAGE_PNG_SUPPORT
-
- #include <simage_png.h>
- #include <stdio.h>
-@@ -479,4 +479,4 @@
- return 1;
- }
-
--#endif /* HAVE_PNGLIB */
-+#endif /* SIMAGE_PNG_SUPPORT */
-diff -ruN Coin3D-simage-3bd369da8f08/src/simage_tiff.c my/src/simage_tiff.c
---- Coin3D-simage-3bd369da8f08/src/simage_tiff.c 2018-03-12 19:57:28.000000000 +0100
-+++ my/src/simage_tiff.c 2018-05-06 09:32:43.539017111 +0200
-@@ -23,7 +23,7 @@
- #include <config.h>
- #endif /* HAVE_CONFIG_H */
-
--#ifdef HAVE_TIFFLIB
-+#ifdef SIMAGE_TIFF_SUPPORT
-
- #include <simage_tiff.h>
- #include <stdio.h>
-@@ -683,4 +683,4 @@
- #undef CVT
- #undef pack
-
--#endif /* HAVE_TIFFLIB */
-+#endif /* SIMAGE_TIFF_SUPPORT */
diff --git a/media-libs/simage/files/simage-1.7.1-disable-gif-quantize-buffer.patch b/media-libs/simage/files/simage-1.7.1-disable-gif-quantize-buffer.patch
new file mode 100644
index 00000000000..99535b22142
--- /dev/null
+++ b/media-libs/simage/files/simage-1.7.1-disable-gif-quantize-buffer.patch
@@ -0,0 +1,31 @@
+diff --git a/src/simage_gif.c b/src/simage_gif.c
+index 0819ef8..f959127 100644
+--- a/src/simage_gif.c
++++ b/src/simage_gif.c
+@@ -37,7 +37,7 @@
+ #define DGifOpenFileName(gif) DGifOpenFileName(gif, NULL)
+ #define EGifOpenFileName(gif, exist) EGifOpenFileName(gif, exist, NULL)
+ //see https://sourceforge.net/p/giflib/mailman/message/29367749/
+-#define QuantizeBuffer GifQuantizeBuffer
++//#define QuantizeBuffer GifQuantizeBuffer
+ #define MakeMapObject GifMakeMapObject
+ #define FreeMapObject GifFreeMapObject
+ #endif
+@@ -347,7 +347,7 @@ simage_gif_save(const char * filename,
+ free(outbuf);
+ return 0;
+ }
+-
++/*
+ if (QuantizeBuffer(width, height, &colormapsize,
+ rgbbuf, &rgbbuf[bufsize], &rgbbuf[bufsize*2],
+ outbuf, cmapobj->Colors) == GIF_ERROR) {
+@@ -357,7 +357,7 @@ simage_gif_save(const char * filename,
+ FreeMapObject(cmapobj);
+ return 0;
+ }
+-
++*/
+ /* open gif file and overwrite any existing file */
+ if (!(giffile = EGifOpenFileName(filename, FALSE))) {
+ giferror = ERR_OPEN;
diff --git a/media-libs/simage/files/simage-1.7.1-fix-examples-linking.patch b/media-libs/simage/files/simage-1.7.1-fix-examples-linking.patch
new file mode 100644
index 00000000000..756ddea5c73
--- /dev/null
+++ b/media-libs/simage/files/simage-1.7.1-fix-examples-linking.patch
@@ -0,0 +1,22 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 8225dc4..de89fd0 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -494,7 +494,7 @@ foreach(_source ${SIMAGE_EXAMPLE_SOURCE})
+ get_filename_component(_example ${_source} NAME_WE)
+ add_executable(${_example} ${_source})
+ target_compile_definitions(${_example} PRIVATE _CRT_NONSTDC_NO_DEPRECATE _CRT_SECURE_NO_DEPRECATE _CRT_SECURE_NO_WARNINGS _USE_MATH_DEFINES)
+- target_link_libraries(${_example} simage)
++ target_link_libraries(${_example} simage sndfile)
+ if(UNIX)
+ target_link_libraries(${_example} m)
+ endif()
+@@ -507,7 +507,7 @@ endforeach()
+ enable_testing()
+
+ add_executable(loaders tests/loaders.c)
+-target_link_libraries(loaders simage)
++target_link_libraries(loaders simage sndfile)
+ target_compile_definitions(loaders PRIVATE _CRT_NONSTDC_NO_DEPRECATE _CRT_SECURE_NO_DEPRECATE _CRT_SECURE_NO_WARNINGS _USE_MATH_DEFINES)
+ if(UNIX)
+ target_link_libraries(loaders m)
diff --git a/media-libs/simage/simage-1.7.1a_beta_pre20180312.ebuild b/media-libs/simage/simage-1.7.1.ebuild
similarity index 80%
rename from media-libs/simage/simage-1.7.1a_beta_pre20180312.ebuild
rename to media-libs/simage/simage-1.7.1.ebuild
index 4ced5ba2961..e27f0252065 100644
--- a/media-libs/simage/simage-1.7.1a_beta_pre20180312.ebuild
+++ b/media-libs/simage/simage-1.7.1.ebuild
@@ -1,18 +1,16 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
inherit cmake-utils flag-o-matic
-MY_P=Coin3D-simage-3bd369da8f08
-
DESCRIPTION="Image and video texturing library"
HOMEPAGE="https://bitbucket.org/Coin3D/simage"
-SRC_URI="https://dev.gentoo.org/~reavertm/${MY_P}.tar.bz2"
+SRC_URI="https://bitbucket.org/Coin3D/simage/downloads/${P}-src.zip"
LICENSE="public-domain mpeg2enc"
-KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~x86"
+KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
SLOT="0"
IUSE="debug gif jpeg png qt5 sndfile tiff vorbis"
@@ -31,12 +29,17 @@ RDEPEND="
media-libs/libvorbis
)
"
-DEPEND="${RDEPEND}"
+DEPEND="
+ ${RDEPEND}
+ app-arch/unzip
+"
-S="${WORKDIR}/${MY_P}"
+S="${WORKDIR}/${PN}"
PATCHES=(
- "${FILESDIR}/${PN}-1.7.1-cmake-automagic-deps.patch"
+ "${FILESDIR}/${P}-cmake-automagic-deps.patch"
+ "${FILESDIR}/${P}-fix-examples-linking.patch"
+ "${FILESDIR}/${P}-disable-gif-quantize-buffer.patch"
)
DOCS=(AUTHORS ChangeLog NEWS README)
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-libs/simage/, media-libs/simage/files/
@ 2019-12-16 9:34 Miroslav Šulc
0 siblings, 0 replies; 5+ messages in thread
From: Miroslav Šulc @ 2019-12-16 9:34 UTC (permalink / raw
To: gentoo-commits
commit: 1e5e9468b40041e840c3018a2a930c0562018490
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 16 09:33:50 2019 +0000
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Mon Dec 16 09:34:06 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e5e9468
media-libs/simage-1.7.1-r1: fixed examples linking
examples need to link against libsndfile unconditionally so either we could
make the dep unconditional or not build the examples. i chose the latter way.
btw, examples are not installed anyway, they are just compiled.
Closes: https://bugs.gentoo.org/701030
Package-Manager: Portage-2.3.82, Repoman-2.3.20
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
.../files/simage-1.7.1-disable-examples.patch | 44 ++++++++++++++++++++++
.../files/simage-1.7.1-fix-examples-linking.patch | 22 -----------
media-libs/simage/simage-1.7.1-r1.ebuild | 5 ++-
3 files changed, 48 insertions(+), 23 deletions(-)
diff --git a/media-libs/simage/files/simage-1.7.1-disable-examples.patch b/media-libs/simage/files/simage-1.7.1-disable-examples.patch
new file mode 100644
index 00000000000..9e43e073ccd
--- /dev/null
+++ b/media-libs/simage/files/simage-1.7.1-disable-examples.patch
@@ -0,0 +1,44 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 5536922..07df95a 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -482,23 +482,23 @@ endif()
+ # Build examples
+ # ############################################################################
+
+-set(SIMAGE_EXAMPLE_SOURCE
+- ${CMAKE_CURRENT_SOURCE_DIR}/examples/audio2raw.c
+- ${CMAKE_CURRENT_SOURCE_DIR}/examples/img2avi.c
++#set(SIMAGE_EXAMPLE_SOURCE
++# ${CMAKE_CURRENT_SOURCE_DIR}/examples/audio2raw.c
++# ${CMAKE_CURRENT_SOURCE_DIR}/examples/img2avi.c
+ # ${CMAKE_CURRENT_SOURCE_DIR}/examples/mpeg2enc.cpp # requires Coin to build
+- ${CMAKE_CURRENT_SOURCE_DIR}/examples/simage-convert.c
+- ${CMAKE_CURRENT_SOURCE_DIR}/examples/simage-read-line-test.c
+-)
+-
+-foreach(_source ${SIMAGE_EXAMPLE_SOURCE})
+- get_filename_component(_example ${_source} NAME_WE)
+- add_executable(${_example} ${_source})
+- target_compile_definitions(${_example} PRIVATE _CRT_NONSTDC_NO_DEPRECATE _CRT_SECURE_NO_DEPRECATE _CRT_SECURE_NO_WARNINGS _USE_MATH_DEFINES)
+- target_link_libraries(${_example} simage)
+- if(UNIX)
+- target_link_libraries(${_example} m)
+- endif()
+-endforeach()
++# ${CMAKE_CURRENT_SOURCE_DIR}/examples/simage-convert.c
++# ${CMAKE_CURRENT_SOURCE_DIR}/examples/simage-read-line-test.c
++#)
++
++#foreach(_source ${SIMAGE_EXAMPLE_SOURCE})
++# get_filename_component(_example ${_source} NAME_WE)
++# add_executable(${_example} ${_source})
++# target_compile_definitions(${_example} PRIVATE _CRT_NONSTDC_NO_DEPRECATE _CRT_SECURE_NO_DEPRECATE _CRT_SECURE_NO_WARNINGS _USE_MATH_DEFINES)
++# target_link_libraries(${_example} simage)
++# if(UNIX)
++# target_link_libraries(${_example} m)
++# endif()
++#endforeach()
+
+ # ############################################################################
+ # Build tests
diff --git a/media-libs/simage/files/simage-1.7.1-fix-examples-linking.patch b/media-libs/simage/files/simage-1.7.1-fix-examples-linking.patch
deleted file mode 100644
index 756ddea5c73..00000000000
--- a/media-libs/simage/files/simage-1.7.1-fix-examples-linking.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 8225dc4..de89fd0 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -494,7 +494,7 @@ foreach(_source ${SIMAGE_EXAMPLE_SOURCE})
- get_filename_component(_example ${_source} NAME_WE)
- add_executable(${_example} ${_source})
- target_compile_definitions(${_example} PRIVATE _CRT_NONSTDC_NO_DEPRECATE _CRT_SECURE_NO_DEPRECATE _CRT_SECURE_NO_WARNINGS _USE_MATH_DEFINES)
-- target_link_libraries(${_example} simage)
-+ target_link_libraries(${_example} simage sndfile)
- if(UNIX)
- target_link_libraries(${_example} m)
- endif()
-@@ -507,7 +507,7 @@ endforeach()
- enable_testing()
-
- add_executable(loaders tests/loaders.c)
--target_link_libraries(loaders simage)
-+target_link_libraries(loaders simage sndfile)
- target_compile_definitions(loaders PRIVATE _CRT_NONSTDC_NO_DEPRECATE _CRT_SECURE_NO_DEPRECATE _CRT_SECURE_NO_WARNINGS _USE_MATH_DEFINES)
- if(UNIX)
- target_link_libraries(loaders m)
diff --git a/media-libs/simage/simage-1.7.1-r1.ebuild b/media-libs/simage/simage-1.7.1-r1.ebuild
index e6405b2179a..5117be12735 100644
--- a/media-libs/simage/simage-1.7.1-r1.ebuild
+++ b/media-libs/simage/simage-1.7.1-r1.ebuild
@@ -38,7 +38,10 @@ S="${WORKDIR}/${PN}"
PATCHES=(
"${FILESDIR}/${P}-cmake-automagic-deps.patch"
- "${FILESDIR}/${P}-fix-examples-linking.patch"
+ # examples need to link against libsndfile unconditionally so either we could
+ # make the dep unconditional or not build the examples. i chose the latter way.
+ # btw, examples are not installed anyway, they are just compiled.
+ "${FILESDIR}/${P}-disable-examples.patch"
"${FILESDIR}/${P}-disable-gif-quantize-buffer.patch"
)
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-libs/simage/, media-libs/simage/files/
@ 2019-12-27 10:52 Miroslav Šulc
0 siblings, 0 replies; 5+ messages in thread
From: Miroslav Šulc @ 2019-12-27 10:52 UTC (permalink / raw
To: gentoo-commits
commit: 01bc8ce0c058cd799bcc5d2fb0730eb87eb8c59b
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 27 10:52:29 2019 +0000
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Fri Dec 27 10:52:49 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01bc8ce0
media-libs/simage: fixed tests in 1.7.1-r1
1) fixed building tests
2) organized deps
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
.../files/simage-1.7.1-tests-conditional.patch | 52 ++++++++++++++++++++++
media-libs/simage/simage-1.7.1-r1.ebuild | 10 ++++-
2 files changed, 60 insertions(+), 2 deletions(-)
diff --git a/media-libs/simage/files/simage-1.7.1-tests-conditional.patch b/media-libs/simage/files/simage-1.7.1-tests-conditional.patch
new file mode 100644
index 00000000000..ced49159ba6
--- /dev/null
+++ b/media-libs/simage/files/simage-1.7.1-tests-conditional.patch
@@ -0,0 +1,52 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 5536922..b6de403 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -504,25 +504,28 @@ endforeach()
+ # Build tests
+ # ############################################################################
+
+-enable_testing()
+-
+-add_executable(loaders tests/loaders.c)
+-target_link_libraries(loaders simage)
+-target_compile_definitions(loaders PRIVATE _CRT_NONSTDC_NO_DEPRECATE _CRT_SECURE_NO_DEPRECATE _CRT_SECURE_NO_WARNINGS _USE_MATH_DEFINES)
+-if(UNIX)
+- target_link_libraries(loaders m)
+-endif()
+-
+-add_test(
+- loaders
+- ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/loaders
+- ${CMAKE_CURRENT_SOURCE_DIR}/tests/img.gif
+- ${CMAKE_CURRENT_SOURCE_DIR}/tests/img.jpg
+- ${CMAKE_CURRENT_SOURCE_DIR}/tests/img.png
+- ${CMAKE_CURRENT_SOURCE_DIR}/tests/img.rgb
+- ${CMAKE_CURRENT_SOURCE_DIR}/tests/img.tga
+- ${CMAKE_CURRENT_SOURCE_DIR}/tests/img.tif
+-)
++if(TESTS)
++ enable_testing()
++
++ add_executable(loaders tests/loaders.c)
++ target_link_libraries(loaders simage)
++ target_compile_definitions(loaders PRIVATE _CRT_NONSTDC_NO_DEPRECATE _CRT_SECURE_NO_DEPRECATE _CRT_SECURE_NO_WARNINGS _USE_MATH_DEFINES)
++ if(UNIX)
++ target_link_libraries(loaders m)
++ target_link_libraries(loaders sndfile)
++ endif()
++
++ add_test(
++ loaders
++ ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/loaders
++ ${CMAKE_CURRENT_SOURCE_DIR}/tests/img.gif
++ ${CMAKE_CURRENT_SOURCE_DIR}/tests/img.jpg
++ ${CMAKE_CURRENT_SOURCE_DIR}/tests/img.png
++ ${CMAKE_CURRENT_SOURCE_DIR}/tests/img.rgb
++ ${CMAKE_CURRENT_SOURCE_DIR}/tests/img.tga
++ ${CMAKE_CURRENT_SOURCE_DIR}/tests/img.tif
++ )
++endif()
+
+ # Add a target to generate API documentation with Doxygen
+ if(SIMAGE_BUILD_DOCUMENTATION)
diff --git a/media-libs/simage/simage-1.7.1-r1.ebuild b/media-libs/simage/simage-1.7.1-r1.ebuild
index 5117be12735..34859fa678e 100644
--- a/media-libs/simage/simage-1.7.1-r1.ebuild
+++ b/media-libs/simage/simage-1.7.1-r1.ebuild
@@ -12,8 +12,12 @@ SRC_URI="https://bitbucket.org/Coin3D/simage/downloads/${P}-src.zip"
LICENSE="public-domain mpeg2enc"
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
SLOT="0"
-IUSE="debug gif jpeg png qt5 sndfile tiff vorbis"
+IUSE="debug gif jpeg png qt5 sndfile test tiff vorbis"
+RESTRICT="!test? ( test )"
+BDEPEND="
+ app-arch/unzip
+"
RDEPEND="
gif? ( media-libs/giflib )
jpeg? ( virtual/jpeg:0= )
@@ -31,7 +35,7 @@ RDEPEND="
"
DEPEND="
${RDEPEND}
- app-arch/unzip
+ test? ( media-libs/libsndfile )
"
S="${WORKDIR}/${PN}"
@@ -42,6 +46,7 @@ PATCHES=(
# make the dep unconditional or not build the examples. i chose the latter way.
# btw, examples are not installed anyway, they are just compiled.
"${FILESDIR}/${P}-disable-examples.patch"
+ "${FILESDIR}/${P}-tests-conditional.patch"
"${FILESDIR}/${P}-disable-gif-quantize-buffer.patch"
)
@@ -71,6 +76,7 @@ src_configure() {
-DSIMAGE_RGB_SUPPORT=ON
-DSIMAGE_TGA_SUPPORT=ON
-DSIMAGE_XWD_SUPPORT=ON
+ -DTESTS=$(usex test)
)
cmake-utils_src_configure
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-libs/simage/, media-libs/simage/files/
@ 2020-01-31 1:15 Miroslav Šulc
0 siblings, 0 replies; 5+ messages in thread
From: Miroslav Šulc @ 2020-01-31 1:15 UTC (permalink / raw
To: gentoo-commits
commit: afb66845a9e3c30f419685657be626c4cccd323d
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 31 01:13:08 2020 +0000
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Fri Jan 31 01:15:20 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=afb66845
media-libs/simage: bump to 1.8.0
1) switched from cmake-utils to cmake
2) updated homepage, src_uri and license
3) updated deps
some updates used from the ebuild in waebbl overlay
Package-Manager: Portage-2.3.86, Repoman-2.3.20
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
media-libs/simage/Manifest | 1 +
| 25 +++++++
media-libs/simage/simage-1.8.0.ebuild | 82 ++++++++++++++++++++++
3 files changed, 108 insertions(+)
diff --git a/media-libs/simage/Manifest b/media-libs/simage/Manifest
index dff8036465f..ffa68c89f9b 100644
--- a/media-libs/simage/Manifest
+++ b/media-libs/simage/Manifest
@@ -1 +1,2 @@
DIST simage-1.7.1-src.zip 4145907 BLAKE2B 99f5f5f46530c2600d47ab0bb080d69281447ee96a2bb9b63ebe5a5c56e235f34ca8bd97b0d6adedf061fe221a61d144d4ccce00123941a9c74d72b1f190030d SHA512 b3c81fa363cd570b3512cd2984f154b83876353ec389dc35afcac4e4ddf8d301eef5b0f8df93c38b9caa6afd81fbe53d3943ad05e041b77734f03c26d2e12867
+DIST simage-1.8.0.tar.gz 791151 BLAKE2B 0a5720c06501c8212b5a148ad790ff60d6d9fc507868a66d40dbe3b6b089e47dca21828fee96ef708a03651d02843c9e6b6db7856088ddf7e487b4b5eeafbccd SHA512 7070c845fc72094a97b1253d23a5f60f90e71dc6ed968c9c7da67e05660b05245a807fbdf0f592a1d459c7c3b725783c55f59f867182b11cb9ec40741d7ad58c
--git a/media-libs/simage/files/simage-1.8.0-0001-CMakeLists.txt-comment-cpack.d-inclusion.patch b/media-libs/simage/files/simage-1.8.0-0001-CMakeLists.txt-comment-cpack.d-inclusion.patch
new file mode 100644
index 00000000000..4dcc5994f36
--- /dev/null
+++ b/media-libs/simage/files/simage-1.8.0-0001-CMakeLists.txt-comment-cpack.d-inclusion.patch
@@ -0,0 +1,25 @@
+From 1c0e3fb6deb9c3d3c1dd1d4940ffe8d71c2158c9 Mon Sep 17 00:00:00 2001
+From: Bernd Waibel <waebbl@gmail.com>
+Date: Mon, 20 Jan 2020 18:45:10 +0100
+Subject: [PATCH] CMakeLists.txt: comment cpack.d inclusion
+
+Directory is not included in tarball and not needed on Gentoo.
+
+Signed-off-by: Bernd Waibel <waebbl@gmail.com>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 775037a..e3deb01 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -627,4 +627,4 @@ install(EXPORT ${PROJECT_NAME}
+
+ # ############################################################################
+ # New CPACK section, please see the README file inside cpack.d directory.
+-add_subdirectory(cpack.d)
++#add_subdirectory(cpack.d)
+--
+2.25.0
+
diff --git a/media-libs/simage/simage-1.8.0.ebuild b/media-libs/simage/simage-1.8.0.ebuild
new file mode 100644
index 00000000000..8d8e6434e9b
--- /dev/null
+++ b/media-libs/simage/simage-1.8.0.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake flag-o-matic
+
+DESCRIPTION="Image and video texturing library"
+HOMEPAGE="https://github.com/coin3d/simage/"
+SRC_URI="https://github.com/coin3d/simage/archive/${P}.tar.gz"
+
+LICENSE="BSD-1"
+KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+SLOT="0"
+IUSE="debug gif jpeg png qt5 sndfile test tiff vorbis"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ sys-libs/zlib:=
+ gif? ( media-libs/giflib:= )
+ jpeg? ( virtual/jpeg:0 )
+ png? ( media-libs/libpng:0= )
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ )
+ sndfile? ( media-libs/libsndfile )
+ tiff? ( media-libs/tiff:0 )
+ vorbis? (
+ media-libs/libogg
+ media-libs/libvorbis
+ )
+"
+DEPEND="
+ ${RDEPEND}
+ test? ( media-libs/libsndfile )
+"
+
+S="${WORKDIR}/${PN}-${P}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.7.1-cmake-automagic-deps.patch"
+ # examples need to link against libsndfile unconditionally so either we could
+ # make the dep unconditional or not build the examples. i chose the latter way.
+ # btw, examples are not installed anyway, they are just compiled.
+ "${FILESDIR}/${PN}-1.7.1-disable-examples.patch"
+ "${FILESDIR}/${PN}-1.7.1-tests-conditional.patch"
+ "${FILESDIR}/${PN}-1.7.1-disable-gif-quantize-buffer.patch"
+ "${FILESDIR}/${P}-0001-CMakeLists.txt-comment-cpack.d-inclusion.patch"
+)
+
+DOCS=(AUTHORS ChangeLog NEWS README)
+
+src_configure() {
+ use debug && append-cppflags -DSIMAGE_DEBUG=1
+
+ local mycmakeargs=(
+ -DSIMAGE_AVIENC_SUPPORT=OFF # Windows only
+ -DSIMAGE_BUILD_SHARED_LIBS=ON
+ -DSIMAGE_CGIMAGE_SUPPORT=OFF # OS X only
+ -DSIMAGE_EPS_SUPPORT=ON
+ -DSIMAGE_GDIPLUS_SUPPORT=OFF # Windows only
+ -DSIMAGE_GIF_SUPPORT=$(usex gif)
+ -DSIMAGE_JASPER_SUPPORT=OFF
+ -DSIMAGE_JPEG_SUPPORT=$(usex jpeg)
+ -DSIMAGE_LIBSNDFILE_SUPPORT=$(usex sndfile)
+ -DSIMAGE_MPEG2ENC_SUPPORT=ON
+ -DSIMAGE_OGGVORBIS_SUPPORT=$(usex vorbis)
+ -DSIMAGE_PIC_SUPPORT=ON
+ -DSIMAGE_PNG_SUPPORT=$(usex png)
+ -DSIMAGE_QIMAGE_SUPPORT=$(usex qt5)
+ -DSIMAGE_QUICKTIME_SUPPORT=OFF # OS X only
+ -DSIMAGE_TIFF_SUPPORT=$(usex tiff)
+ -DSIMAGE_USE_QT5=ON
+ -DSIMAGE_RGB_SUPPORT=ON
+ -DSIMAGE_TGA_SUPPORT=ON
+ -DSIMAGE_XWD_SUPPORT=ON
+ -DTESTS=$(usex test)
+ )
+
+ cmake_src_configure
+}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-libs/simage/, media-libs/simage/files/
@ 2022-12-18 8:32 Sam James
0 siblings, 0 replies; 5+ messages in thread
From: Sam James @ 2022-12-18 8:32 UTC (permalink / raw
To: gentoo-commits
commit: b1f3c4f08cc26126f9bd4c7a90b6907e1cafb092
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 18 08:09:30 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Dec 18 08:30:30 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1f3c4f0
media-libs/simage: drop 1.8.0-r3
Signed-off-by: Sam James <sam <AT> gentoo.org>
media-libs/simage/Manifest | 1 -
.../files/simage-1.7.1-cmake-automagic-deps.patch | 85 ----------------------
.../files/simage-1.7.1-disable-examples.patch | 44 -----------
.../simage-1.7.1-disable-gif-quantize-buffer.patch | 31 --------
.../files/simage-1.7.1-tests-conditional.patch | 52 -------------
| 25 -------
media-libs/simage/simage-1.8.0-r3.ebuild | 82 ---------------------
7 files changed, 320 deletions(-)
diff --git a/media-libs/simage/Manifest b/media-libs/simage/Manifest
index 6af22527239c..f01f4b90a2a4 100644
--- a/media-libs/simage/Manifest
+++ b/media-libs/simage/Manifest
@@ -1,2 +1 @@
-DIST simage-1.8.0-src.tar.gz 797069 BLAKE2B 6f9e3512c9815974b1b2799306c6567f6b5aec6771fe31e0a5fa47a827819df02e80e976063ddbae3e3aa3a4d33da68a23c9067e7b91f82c28592f83d0e782cc SHA512 fb4943c38f418461b087d5d013c2054f25d553a872fc80f9445a5e907901eb40265d838c5cc1031032dd84885f066f1c640a1949bc450591fb0ea88c05d1e38f
DIST simage-1.8.1.tar.gz 829490 BLAKE2B 05d3a3f7ff7c195b55d454a2bc6e086cd4439fd6e9fb694c1926a4c0be5142661bf2c7d6593f6b7ae0681234f28c7b92e325ed0928a0fb4df5e846b30fbf9156 SHA512 e6f211f453f67f601d157e36c6c4845af1e0601dd3d8d97fbb993c50dc54c8908c2e1e345ea1dd578b8fa2dca823d8e1bab7f29a0a0d73732ca597cc5c673cbe
diff --git a/media-libs/simage/files/simage-1.7.1-cmake-automagic-deps.patch b/media-libs/simage/files/simage-1.7.1-cmake-automagic-deps.patch
deleted file mode 100644
index 5f3fd2db7146..000000000000
--- a/media-libs/simage/files/simage-1.7.1-cmake-automagic-deps.patch
+++ /dev/null
@@ -1,85 +0,0 @@
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 5536922..8225dc4 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -218,14 +218,14 @@ if(NOT SIMAGE_QUICKTIME_SUPPORT AND NOT SIMAGE_CGIMAGE_SUPPORT AND NOT SIMAGE_GD
- find_package(TIFF)
-
- set(HAVE_ZLIB ${ZLIB_FOUND})
-- set(HAVE_GIFLIB ${GIF_FOUND})
-- set(HAVE_JPEGLIB ${JPEG_FOUND})
-- set(HAVE_PNGLIB ${PNG_FOUND})
-- set(HAVE_TIFFLIB ${TIFF_FOUND})
-+ set(HAVE_GIFLIB ${SIMAGE_GIF_SUPPORT})
-+ set(HAVE_JPEGLIB ${SIMAGE_JPEG_SUPPORT})
-+ set(HAVE_PNGLIB ${SIMAGE_PNG_SUPPORT})
-+ set(HAVE_TIFFLIB ${SIMAGE_TIFF_SUPPORT})
- endif()
-
--set(HAVE_JASPER ${JASPER_FOUND})
--set(HAVE_VFW ${VFW_FOUND})
-+set(HAVE_JASPER ${SIMAGE_JASPER_SUPPORT})
-+set(HAVE_VFW ${SIMAGE_AVIENC_SUPPORT})
-
- check_include_files(guile/gh.h HAVE_GUILE_GH_H)
- check_include_files(inttypes.h HAVE_INTTYPES_H)
-@@ -430,27 +430,27 @@ if(SIMAGE_GDIPLUS_SUPPORT)
- target_link_libraries(simage PRIVATE ${GDIPLUS_LIBRARIES})
- endif()
-
--if(GIF_FOUND)
-+if(SIMAGE_GIF_SUPPORT)
- target_include_directories(simage PRIVATE ${GIF_INCLUDE_DIR})
- target_link_libraries(simage PRIVATE ${GIF_LIBRARIES})
- endif()
-
--if(JASPER_FOUND)
-+if(SIMAGE_JASPER_SUPPORT)
- target_include_directories(simage PRIVATE ${JASPER_INCLUDE_DIR})
- target_link_libraries(simage PRIVATE ${JASPER_LIBRARIES})
- endif()
-
--if(JPEG_FOUND)
-+if(SIMAGE_JPEG_SUPPORT)
- target_include_directories(simage PRIVATE ${JPEG_INCLUDE_DIR})
- target_link_libraries(simage PRIVATE ${JPEG_LIBRARIES})
- endif()
-
--if(OGGVORBIS_FOUND)
-+if(SIMAGE_OGGVORBIS_SUPPORT)
- target_include_directories(simage PRIVATE ${OGGVORBIS_INCLUDE_DIRS})
- target_link_libraries(simage PRIVATE ${OGGVORBIS_LIBRARIES})
- endif()
-
--if(PNG_FOUND)
-+if(SIMAGE_PNG_SUPPORT)
- target_include_directories(simage PRIVATE ${PNG_INCLUDE_DIR})
- target_link_libraries(simage PRIVATE ${PNG_LIBRARIES})
- endif()
-@@ -459,22 +459,22 @@ if(SIMAGE_QIMAGE_SUPPORT)
- target_link_libraries(simage PRIVATE ${QT_LIBRARIES})
- endif()
-
--if(QUICKTIME_FOUND)
-+if(SIMAGE_QUICKTIME_SUPPORT)
- target_include_directories(simage PRIVATE ${QUICKTIME_INCLUDE_DIR})
- target_link_libraries(simage PRIVATE ${QUICKTIME_LIBRARIES})
- endif()
-
--if(SNDFILE_FOUND)
-+if(SIMAGE_SNDFILE_SUPPORT)
- target_include_directories(simage PRIVATE ${SNDFILE_INCLUDE_DIRS})
- target_link_libraries(simage PRIVATE ${SNDFILE_LIBRARIES})
- endif()
-
--if(TIFF_FOUND)
-+if(SIMAGE_TIFF_SUPPORT)
- target_include_directories(simage PRIVATE ${TIFF_INCLUDE_DIR})
- target_link_libraries(simage PRIVATE ${TIFF_LIBRARY})
- endif()
-
--if(VFW_FOUND)
-+if(SIMAGE_VFW_SUPPORT)
- target_link_libraries(simage PRIVATE ${VFW_LIBRARIES})
- endif()
-
diff --git a/media-libs/simage/files/simage-1.7.1-disable-examples.patch b/media-libs/simage/files/simage-1.7.1-disable-examples.patch
deleted file mode 100644
index 9e43e073ccd1..000000000000
--- a/media-libs/simage/files/simage-1.7.1-disable-examples.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 5536922..07df95a 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -482,23 +482,23 @@ endif()
- # Build examples
- # ############################################################################
-
--set(SIMAGE_EXAMPLE_SOURCE
-- ${CMAKE_CURRENT_SOURCE_DIR}/examples/audio2raw.c
-- ${CMAKE_CURRENT_SOURCE_DIR}/examples/img2avi.c
-+#set(SIMAGE_EXAMPLE_SOURCE
-+# ${CMAKE_CURRENT_SOURCE_DIR}/examples/audio2raw.c
-+# ${CMAKE_CURRENT_SOURCE_DIR}/examples/img2avi.c
- # ${CMAKE_CURRENT_SOURCE_DIR}/examples/mpeg2enc.cpp # requires Coin to build
-- ${CMAKE_CURRENT_SOURCE_DIR}/examples/simage-convert.c
-- ${CMAKE_CURRENT_SOURCE_DIR}/examples/simage-read-line-test.c
--)
--
--foreach(_source ${SIMAGE_EXAMPLE_SOURCE})
-- get_filename_component(_example ${_source} NAME_WE)
-- add_executable(${_example} ${_source})
-- target_compile_definitions(${_example} PRIVATE _CRT_NONSTDC_NO_DEPRECATE _CRT_SECURE_NO_DEPRECATE _CRT_SECURE_NO_WARNINGS _USE_MATH_DEFINES)
-- target_link_libraries(${_example} simage)
-- if(UNIX)
-- target_link_libraries(${_example} m)
-- endif()
--endforeach()
-+# ${CMAKE_CURRENT_SOURCE_DIR}/examples/simage-convert.c
-+# ${CMAKE_CURRENT_SOURCE_DIR}/examples/simage-read-line-test.c
-+#)
-+
-+#foreach(_source ${SIMAGE_EXAMPLE_SOURCE})
-+# get_filename_component(_example ${_source} NAME_WE)
-+# add_executable(${_example} ${_source})
-+# target_compile_definitions(${_example} PRIVATE _CRT_NONSTDC_NO_DEPRECATE _CRT_SECURE_NO_DEPRECATE _CRT_SECURE_NO_WARNINGS _USE_MATH_DEFINES)
-+# target_link_libraries(${_example} simage)
-+# if(UNIX)
-+# target_link_libraries(${_example} m)
-+# endif()
-+#endforeach()
-
- # ############################################################################
- # Build tests
diff --git a/media-libs/simage/files/simage-1.7.1-disable-gif-quantize-buffer.patch b/media-libs/simage/files/simage-1.7.1-disable-gif-quantize-buffer.patch
deleted file mode 100644
index 99535b221422..000000000000
--- a/media-libs/simage/files/simage-1.7.1-disable-gif-quantize-buffer.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-diff --git a/src/simage_gif.c b/src/simage_gif.c
-index 0819ef8..f959127 100644
---- a/src/simage_gif.c
-+++ b/src/simage_gif.c
-@@ -37,7 +37,7 @@
- #define DGifOpenFileName(gif) DGifOpenFileName(gif, NULL)
- #define EGifOpenFileName(gif, exist) EGifOpenFileName(gif, exist, NULL)
- //see https://sourceforge.net/p/giflib/mailman/message/29367749/
--#define QuantizeBuffer GifQuantizeBuffer
-+//#define QuantizeBuffer GifQuantizeBuffer
- #define MakeMapObject GifMakeMapObject
- #define FreeMapObject GifFreeMapObject
- #endif
-@@ -347,7 +347,7 @@ simage_gif_save(const char * filename,
- free(outbuf);
- return 0;
- }
--
-+/*
- if (QuantizeBuffer(width, height, &colormapsize,
- rgbbuf, &rgbbuf[bufsize], &rgbbuf[bufsize*2],
- outbuf, cmapobj->Colors) == GIF_ERROR) {
-@@ -357,7 +357,7 @@ simage_gif_save(const char * filename,
- FreeMapObject(cmapobj);
- return 0;
- }
--
-+*/
- /* open gif file and overwrite any existing file */
- if (!(giffile = EGifOpenFileName(filename, FALSE))) {
- giferror = ERR_OPEN;
diff --git a/media-libs/simage/files/simage-1.7.1-tests-conditional.patch b/media-libs/simage/files/simage-1.7.1-tests-conditional.patch
deleted file mode 100644
index ced49159ba69..000000000000
--- a/media-libs/simage/files/simage-1.7.1-tests-conditional.patch
+++ /dev/null
@@ -1,52 +0,0 @@
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 5536922..b6de403 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -504,25 +504,28 @@ endforeach()
- # Build tests
- # ############################################################################
-
--enable_testing()
--
--add_executable(loaders tests/loaders.c)
--target_link_libraries(loaders simage)
--target_compile_definitions(loaders PRIVATE _CRT_NONSTDC_NO_DEPRECATE _CRT_SECURE_NO_DEPRECATE _CRT_SECURE_NO_WARNINGS _USE_MATH_DEFINES)
--if(UNIX)
-- target_link_libraries(loaders m)
--endif()
--
--add_test(
-- loaders
-- ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/loaders
-- ${CMAKE_CURRENT_SOURCE_DIR}/tests/img.gif
-- ${CMAKE_CURRENT_SOURCE_DIR}/tests/img.jpg
-- ${CMAKE_CURRENT_SOURCE_DIR}/tests/img.png
-- ${CMAKE_CURRENT_SOURCE_DIR}/tests/img.rgb
-- ${CMAKE_CURRENT_SOURCE_DIR}/tests/img.tga
-- ${CMAKE_CURRENT_SOURCE_DIR}/tests/img.tif
--)
-+if(TESTS)
-+ enable_testing()
-+
-+ add_executable(loaders tests/loaders.c)
-+ target_link_libraries(loaders simage)
-+ target_compile_definitions(loaders PRIVATE _CRT_NONSTDC_NO_DEPRECATE _CRT_SECURE_NO_DEPRECATE _CRT_SECURE_NO_WARNINGS _USE_MATH_DEFINES)
-+ if(UNIX)
-+ target_link_libraries(loaders m)
-+ target_link_libraries(loaders sndfile)
-+ endif()
-+
-+ add_test(
-+ loaders
-+ ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/loaders
-+ ${CMAKE_CURRENT_SOURCE_DIR}/tests/img.gif
-+ ${CMAKE_CURRENT_SOURCE_DIR}/tests/img.jpg
-+ ${CMAKE_CURRENT_SOURCE_DIR}/tests/img.png
-+ ${CMAKE_CURRENT_SOURCE_DIR}/tests/img.rgb
-+ ${CMAKE_CURRENT_SOURCE_DIR}/tests/img.tga
-+ ${CMAKE_CURRENT_SOURCE_DIR}/tests/img.tif
-+ )
-+endif()
-
- # Add a target to generate API documentation with Doxygen
- if(SIMAGE_BUILD_DOCUMENTATION)
diff --git a/media-libs/simage/files/simage-1.8.0-0001-CMakeLists.txt-comment-cpack.d-inclusion.patch b/media-libs/simage/files/simage-1.8.0-0001-CMakeLists.txt-comment-cpack.d-inclusion.patch
deleted file mode 100644
index 4dcc5994f360..000000000000
--- a/media-libs/simage/files/simage-1.8.0-0001-CMakeLists.txt-comment-cpack.d-inclusion.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From 1c0e3fb6deb9c3d3c1dd1d4940ffe8d71c2158c9 Mon Sep 17 00:00:00 2001
-From: Bernd Waibel <waebbl@gmail.com>
-Date: Mon, 20 Jan 2020 18:45:10 +0100
-Subject: [PATCH] CMakeLists.txt: comment cpack.d inclusion
-
-Directory is not included in tarball and not needed on Gentoo.
-
-Signed-off-by: Bernd Waibel <waebbl@gmail.com>
----
- CMakeLists.txt | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 775037a..e3deb01 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -627,4 +627,4 @@ install(EXPORT ${PROJECT_NAME}
-
- # ############################################################################
- # New CPACK section, please see the README file inside cpack.d directory.
--add_subdirectory(cpack.d)
-+#add_subdirectory(cpack.d)
---
-2.25.0
-
diff --git a/media-libs/simage/simage-1.8.0-r3.ebuild b/media-libs/simage/simage-1.8.0-r3.ebuild
deleted file mode 100644
index 866372cc6409..000000000000
--- a/media-libs/simage/simage-1.8.0-r3.ebuild
+++ /dev/null
@@ -1,82 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit cmake flag-o-matic
-
-DESCRIPTION="Image and video texturing library"
-HOMEPAGE="https://github.com/coin3d/simage/"
-SRC_URI="https://github.com/coin3d/simage/releases/download/${P}/${P}-src.tar.gz"
-
-LICENSE="BSD-1"
-KEYWORDS="amd64 ~arm ~hppa ~ia64 ppc ppc64 ~sparc x86"
-SLOT="0"
-IUSE="debug gif jpeg png qt5 sndfile test tiff vorbis"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
- sys-libs/zlib:=
- gif? ( media-libs/giflib:= )
- jpeg? ( media-libs/libjpeg-turbo:= )
- png? ( media-libs/libpng:0= )
- qt5? (
- dev-qt/qtcore:5
- dev-qt/qtgui:5
- )
- sndfile? ( media-libs/libsndfile )
- tiff? ( media-libs/tiff:= )
- vorbis? (
- media-libs/libogg
- media-libs/libvorbis
- )
-"
-DEPEND="
- ${RDEPEND}
- test? ( media-libs/libsndfile )
-"
-
-S="${WORKDIR}/${PN}"
-
-PATCHES=(
- "${FILESDIR}/${PN}-1.7.1-cmake-automagic-deps.patch"
- # examples need to link against libsndfile unconditionally so either we could
- # make the dep unconditional or not build the examples. i chose the latter way.
- # btw, examples are not installed anyway, they are just compiled.
- "${FILESDIR}/${PN}-1.7.1-disable-examples.patch"
- "${FILESDIR}/${PN}-1.7.1-tests-conditional.patch"
- "${FILESDIR}/${PN}-1.7.1-disable-gif-quantize-buffer.patch"
- "${FILESDIR}/${P}-0001-CMakeLists.txt-comment-cpack.d-inclusion.patch"
-)
-
-DOCS=(AUTHORS ChangeLog NEWS README)
-
-src_configure() {
- use debug && append-cppflags -DSIMAGE_DEBUG=1
-
- local mycmakeargs=(
- -DSIMAGE_AVIENC_SUPPORT=OFF # Windows only
- -DSIMAGE_BUILD_SHARED_LIBS=ON
- -DSIMAGE_CGIMAGE_SUPPORT=OFF # OS X only
- -DSIMAGE_EPS_SUPPORT=ON
- -DSIMAGE_GDIPLUS_SUPPORT=OFF # Windows only
- -DSIMAGE_GIF_SUPPORT=$(usex gif)
- -DSIMAGE_JASPER_SUPPORT=OFF
- -DSIMAGE_JPEG_SUPPORT=$(usex jpeg)
- -DSIMAGE_MPEG2ENC_SUPPORT=ON
- -DSIMAGE_OGGVORBIS_SUPPORT=$(usex vorbis)
- -DSIMAGE_PIC_SUPPORT=ON
- -DSIMAGE_PNG_SUPPORT=$(usex png)
- -DSIMAGE_QIMAGE_SUPPORT=$(usex qt5)
- -DSIMAGE_QUICKTIME_SUPPORT=OFF # OS X only
- -DSIMAGE_SNDFILE_SUPPORT=$(usex sndfile)
- -DSIMAGE_TIFF_SUPPORT=$(usex tiff)
- -DSIMAGE_USE_QT5=ON
- -DSIMAGE_RGB_SUPPORT=ON
- -DSIMAGE_TGA_SUPPORT=ON
- -DSIMAGE_XWD_SUPPORT=ON
- -DTESTS=$(usex test)
- )
-
- cmake_src_configure
-}
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-12-18 8:32 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-31 1:15 [gentoo-commits] repo/gentoo:master commit in: media-libs/simage/, media-libs/simage/files/ Miroslav Šulc
-- strict thread matches above, loose matches on Subject: below --
2022-12-18 8:32 Sam James
2019-12-27 10:52 Miroslav Šulc
2019-12-16 9:34 Miroslav Šulc
2019-11-16 13:55 Miroslav Šulc
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox