From nobody Wed Oct 19 15:23:15 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 4Msvcz27Vbz4gCnd; Wed, 19 Oct 2022 15:23:15 +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 4Msvcz1dzXz3VGX; Wed, 19 Oct 2022 15:23:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666192995; 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=v+BAzjv2PuaJrSPc1YkFFhW/FvhzRltcd5hnQPvR+nU=; b=UFBJMFL3Jk4m2ni7cu+nv7Km5ZD2TPwKfjAND9wg0oVS9iOZNxZKirw2sav3o8/qq4VsV/ i/I6yto3RBqAW+lyBEsJvH8lQQThGONN6h5LSjTkD8wRmllGmSFxsD3G/XFXC2RPjXNdkl 9I9o9fZq/xPTXZ946EfLCfC/M/JXLpKZxkyTzewh6kmvt+ZNWbdryavCZB8seHdG88ZsZT Mbs3LwXpDxy46DfHc6f4W+ffwWAHhaFzsMsRPW0/Xm3qGa0YYnQjFOCrjSBMq74F2D466T 14ngAAkX3ioJhTc8hIZd4moAuqwPeHf77M1PxC4j85jHCPmhKHwBe7ltfdstqQ== 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 4Msvcz0j2DzZ9l; Wed, 19 Oct 2022 15:23:15 +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 29JFNFo4022704; Wed, 19 Oct 2022 15:23:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29JFNFun022703; Wed, 19 Oct 2022 15:23:15 GMT (envelope-from git) Date: Wed, 19 Oct 2022 15:23:15 GMT Message-Id: <202210191523.29JFNFun022703@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: "Jason E. Hale" Subject: git: 6f636c04e71f - main - audio/rsgain: New 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: 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: jhale X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6f636c04e71f83b5d6c1eb30d5fa74bc9332528b Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666192995; 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=v+BAzjv2PuaJrSPc1YkFFhW/FvhzRltcd5hnQPvR+nU=; b=fntomo0hNx0SIxjO6yuZDeq+v0da61NP8lIbJKFOkrrVLbWqrYAFFlHrDXiYhEJGTTU/tc hXmWDXX28AmPGCTjnnqrWB99PUk2BsEWU4RliyeIlYlf92BuPmz2LHy7FRLjPo3w31DOp0 50Mriv6w2M8u05AMnAqWdvehMsds1/A41n1hSzG4geRjPOa7H72UxvUkuZoShnvG1XThJm jaHviDRp0FCtv0mU5UpsmK34Iy1PVBsxdb/acB0/9dCW7kIVbZoV7eECgQSRBI8lnXdUtT KlAI93odg2bToVA06jbZzw2nOvbrI59kna6VAt4Ckj+ngJu8ATma/HBoNu6Pug== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1666192995; a=rsa-sha256; cv=none; b=R2ysG1ye28mpx/ZAW5PPA0zSy6AfHghQ7sXKQIRKijFdaQ5fbT/PNu/y5P8J2f/0CAZ15C hjUQOYyGER5q9xQFmy8dJnLlmQ7HBSVuP8bhsS44lEpW4HHkltAnr2ptFjkh9YBS1PwRI7 YB6PWvhXbFkT8ljmg2gfmEVhm7DuCQwwIrSeaB82ZDj27Lk+DMYVqLVKIz22nW1dUJj/6C 59JYLRzfTqtwZ7kctPH+xI/DgLl8Oo75m/8+JQwJJi6Akf2AvWvAv7fkYvzCBpASAC9Knd 2z6obIB4Wym9GG3BYqUsg+MTo0p91nVTpdnbG9MDoXl+yDbqbjsKeT42hb0rpQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhale: URL: https://cgit.FreeBSD.org/ports/commit/?id=6f636c04e71f83b5d6c1eb30d5fa74bc9332528b commit 6f636c04e71f83b5d6c1eb30d5fa74bc9332528b Author: Jason E. Hale AuthorDate: 2022-10-19 15:19:12 +0000 Commit: Jason E. Hale CommitDate: 2022-10-19 15:22:02 +0000 audio/rsgain: New port rsgain (really simple gain) is a ReplayGain 2.0 tagging utility for Windows, macOS, and Linux. rsgain applies loudness metadata tags to your files, while leaving the audio stream untouched. A ReplayGain-compatible player will dynamically adjust the volume of your tagged files during playback. rsgain is designed with a "batteries included" philosophy, allowing a user to scan their entire music library without requiring external scripts or other tools. It aims to strike the perfect balance between power and simplicity by providing multiple user interfaces. https://github.com/complexlogic/rsgain/ --- audio/Makefile | 1 + audio/rsgain/Makefile | 32 ++++++++++++++++++++++++++++++++ audio/rsgain/distinfo | 3 +++ audio/rsgain/files/patch-src_tag.cpp | 25 +++++++++++++++++++++++++ audio/rsgain/pkg-descr | 10 ++++++++++ audio/rsgain/pkg-plist | 5 +++++ 6 files changed, 76 insertions(+) diff --git a/audio/Makefile b/audio/Makefile index 4297f68f566a..6b1acdba0c2e 100644 --- a/audio/Makefile +++ b/audio/Makefile @@ -692,6 +692,7 @@ SUBDIR += rnnoise SUBDIR += rnnoise-nu SUBDIR += rosegarden + SUBDIR += rsgain SUBDIR += rsynth SUBDIR += rtaudio SUBDIR += rtmidi diff --git a/audio/rsgain/Makefile b/audio/rsgain/Makefile new file mode 100644 index 000000000000..cd2e204e77f5 --- /dev/null +++ b/audio/rsgain/Makefile @@ -0,0 +1,32 @@ +PORTNAME= rsgain +DISTVERSIONPREFIX= v +DISTVERSION= 3.0.1 +CATEGORIES= audio + +MAINTAINER= jhale@FreeBSD.org +COMMENT= ReplayGain 2.0 tagging utility +WWW= https://github.com/complexlogic/rsgain + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libebur128.so:audio/libebur128 \ + libtag.so:audio/taglib \ + libfmt.so:devel/libfmt \ + libinih.so:devel/inih \ + libavcodec.so:multimedia/ffmpeg + +USES= cmake compiler:c++2b-lang pkgconfig + +USE_GITHUB= yes +GH_ACCOUNT= complexlogic + +CXXFLAGS+= -pthread + +OPTIONS_DEFINE= DOCS + +post-install: + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} + +.include diff --git a/audio/rsgain/distinfo b/audio/rsgain/distinfo new file mode 100644 index 000000000000..1e05beb41299 --- /dev/null +++ b/audio/rsgain/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1666113201 +SHA256 (complexlogic-rsgain-v3.0.1_GH0.tar.gz) = 928a0d5aefb0e2d195c44a7571425d39f0e5065050c534032ee746d91596f22d +SIZE (complexlogic-rsgain-v3.0.1_GH0.tar.gz) = 47435 diff --git a/audio/rsgain/files/patch-src_tag.cpp b/audio/rsgain/files/patch-src_tag.cpp new file mode 100644 index 000000000000..4967905acf88 --- /dev/null +++ b/audio/rsgain/files/patch-src_tag.cpp @@ -0,0 +1,25 @@ +/wrkdirs/usr/ports/audio/rsgain/work/rsgain-3.0.1/src/tag.cpp:254:5: error: no member named 'round' in namespace 'std' + GAIN_TO_Q78(track.result.album_gain) : GAIN_TO_Q78(track.result.track_gain); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/wrkdirs/usr/ports/audio/rsgain/work/rsgain-3.0.1/src/tag.hpp:35:38: note: expanded from macro 'GAIN_TO_Q78' +#define GAIN_TO_Q78(gain) (int) std::round(gain * 256.f) + ~~~~~^ + +--- src/tag.cpp.orig 2022-10-19 02:49:19 UTC ++++ src/tag.cpp +@@ -28,7 +28,7 @@ + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +-#include ++#include + #include + #include + #include +@@ -506,4 +506,4 @@ void taglib_get_version(std::string &buffer) + void taglib_get_version(std::string &buffer) + { + buffer = fmt::format("{}.{}.{}", TAGLIB_MAJOR_VERSION, TAGLIB_MINOR_VERSION, TAGLIB_PATCH_VERSION); +-} +\ No newline at end of file ++} diff --git a/audio/rsgain/pkg-descr b/audio/rsgain/pkg-descr new file mode 100644 index 000000000000..0902523b4299 --- /dev/null +++ b/audio/rsgain/pkg-descr @@ -0,0 +1,10 @@ +rsgain (really simple gain) is a ReplayGain 2.0 tagging utility for +Windows, macOS, and Linux. rsgain applies loudness metadata tags +to your files, while leaving the audio stream untouched. A +ReplayGain-compatible player will dynamically adjust the volume of +your tagged files during playback. + +rsgain is designed with a "batteries included" philosophy, allowing +a user to scan their entire music library without requiring external +scripts or other tools. It aims to strike the perfect balance between +power and simplicity by providing multiple user interfaces. diff --git a/audio/rsgain/pkg-plist b/audio/rsgain/pkg-plist new file mode 100644 index 000000000000..59d7bf0531b3 --- /dev/null +++ b/audio/rsgain/pkg-plist @@ -0,0 +1,5 @@ +bin/rsgain +%%PORTDOCS%%%%DOCSDIR%%/README.md +%%DATADIR%%/presets/default.ini +%%DATADIR%%/presets/ebur128.ini +%%DATADIR%%/presets/loudgain.ini