From nobody Fri Jun 17 04:03:53 2022 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 4512A8473EA; Fri, 17 Jun 2022 04:03:54 +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 4LPQQL1VsTz3C7Y; Fri, 17 Jun 2022 04:03:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655438634; 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=EO8YZXHtL70ERTEBAeQg5h8G2rIRZlANBvQdi7HYJ6g=; b=LH4+AAKgVqAWYz6+lCvNEkDVSKov6Whz2VguQ9JHJrE09hqwiCjnh7vfCOhcGBt7xyoFF5 rKo/fQxgbR1TqRxB4lzpL0U0Q8uu6wa/kGzXgYHuF18FvVqHCExvT8qQGfV/hUfANFCz6M 6xkcrJEC2EamzXoZkXwG7sONJw7DxGp0/m6oykN0Zg7FR8cT5vGMbuC/JVpi2h5CsKbxKm lNLZO3hTaZzUZdikYoywgcoD7IoCekEYrLnJDU7kiSx29clXJEximrbkNi3agjtow7r+c5 JzJnUHdXP0SrlAhudlTFe1lcAr6c+5U+6hcodrNfaNCSc9sEOsdiWIodamRPJA== 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 13787187CC; Fri, 17 Jun 2022 04:03:54 +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 25H43riE053913; Fri, 17 Jun 2022 04:03:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25H43r8R053912; Fri, 17 Jun 2022 04:03:53 GMT (envelope-from git) Date: Fri, 17 Jun 2022 04:03:53 GMT Message-Id: <202206170403.25H43r8R053912@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: a91364449db6 - main - www/srt: Add options that define what encryption library to use 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: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a91364449db6feed6fd47b86b0dcf4bca300c671 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655438634; 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=EO8YZXHtL70ERTEBAeQg5h8G2rIRZlANBvQdi7HYJ6g=; b=oCeciW+wVP37/IJ8Sv18f1G3LDb8aAasEV8LtzNm2SmKsoJpvN4dVyNu3Ue4bHtjjlbxyT mLGm/4y8oAECgL715BK8M/0qxL+B7sVpNH0NuMX+ZqstptFOlSIBj1mig2h7+VedlAhka4 QOBnLdmjWmzFMnMgM37RnegA7NBwOjIaNVVAg6/tdHqqlfnUk+daJk0uaEnmtahbJf8qTv pd5YyGAewsJowCEIx8xfBD+t8qW0xqi+TI/07jmRj6RGYT2NwgBnvUK0UmgYKFDzqfY+7s qdw8J8pUrfchzn3gXJsD5cOu1S5lmg1u5BnSG48jrfg8AODf8Yu7tJFQCA01Pg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1655438634; a=rsa-sha256; cv=none; b=XNOzJGjBNpwlIqRbLBL0ByRYMPc/KP7VGTXMHcJ+aT8mQ9oubdVeBTITiBo9vekQJb36GD x8YztVrxejq2CN9quIK4x6dgERyfuX9Vm5gfPFZKpYqgBI7u4k7iNTFG1jRZH16FIOgkhp yuAVmp+pRvoj0Q3uDKdwno71bpozQDJ6LXZ07+Fan5Q6pRyBuuTx12zggb16Q0f1nkKULU Guhzr8zq6VyYqwYGf7iywPVORLD8RWIE0kFoT2q7bKbz6VYf6VJJFFxfphcH+3/1J50V9+ IBtE5A48h4oRVYf1f5JJhqA+PO3M8I5MvWR4HQlc4flA6BuJGbREINQSqcDtng== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=a91364449db6feed6fd47b86b0dcf4bca300c671 commit a91364449db6feed6fd47b86b0dcf4bca300c671 Author: Yuri Victorovich AuthorDate: 2022-06-17 03:48:00 +0000 Commit: Yuri Victorovich CommitDate: 2022-06-17 04:03:49 +0000 www/srt: Add options that define what encryption library to use --- www/srt/Makefile | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/www/srt/Makefile b/www/srt/Makefile index 2290a87910b0..c9865437080f 100644 --- a/www/srt/Makefile +++ b/www/srt/Makefile @@ -1,6 +1,7 @@ PORTNAME= srt DISTVERSIONPREFIX= v DISTVERSION= 1.5.0 +PORTREVISION= 1 CATEGORIES= www MAINTAINER= yuri@FreeBSD.org @@ -11,7 +12,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE RUN_DEPENDS= bash:shells/bash -USES= cmake:testing compiler:c++11-lang shebangfix ssl +USES= cmake:testing compiler:c++11-lang shebangfix USE_GITHUB= yes GH_ACCOUNT= Haivision @@ -20,4 +21,27 @@ SHEBANG_FILES= scripts/srt-ffplay CMAKE_TESTING_ON= ENABLE_TESTING ENABLE_UNITTESTS # 2 tests are known to fail: https://github.com/Haivision/srt/issues/2389, https://github.com/Haivision/srt/issues/2390 +OPTIONS_RADIO= ENCRYPTION +OPTIONS_RADIO_ENCRYPTION= NO_ENCRYPTION OPENSSL GNUTLS MBEDTLS +OPTIONS_DEFAULT= OPENSSL + +NO_ENCRYPTION_DESC= No encryption +NO_ENCRYPTION_CMAKE_ON= -DENABLE_ENCRYPTION=OFF + +OPENSSL_CMAKE_ON= -DUSE_ENCLIB=openssl +OPENSSL_USES= ssl + +GNUTLS_CMAKE_ON= -DUSE_ENCLIB=gnutls +GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls \ + libnettle.so:security/nettle + +MBEDTLS_CMAKE_ON= -DUSE_ENCLIB=mbedtls +MBEDTLS_LIB_DEPENDS= libmbedtls.so:security/mbedtls + +post-install-OPENSSL-on: + # fix .pc files + @${REINPLACE_CMD} -e 's|Requires.private: openssl libcrypto|Requires.private:|; s|Libs.private:.*|& -lssl -lcrypto|' \ + ${STAGEDIR}${PREFIX}/libdata/pkgconfig/srt.pc \ + ${STAGEDIR}${PREFIX}/libdata/pkgconfig/haisrt.pc + .include