From nobody Sat Nov 23 08:54:29 2024 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 4XwQks4qQVz5fBfv; Sat, 23 Nov 2024 08:54:29 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XwQks2MYQz4drf; Sat, 23 Nov 2024 08:54:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732352069; 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=kid1C3P3fL7tWL1dUx5BdeOyRhpMQ6UDiq5vDQtdIt0=; b=K9FR9WnxkIw/5n6YmRQ3VyBkOqnHvqaR7EsSbvUBlY92HmyZ+6XWgKAyXNspWS/OUNp1R3 P7YILcNVfOcY9taSRCp/itPZq9VvC9PJ+IermF35FiH/A3Z8XOglcOpzMN3RI4cY6NNf6R QCNmccThYzL8IbgRX/9ZzrTwY1T2RVj/izL0QhT21dC4KE9fq8y6JJGoMvkzWxy/s2VdZt Bc6KemsXQXV+oTQ4P7b+us5HIARIpgYSAzuP8EkIHjE9rH5Uu1L3uSyDps4WOxVanALpW4 tq4CBIvXVJwscYL2n1PSoMW+6K4tnbFDx4NPlXPZh+wchuZcOsgCtCRn4RrsJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732352069; 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=kid1C3P3fL7tWL1dUx5BdeOyRhpMQ6UDiq5vDQtdIt0=; b=ioBgPiTPy1lXIXkqU6A6qKCNlUhmaTVHwIQkObt7YISrbTRjckt3Hp2f/KJS3+icKj1eaf bSqP/neJPG6cYirPBiWMXlfyDt4xBJPWK9QUqJPLyW4iutRvQHqYcdkOpJ66kxM3mG7o2r 2INkUJfJP2NGdMHUkHhz+YPXNY3L+NJQuLtFrq8FX/DwTkUh/0orbjTHt1D0xHuInk6nXe jZrAxcULZcVtRmbQM05ss87bzElIV5sXvOf2qmS3bOg9ZDlgkkUGJmHzJIVDERaklMhY1W w0CQphjjB7WKbhXF/enal2H+4IF5XM1cUc/I00AZYFeyk2d6v08q66PEfRgDfQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732352069; a=rsa-sha256; cv=none; b=RdT4dsbuXA/vt07bMGmZUfJW1pFjBisowQGV1ScWEF9GhzG7xjzZg3hCqk05BpYoUfB1/L jb97e4WZv5sC9QGFgBMF0oQcpgByIAEM6nh3OpIu2gGbvyfWOqz6KsnBc5+r7w1YMeT30W ah9gEG4enYnMwM30NNHshsXvOp5QbjysqJtUEhrRyxWpAQsalesUaurpfHd8loeF2RG/nT 1uHrFqlAO87AX+L0fWJG2VoV+1dpO3jCdwB9Y39JoXo86S3YRBpB0FOTx8PdjFMdwvkGAQ xWhW6j92t845dT40UD4nUWz1HM/F+v6MByHlEqAZn1rOVJRk7QQ3tvimO3SOGg== 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 4XwQks1r2dz137s; Sat, 23 Nov 2024 08:54:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4AN8sTEY074501; Sat, 23 Nov 2024 08:54:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AN8sTVJ074498; Sat, 23 Nov 2024 08:54:29 GMT (envelope-from git) Date: Sat, 23 Nov 2024 08:54:29 GMT Message-Id: <202411230854.4AN8sTVJ074498@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: de48d365aad2 - main - multimedia/libgav1: Improve port 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: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-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: de48d365aad26affb3bdab811a5ce70ed9bfccbe Auto-Submitted: auto-generated The branch main has been updated by diizzy: URL: https://cgit.FreeBSD.org/ports/commit/?id=de48d365aad26affb3bdab811a5ce70ed9bfccbe commit de48d365aad26affb3bdab811a5ce70ed9bfccbe Author: Daniel Engberg AuthorDate: 2024-11-23 08:52:40 +0000 Commit: Daniel Engberg CommitDate: 2024-11-23 08:52:45 +0000 multimedia/libgav1: Improve port * Use DEBIAN packaged source instead of unofficial repo * Use upstream release archive for third party dependency * Define LICENSE_FILE * Build with c++17 instead of gnu17 * Fix install path of pkg-config file --- multimedia/libgav1/Makefile | 27 +++++++++++++++------- multimedia/libgav1/distinfo | 10 ++++---- .../files/patch-cmake_libgav1__install.cmake | 11 +++++++++ 3 files changed, 35 insertions(+), 13 deletions(-) diff --git a/multimedia/libgav1/Makefile b/multimedia/libgav1/Makefile index aa2db2abe924..597ff91dbccf 100644 --- a/multimedia/libgav1/Makefile +++ b/multimedia/libgav1/Makefile @@ -1,25 +1,36 @@ PORTNAME= libgav1 -DISTVERSIONPREFIX= v DISTVERSION= 0.19.0 PORTREVISION= 1 CATEGORIES= multimedia +MASTER_SITES= DEBIAN:DEFAULT \ + https://github.com/google/googletest/releases/download/v1.15.2/:googletest +DISTFILES= ${PORTNAME}_${DISTVERSION}.orig${EXTRACT_SUFX}:DEFAULT \ + googletest-1.15.2.tar.gz:googletest MAINTAINER= ports@FreeBSD.org COMMENT= Main profile (0) & High profile (1) compliant AV1 decoder WWW= https://chromium.googlesource.com/codecs/libgav1 LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libabsl_synchronization.so:devel/abseil -USES= cmake:testing compiler:c++17-lang localbase:ldflags -USE_GITHUB= yes +USES= cmake:testing compiler:c++17-lang localbase:ldflags tar:xz USE_LDCONFIG= yes -GH_ACCOUNT= mirrorstogooglesource -GH_TUPLE= google:googletest:release-1.11.0:gtest/third_party/googletest -CMAKE_ON= BUILD_SHARED_LIBS -CMAKE_OFF+= ${CMAKE_TESTING_ON} + +WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION} + +LDFLAGS+= -Wl,--as-needed + CMAKE_TESTING_ON= LIBGAV1_ENABLE_TESTS -LDFLAGS+= -Wl,--as-needed # avoid overlinking (abseil deps) + +CMAKE_ON= BUILD_SHARED_LIBS +CMAKE_OFF= CMAKE_CXX_EXTENSIONS \ + LIBGAV1_ENABLE_TESTS + +post-extract: + @${MKDIR} ${WRKSRC}/third_party + @${MV} ${WRKDIR}/googletest-1.15.2 ${WRKSRC}/third_party/googletest .include diff --git a/multimedia/libgav1/distinfo b/multimedia/libgav1/distinfo index a39f04e81f4a..9841c6c41ecc 100644 --- a/multimedia/libgav1/distinfo +++ b/multimedia/libgav1/distinfo @@ -1,5 +1,5 @@ -TIMESTAMP = 1698785112 -SHA256 (mirrorstogooglesource-libgav1-v0.19.0_GH0.tar.gz) = 156a831e236560508a591b386fee8b7b77c73278ea0609cbc7fb4256b244debf -SIZE (mirrorstogooglesource-libgav1-v0.19.0_GH0.tar.gz) = 1194750 -SHA256 (google-googletest-release-1.11.0_GH0.tar.gz) = b4870bf121ff7795ba20d20bcdd8627b8e088f2d1dab299a031c1034eddc93d5 -SIZE (google-googletest-release-1.11.0_GH0.tar.gz) = 886330 +TIMESTAMP = 1732349680 +SHA256 (libgav1_0.19.0.orig.tar.xz) = d73f413b9e71ad354c6f3893ae492f5d589072fb70648bc0e18f2c52a10cf2f8 +SIZE (libgav1_0.19.0.orig.tar.xz) = 757740 +SHA256 (googletest-1.15.2.tar.gz) = 7b42b4d6ed48810c5362c265a17faebe90dc2373c885e5216439d37927f02926 +SIZE (googletest-1.15.2.tar.gz) = 872667 diff --git a/multimedia/libgav1/files/patch-cmake_libgav1__install.cmake b/multimedia/libgav1/files/patch-cmake_libgav1__install.cmake new file mode 100644 index 000000000000..bd5cb78c72eb --- /dev/null +++ b/multimedia/libgav1/files/patch-cmake_libgav1__install.cmake @@ -0,0 +1,11 @@ +--- cmake/libgav1_install.cmake.orig 2024-11-23 08:48:59 UTC ++++ cmake/libgav1_install.cmake +@@ -33,7 +33,7 @@ macro(libgav1_setup_install_target) + configure_file("${libgav1_root}/cmake/libgav1.pc.template" + "${libgav1_build}/libgav1.pc" @ONLY NEWLINE_STYLE UNIX) + install(FILES "${libgav1_build}/libgav1.pc" +- DESTINATION "${prefix}/${CMAKE_INSTALL_LIBDIR}/pkgconfig") ++ DESTINATION "${CMAKE_INSTALL_PREFIX}/libdata/pkgconfig") + + # CMake config: libgav1-config.cmake + set(LIBGAV1_INCLUDE_DIRS "${prefix}/${CMAKE_INSTALL_INCLUDEDIR}")