From nobody Thu Apr 27 12:04:25 2023 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 4Q6ZCt2K5sz474PX; Thu, 27 Apr 2023 12:04:26 +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 4Q6ZCt1ZHYz3mjP; Thu, 27 Apr 2023 12:04:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682597066; 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=NNpieJaurEIzsohUFduHAxRYplOuC/mhp1E+u5D0SAE=; b=OE2NO7K9iGJn95x+Vj33fz7pusBUnkG+I0YOdZdErkX3VZVPzeW7wZklnAWoppFMjZDaq/ fLgaJjlkYOCqjQ/VS+8tYiE0URXFPkV9JSdVc25tiKMBA+1znYiCQPGbkf24n2R2BZWg1U VqPSqZwp+m+Zaor7JAyTGPq4XToQibPx4SfeTMD3cLryeTAPTFx7sthmqZvkYYu782nbh1 wA00fv9TXrgi8yzRfFe9SPSGyrhzBG++BpTseZPtidWoNpDflJtRtn3NNB0h1l6mYSHkKj fWfBJQath/P8D58YdtMU81z06W8M51cvG/sQcSAt1EjlZBNL5lLDKBHwATXQcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682597066; 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=NNpieJaurEIzsohUFduHAxRYplOuC/mhp1E+u5D0SAE=; b=envvoUbHvyFgzk4aih1K97rfspLYmcdlg6U025mhPwbIIPjTjlVFEyGyEYt4YWgH9lxohm j5xcvunYG7xS00562/ZEJacD2V9kdK1FAqjxlICUTwLfPAJeloIq8LvKUFa9ui74JyKjpy VnFhIeV0IoS9Po2vzTPrzmmik+Rt3ruJcNdfpxaS8ChKd1i6yd7ndimUEE8QknzLRs6YGw 6Ve9Y/7SSVmEZMyrVqFzdh+s3s48lTyblC2IREL7yP/O9yk6ftkC62/xr6RZtjnXL/FSt4 wR6SCBHGKqqC4I5KpsSFsfS6d3jam9VT/08laTO/Ugg9uwmWL6st+2uwAoYIeA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1682597066; a=rsa-sha256; cv=none; b=MMkcY/9iFKB/YWqT7sVJ5Ca1XOv/yKXcQ5kOBFjcKgJgtuGWpT0rpK1d5I8ecOwY2uRFN0 E+0qDpyHK/3Q6+2lEiCEvzs9EOpI7kTHNa3799tahmVGKBJwu4dz5h6Q1+fGH3tMOiuGJT CKOcdnquAS/s1V9iamJqBb556r5MbEio8EuqmwSADrk8JXEvvgcEWskSu7atGf8FxqmZBx ZEk8Z6AMiCcFAeQhtlY2Z4MjANInG/No62ZCIMlu8coSn/0vDjN8ffvgBkPNa/rSAh9Xcx IoeHUXWY4/dLX36qz5MnM8PZC8vudrQ2A1iK1RavAp68BBMpqk294h1NmKAKfw== 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 4Q6ZCt0cLDzH6F; Thu, 27 Apr 2023 12:04:26 +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 33RC4Pm3046659; Thu, 27 Apr 2023 12:04:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33RC4PBS046658; Thu, 27 Apr 2023 12:04:25 GMT (envelope-from git) Date: Thu, 27 Apr 2023 12:04:25 GMT Message-Id: <202304271204.33RC4PBS046658@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Daniel Engberg Subject: git: 1bd57a8e0bd2 - main - graphics/synfig*: Define later versions of deps and fix build with FFmpeg 6 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: diizzy X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1bd57a8e0bd26122c811d13c3573df974f4bf77c Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by diizzy: URL: https://cgit.FreeBSD.org/ports/commit/?id=1bd57a8e0bd26122c811d13c3573df974f4bf77c commit 1bd57a8e0bd26122c811d13c3573df974f4bf77c Author: Daniel Engberg AuthorDate: 2023-04-27 11:08:31 +0000 Commit: Daniel Engberg CommitDate: 2023-04-27 12:01:45 +0000 graphics/synfig*: Define later versions of deps and fix build with FFmpeg 6 - Bump MLT and ImageMagick dependencies to 7 - Import patch from Debian to fix build FFmpeg 6 (synfig only) - Rework ports to better follow Porters Handbook PR: 270701 Approved by: portmgr (maintainer timeout, 2+ weeks) --- graphics/synfig/Makefile | 24 +++++----- graphics/synfig/distinfo | 3 +- .../patch-src_modules_mod__libavcodec_trgt__av.cpp | 51 ++++++++++++++++++++++ graphics/synfigstudio/Makefile | 25 ++++++----- graphics/synfigstudio/distinfo | 3 +- 5 files changed, 80 insertions(+), 26 deletions(-) diff --git a/graphics/synfig/Makefile b/graphics/synfig/Makefile index 43989cb47327..083c5b60da7c 100644 --- a/graphics/synfig/Makefile +++ b/graphics/synfig/Makefile @@ -1,7 +1,7 @@ PORTNAME= synfig -PORTVERSION= 1.4.4 -DISTVERSIONPREFIX=v -PORTREVISION= 3 +DISTVERSIONPREFIX= v +DISTVERSION= 1.4.4 +PORTREVISION= 4 CATEGORIES= graphics devel multimedia MAINTAINER= portmaster@BSDforge.com @@ -26,22 +26,24 @@ LIB_DEPENDS= libImath.so:math/Imath \ libpng.so:graphics/png \ libtiff.so:graphics/tiff -PORTSCOUT= limitw:1,even - USES= autoreconf compiler:c++11-lang gmake gnome iconv jpeg \ - libtool localbase magick:6 mlt:6 pathfix pkgconfig + libtool localbase magick:7 mlt:7 pathfix pkgconfig USE_CXXSTD= c++11 USE_GITHUB= yes USE_GNOME= cairo glibmm intltool libxml++26 pango +USE_LDCONFIG= yes + +PORTSCOUT= limitw:1,even + GNU_CONFIGURE= yes -CONFIGURE_ARGS= ${ICONV_CONFIGURE_ARG} -CONFIGURE_ENV+= ac_cv_path_SED=${LOCALBASE}/bin/gsed -# Other spurious uses of direct sed have popped up -BINARY_ALIAS= sed=${LOCALBASE}/bin/gsed INSTALL_TARGET= install-strip -USE_LDCONFIG= yes WRKSRC_SUBDIR= synfig-core +BINARY_ALIAS= sed=${LOCALBASE}/bin/gsed + +CONFIGURE_ENV+= ac_cv_path_SED=${LOCALBASE}/bin/gsed +CONFIGURE_ARGS= ${ICONV_CONFIGURE_ARG} + OPTIONS_DEFINE= DOCS NLS OPTIONS_SUB= yes diff --git a/graphics/synfig/distinfo b/graphics/synfig/distinfo index d3ccbfa9733b..30c6d8a6d569 100644 --- a/graphics/synfig/distinfo +++ b/graphics/synfig/distinfo @@ -1,4 +1,3 @@ -TIMESTAMP = 1673053271 +TIMESTAMP = 1680950793 SHA256 (synfig-synfig-v1.4.4_GH0.tar.gz) = 83357c3282ecb4e6be46771fde1688662ca184eab8901cef66fe2bf000b99519 -SHA512 (synfig-synfig-v1.4.4_GH0.tar.gz) = 1b0ef61cae21130c6d8068212cacf6d6a2d6264a06fa5275f50384a45ae1e75b2df21c11c920de42588bc924e385de5ce2b4f7565ab85026bf835c13eddb9eb5 SIZE (synfig-synfig-v1.4.4_GH0.tar.gz) = 12943798 diff --git a/graphics/synfig/files/patch-src_modules_mod__libavcodec_trgt__av.cpp b/graphics/synfig/files/patch-src_modules_mod__libavcodec_trgt__av.cpp new file mode 100644 index 000000000000..1cab65ab6bbb --- /dev/null +++ b/graphics/synfig/files/patch-src_modules_mod__libavcodec_trgt__av.cpp @@ -0,0 +1,51 @@ +--- src/modules/mod_libavcodec/trgt_av.cpp.orig 2022-12-24 14:01:41 UTC ++++ src/modules/mod_libavcodec/trgt_av.cpp +@@ -38,6 +38,7 @@ + extern "C" + { + #ifdef HAVE_LIBAVFORMAT_AVFORMAT_H ++# include + # include + #elif defined(HAVE_AVFORMAT_H) + # include +@@ -234,12 +235,14 @@ class Target_LibAVCodec::Internal (public) + close(); + + if (!av_registered) { +- av_register_all(); ++#if LIBAVCODEC_VERSION_MAJOR < 59 ++ av_register_all(); ++#endif + av_registered = true; + } + + // guess format +- AVOutputFormat *format = av_guess_format(NULL, filename.c_str(), NULL); ++ const AVOutputFormat *format = av_guess_format(NULL, filename.c_str(), NULL); + if (!format) { + synfig::warning("Target_LibAVCodec: unable to guess the output format, defaulting to MPEG"); + format = av_guess_format("mpeg", NULL, NULL); +@@ -254,7 +257,7 @@ class Target_LibAVCodec::Internal (public) + context = avformat_alloc_context(); + assert(context); + context->oformat = format; +- if (filename.size() + 1 > sizeof(context->filename)) { ++ /*if (filename.size() + 1 > sizeof(context->filename)) { + synfig::error( + "Target_LibAVCodec: filename too long, max length is %d, filename is '%s'", + sizeof(context->filename) - 1, +@@ -262,7 +265,13 @@ class Target_LibAVCodec::Internal (public) + close(); + return false; + } +- memcpy(context->filename, filename.c_str(), filename.size() + 1); ++ memcpy(context->filename, filename.c_str(), filename.size() + 1);*/ ++ context->url = av_strndup(filename.c_str(), filename.size()); ++ if (!context->url) { ++ synfig::error("Target_LibAVCodec: cannot allocate space for filename"); ++ close(); ++ return false; ++ } + + packet = av_packet_alloc(); + assert(packet); diff --git a/graphics/synfigstudio/Makefile b/graphics/synfigstudio/Makefile index 51b15e01ca94..df960fecdfe9 100644 --- a/graphics/synfigstudio/Makefile +++ b/graphics/synfigstudio/Makefile @@ -1,7 +1,7 @@ PORTNAME= synfigstudio -PORTVERSION= 1.4.4 -DISTVERSIONPREFIX=v -PORTREVISION= 4 +DISTVERSIONPREFIX= v +DISTVERSION= 1.4.4 +PORTREVISION= 5 CATEGORIES= graphics multimedia MAINTAINER= portmaster@BSDforge.com @@ -24,22 +24,25 @@ LIB_DEPENDS= libImath.so:math/Imath \ libsynfig.so:graphics/synfig RUN_DEPENDS= xdg-open:devel/xdg-utils -PORTSCOUT= limitw:1,even - -USES= autoreconf compiler:c++11-lang desktop-file-utils \ - gmake gnome libtool localbase magick:6 mlt:6 pathfix pkgconfig \ +USES= autoreconf compiler:c++11-lang desktop-file-utils gmake \ + gnome libtool localbase magick:7 mlt:7 pathfix pkgconfig \ shared-mime-info +USE_CXXSTD= c++11 USE_GITHUB= yes GH_ACCOUNT= synfig GH_PROJECT= synfig -WRKSRC_SUBDIR= synfig-studio -USE_CXXSTD= c++11 USE_GNOME= gdkpixbuf2 gtkmm30 intltool +USE_LDCONFIG= yes + +PORTSCOUT= limitw:1,even + GNU_CONFIGURE= yes +INSTALL_TARGET= install-strip +WRKSRC_SUBDIR= synfig-studio + BINARY_ALIAS= sed=${LOCALBASE}/bin/gsed + CONFIGURE_ARGS= --disable-update-mimedb -INSTALL_TARGET= install-strip -USE_LDCONFIG= yes OPTIONS_DEFINE= DOCS JACK NLS OPTIONS_SUB= yes diff --git a/graphics/synfigstudio/distinfo b/graphics/synfigstudio/distinfo index e790156deeab..db253a958263 100644 --- a/graphics/synfigstudio/distinfo +++ b/graphics/synfigstudio/distinfo @@ -1,4 +1,3 @@ -TIMESTAMP = 1673068380 +TIMESTAMP = 1680950823 SHA256 (synfig-synfig-v1.4.4_GH0.tar.gz) = 83357c3282ecb4e6be46771fde1688662ca184eab8901cef66fe2bf000b99519 -SHA512 (synfig-synfig-v1.4.4_GH0.tar.gz) = 1b0ef61cae21130c6d8068212cacf6d6a2d6264a06fa5275f50384a45ae1e75b2df21c11c920de42588bc924e385de5ce2b4f7565ab85026bf835c13eddb9eb5 SIZE (synfig-synfig-v1.4.4_GH0.tar.gz) = 12943798