From nobody Sat Nov 27 20:48:11 2021 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 15AFB18A928C; Sat, 27 Nov 2021 20:48:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J1kGM57grz3pVR; Sat, 27 Nov 2021 20:48:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9000F224BD; Sat, 27 Nov 2021 20:48:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1ARKmBej028065; Sat, 27 Nov 2021 20:48:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1ARKmBk4028064; Sat, 27 Nov 2021 20:48:11 GMT (envelope-from git) Date: Sat, 27 Nov 2021 20:48:11 GMT Message-Id: <202111272048.1ARKmBk4028064@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Rainer Hurling Subject: git: 1ed648eda7a8 - main - graphics/rawstudio: Add missing dependencies and renew patches List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: rhurlin X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1ed648eda7a8261167ea38c4e2e5326f35c7301f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638046091; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IGnBBnGRQHdJo45C52mcz4+6iNulwSpsTTjhRGoOMI8=; b=cPI6Uwi1W4QFRK4H1zVEoZ7/W4J5lV+WU9hfFeEo8RbvCOPEweqLpJUzZ17jwpZRvI1BSS gKY34jbD957nb2wVscwkb2mTCNbZ0DiBRVHc/xVaQKM5bhNN3zl3Kd44bdyiYEJZPwIWJr WDVf8CH9UJOXwnsElYy92l5CT2QnKpecSH2igfCucNAB7W7kpbEcZfzUp/oJzH/YDIN6GN VC6uUxt2VHlB8PMFPpEv2DOx9JKDbCiVZkakBDP32eR6JHYX7Cg2Z4KdDTBWolMvHxt0nD VJhNE5/mYRvyHIbY95M5Ehlf9xw5t+hhpcZBLBCKWvnuF82mIDtPHKTmDDrzEw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638046091; a=rsa-sha256; cv=none; b=C5VCkpDNO/bG9PW0KEC/TZsMyiuWtisQnfWwMUxetuZxw8IfJEhlJKBwaPbPvusCeRN17R Net31/+dPqGa4K7fnMvY13n2Lbf2tsV22VFYadQDfDaa2vHtgq/pyuJqf9TQW3hB5uBPHk r0p4niYxEXQHjyJy3wvVwnGHcBbdt1TdzKouildkRfLbMbMwIb8Rl/bDbib2m4ur2j76Ik LHVe3DsDLNXn4U5Qx0MbQp9SdyJhNYN3/pzP2f/o82KcLOzIdRStBOq+w/wkDSOsbCVSGj Cs6FH7ZHoRYzeUYgVabaYsHb3wP9Cdhg8FhP8FuFtQW9uG/Tmpttz9OKqyfIDQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by rhurlin: URL: https://cgit.FreeBSD.org/ports/commit/?id=1ed648eda7a8261167ea38c4e2e5326f35c7301f commit 1ed648eda7a8261167ea38c4e2e5326f35c7301f Author: Rainer Hurling AuthorDate: 2021-11-27 20:45:41 +0000 Commit: Rainer Hurling CommitDate: 2021-11-27 20:45:41 +0000 graphics/rawstudio: Add missing dependencies and renew patches - Add dependencies found via DEVELOPERS=yes set in /etc/make.conf - Reorder some Makefile vars, suggested by portclippy - Add NLS option to conditionally disable gettext support - Renew and rearrange all patches under files PR: 254011 Approved by: Oleksii Samorukov (maintainer) --- graphics/rawstudio/Makefile | 33 +++++++++++++------- graphics/rawstudio/files/patch-exiv2 | 33 -------------------- graphics/rawstudio/files/patch-libpng15 | 35 ---------------------- .../rawstudio/files/patch-librawstudio_rs-exif.cc | 11 +++++++ ...-rs-macros.h => patch-librawstudio_rs-macros.h} | 5 ++-- .../patch-plugins_load-gdk_exiv2-colorspace.cpp | 25 ++++++++++++++++ .../patch-plugins_meta-exiv2_exiv2-metadata.cpp | 11 +++++++ .../patch-plugins_output-pngfile_output-pngfile.c | 19 ++++++++++++ .../{patch-rs-tag-gui.c => patch-src_rs-tag-gui.c} | 14 ++++----- 9 files changed, 99 insertions(+), 87 deletions(-) diff --git a/graphics/rawstudio/Makefile b/graphics/rawstudio/Makefile index ef5fb8debbeb..92e128d6bf80 100644 --- a/graphics/rawstudio/Makefile +++ b/graphics/rawstudio/Makefile @@ -2,7 +2,7 @@ PORTNAME= rawstudio PORTVERSION= 2.0 -PORTREVISION= 19 +PORTREVISION= 20 CATEGORIES= graphics MASTER_SITES= http://rawstudio.org/files/release/ @@ -11,27 +11,40 @@ COMMENT= Open-source program to read and manipulate RAW photo images LICENSE= GPLv2 -LIB_DEPENDS= libpng.so:graphics/png \ +BROKEN_powerpc64= fails to link: libicuuc.so. undefined reference to __cxa_throw_bad_array_new_length + +BUILD_DEPENDS= ${LOCALBASE}/include/fftw3.h:math/fftw3 +LIB_DEPENDS= libcurl.so:ftp/curl \ liblcms.so:graphics/lcms \ libexiv2.so:graphics/exiv2 \ libdbus-1.so:devel/dbus \ libfftw3f.so:math/fftw3-float \ - liblensfun.so:graphics/lensfun \ libflickcurl.so:www/flickcurl \ - libgphoto2.so:graphics/libgphoto2 -BUILD_DEPENDS= ${LOCALBASE}/include/fftw3.h:math/fftw3 + libfontconfig.so:x11-fonts/fontconfig \ + libfreetype.so:print/freetype2 \ + libgphoto2.so:graphics/libgphoto2 \ + libharfbuzz.so:print/harfbuzz \ + liblensfun.so:graphics/lensfun \ + libpng.so:graphics/png \ + libraptor2.so:textproc/raptor2 \ + libtiff.so:graphics/tiff -BROKEN_powerpc64= fails to link: libicuuc.so. undefined reference to __cxa_throw_bad_array_new_length +USES= compiler:c++11-lang desktop-file-utils gmake gnome \ + jpeg libtool localbase pathfix pkgconfig sqlite xorg +USE_GNOME= cairo gconf2 gdkpixbuf2 gtk20 libxml2 +USE_LDCONFIG= yes +USE_XORG= x11 -USES= compiler:c++11-lang cpe desktop-file-utils gettext gmake \ - gnome jpeg libtool localbase pathfix pkgconfig sqlite GNU_CONFIGURE= yes -USE_GNOME= gtk20 libxml2 gconf2 -USE_LDCONFIG= yes INSTALL_TARGET= install-strip CXXFLAGS+= -Wno-c++11-narrowing +OPTIONS_DEFINE= NLS +OPTIONS_SUB= yes + +NLS_USES= gettext + post-patch: @${REINPLACE_CMD} -e '/^pkg_modules=/s,libssl,gthread-2.0,' \ ${WRKSRC}/configure diff --git a/graphics/rawstudio/files/patch-exiv2 b/graphics/rawstudio/files/patch-exiv2 deleted file mode 100644 index 0212d7c6d9b6..000000000000 --- a/graphics/rawstudio/files/patch-exiv2 +++ /dev/null @@ -1,33 +0,0 @@ ---- librawstudio/rs-exif.cc.orig -+++ librawstudio/rs-exif.cc -@@ -21,6 +21,8 @@ - #include - #include - #include -+#include -+#include - #include "rs-exif.h" - #include - #include "rs-library.h" ---- plugins/load-gdk/exiv2-colorspace.cpp.orig -+++ plugins/load-gdk/exiv2-colorspace.cpp -@@ -22,6 +22,8 @@ - #include - #include - #include -+#include -+#include - #include - #include "exiv2-colorspace.h" - #include ---- plugins/meta-exiv2/exiv2-metadata.cpp.orig -+++ plugins/meta-exiv2/exiv2-metadata.cpp -@@ -22,6 +22,8 @@ - #include - #include - #include -+#include -+#include - #include - #include "exiv2-metadata.h" - #include diff --git a/graphics/rawstudio/files/patch-libpng15 b/graphics/rawstudio/files/patch-libpng15 deleted file mode 100644 index c23a24f64034..000000000000 --- a/graphics/rawstudio/files/patch-libpng15 +++ /dev/null @@ -1,35 +0,0 @@ ---- plugins/output-pngfile/output-pngfile.c -+++ plugins/output-pngfile/output-pngfile.c -@@ -23,6 +23,7 @@ - #include - #include "config.h" - #include -+#include - - #define RS_TYPE_PNGFILE (rs_pngfile_type) - #define RS_PNGFILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RS_TYPE_PNGFILE, RSPngfile)) -@@ -198,7 +199,7 @@ - rs_icc_profile_get_data(profile, &data, &data_length); - - // FIXME: Insert correct profile name -- png_set_iCCP(png_ptr, info_ptr, "Profile name", PNG_COMPRESSION_TYPE_BASE, data, data_length); -+ png_set_iCCP(png_ptr, info_ptr, "Profile name", PNG_COMPRESSION_TYPE_BASE, (png_const_bytep)data, data_length); - if (pngfile->save16bit) - png_set_gAMA(png_ptr, info_ptr, 1.0); - } ---- plugins/load-gdk/exiv2-colorspace.cpp -+++ plugins/load-gdk/exiv2-colorspace.cpp -@@ -125,11 +125,11 @@ - - int compression_type; - /* Extract embedded ICC profile */ -- if (info_ptr->valid & PNG_INFO_iCCP) -+ if (png_get_valid(png_ptr, info_ptr, TRUE) & PNG_INFO_iCCP) - { - png_uint_32 retval = png_get_iCCP (png_ptr, info_ptr, - (png_charpp) &icc_profile_title, &compression_type, -- (png_charpp) &icc_profile, (png_uint_32*) &icc_profile_size); -+ (png_byte**) &icc_profile, (png_uint_32*) &icc_profile_size); - if (retval != 0) - { - RSIccProfile *icc = rs_icc_profile_new_from_memory((gchar*)icc_profile, icc_profile_size, TRUE); diff --git a/graphics/rawstudio/files/patch-librawstudio_rs-exif.cc b/graphics/rawstudio/files/patch-librawstudio_rs-exif.cc new file mode 100644 index 000000000000..b6ba4a48bf13 --- /dev/null +++ b/graphics/rawstudio/files/patch-librawstudio_rs-exif.cc @@ -0,0 +1,11 @@ +--- librawstudio/rs-exif.cc.orig 2011-02-15 17:28:05 UTC ++++ librawstudio/rs-exif.cc +@@ -21,6 +21,8 @@ + #include + #include + #include ++#include ++#include + #include "rs-exif.h" + #include + #include "rs-library.h" diff --git a/graphics/rawstudio/files/patch-rs-macros.h b/graphics/rawstudio/files/patch-librawstudio_rs-macros.h similarity index 75% rename from graphics/rawstudio/files/patch-rs-macros.h rename to graphics/rawstudio/files/patch-librawstudio_rs-macros.h index fdc456950c0c..f57e79f1be0d 100644 --- a/graphics/rawstudio/files/patch-rs-macros.h +++ b/graphics/rawstudio/files/patch-librawstudio_rs-macros.h @@ -1,5 +1,5 @@ ---- librawstudio/rs-macros.h 2014-02-19 06:34:15.000000000 +0100 -+++ librawstudio/rs-macros.h 2014-02-19 06:34:21.000000000 +0100 +--- librawstudio/rs-macros.h.orig 2011-02-15 17:28:05 UTC ++++ librawstudio/rs-macros.h @@ -51,12 +51,12 @@ #if __GNUC__ >= 3 #define likely(x) __builtin_expect (!!(x), 1) @@ -14,3 +14,4 @@ +// #define align(x) #define __deprecated #endif + diff --git a/graphics/rawstudio/files/patch-plugins_load-gdk_exiv2-colorspace.cpp b/graphics/rawstudio/files/patch-plugins_load-gdk_exiv2-colorspace.cpp new file mode 100644 index 000000000000..66b5ee793016 --- /dev/null +++ b/graphics/rawstudio/files/patch-plugins_load-gdk_exiv2-colorspace.cpp @@ -0,0 +1,25 @@ +--- plugins/load-gdk/exiv2-colorspace.cpp.orig 2011-02-23 22:35:18 UTC ++++ plugins/load-gdk/exiv2-colorspace.cpp +@@ -22,6 +22,8 @@ + #include + #include + #include ++#include ++#include + #include + #include "exiv2-colorspace.h" + #include +@@ -125,11 +127,11 @@ jpeg_fail: + + int compression_type; + /* Extract embedded ICC profile */ +- if (info_ptr->valid & PNG_INFO_iCCP) ++ if (png_get_valid(png_ptr, info_ptr, TRUE) & PNG_INFO_iCCP) + { + png_uint_32 retval = png_get_iCCP (png_ptr, info_ptr, + (png_charpp) &icc_profile_title, &compression_type, +- (png_charpp) &icc_profile, (png_uint_32*) &icc_profile_size); ++ (png_byte**) &icc_profile, (png_uint_32*) &icc_profile_size); + if (retval != 0) + { + RSIccProfile *icc = rs_icc_profile_new_from_memory((gchar*)icc_profile, icc_profile_size, TRUE); diff --git a/graphics/rawstudio/files/patch-plugins_meta-exiv2_exiv2-metadata.cpp b/graphics/rawstudio/files/patch-plugins_meta-exiv2_exiv2-metadata.cpp new file mode 100644 index 000000000000..c78ebecd9bf2 --- /dev/null +++ b/graphics/rawstudio/files/patch-plugins_meta-exiv2_exiv2-metadata.cpp @@ -0,0 +1,11 @@ +--- plugins/meta-exiv2/exiv2-metadata.cpp.orig 2011-02-26 23:13:39 UTC ++++ plugins/meta-exiv2/exiv2-metadata.cpp +@@ -22,6 +22,8 @@ + #include + #include + #include ++#include ++#include + #include + #include "exiv2-metadata.h" + #include diff --git a/graphics/rawstudio/files/patch-plugins_output-pngfile_output-pngfile.c b/graphics/rawstudio/files/patch-plugins_output-pngfile_output-pngfile.c new file mode 100644 index 000000000000..e1de783c9e0a --- /dev/null +++ b/graphics/rawstudio/files/patch-plugins_output-pngfile_output-pngfile.c @@ -0,0 +1,19 @@ +--- plugins/output-pngfile/output-pngfile.c.orig 2011-03-26 01:52:29 UTC ++++ plugins/output-pngfile/output-pngfile.c +@@ -23,6 +23,7 @@ + #include + #include "config.h" + #include ++#include + + #define RS_TYPE_PNGFILE (rs_pngfile_type) + #define RS_PNGFILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RS_TYPE_PNGFILE, RSPngfile)) +@@ -198,7 +199,7 @@ execute(RSOutput *output, RSFilter *filter) + rs_icc_profile_get_data(profile, &data, &data_length); + + // FIXME: Insert correct profile name +- png_set_iCCP(png_ptr, info_ptr, "Profile name", PNG_COMPRESSION_TYPE_BASE, data, data_length); ++ png_set_iCCP(png_ptr, info_ptr, "Profile name", PNG_COMPRESSION_TYPE_BASE, (png_const_bytep)data, data_length); + if (pngfile->save16bit) + png_set_gAMA(png_ptr, info_ptr, 1.0); + } diff --git a/graphics/rawstudio/files/patch-rs-tag-gui.c b/graphics/rawstudio/files/patch-src_rs-tag-gui.c similarity index 67% rename from graphics/rawstudio/files/patch-rs-tag-gui.c rename to graphics/rawstudio/files/patch-src_rs-tag-gui.c index c4033fb4df25..a0b69d3c2c53 100644 --- a/graphics/rawstudio/files/patch-rs-tag-gui.c +++ b/graphics/rawstudio/files/patch-src_rs-tag-gui.c @@ -1,6 +1,6 @@ ---- src/rs-tag-gui.c.orig 2011-02-15 18:28:05.000000000 +0100 -+++ src/rs-tag-gui.c 2014-02-14 18:36:48.000000000 +0100 -@@ -93,11 +93,6 @@ +--- src/rs-tag-gui.c.orig 2011-02-15 17:28:05 UTC ++++ src/rs-tag-gui.c +@@ -93,11 +93,6 @@ rs_tag_gui_toolbox_new(RSLibrary *library, RSStore *st return box; } @@ -12,15 +12,15 @@ gboolean selected(GtkEntryCompletion *completion, GtkTreeModel *model, GtkTreeIter *iter, gpointer user_data) { -@@ -179,6 +174,11 @@ +@@ -178,6 +173,11 @@ rs_library_tag_entry_new(RSLibrary *library) + return found; } - ++ +GtkWidget * +rs_library_tag_entry_new(RSLibrary *library) +{ + g_assert(RS_IS_LIBRARY(library)); -+ + GtkWidget *entry = gtk_entry_new(); GtkEntryCompletion *completion = gtk_entry_completion_new(); - GtkListStore *store = gtk_list_store_new(1, G_TYPE_STRING);