git: 6ca749e25ffb - main - audio/gxplugins-lv2: Update 0.9 -> 1.0

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Thu, 19 Jan 2023 20:02:25 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6ca749e25ffba7631cbdc4941a69f0dd991d1038

commit 6ca749e25ffba7631cbdc4941a69f0dd991d1038
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-01-19 15:44:11 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-01-19 20:02:20 +0000

    audio/gxplugins-lv2: Update 0.9 -> 1.0
---
 audio/gxplugins-lv2/Makefile | 14 ++++++++++----
 audio/gxplugins-lv2/distinfo |  6 +++---
 2 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/audio/gxplugins-lv2/Makefile b/audio/gxplugins-lv2/Makefile
index 50d0cc602698..a98011be0678 100644
--- a/audio/gxplugins-lv2/Makefile
+++ b/audio/gxplugins-lv2/Makefile
@@ -1,9 +1,9 @@
 PORTNAME=	gxplugins
-DISTVERSION=	0.9
+DISTVERSION=	1.0
 CATEGORIES=	audio
-MASTER_SITES=	https://github.com/brummer10/GxPlugins.lv2/files/6329721/
+MASTER_SITES=	https://github.com/brummer10/GxPlugins.lv2/releases/download/v${DISTVERSION}/
 PKGNAMESUFFIX=	-lv2
-DISTNAME=	GxPlugins_${DISTVERSION}
+DISTNAME=	gxplugins_${DISTVERSION}_src
 
 MAINTAINER=	yuri@FreeBSD.org
 COMMENT=	Set of LV2 plugins from the guitarix project
@@ -17,12 +17,15 @@ BROKEN_riscv64=	ld: error: gui/pedal.o: cannot link object files with different
 BUILD_DEPENDS=	lv2>0:audio/lv2
 
 USES=		compiler:c++11-lang gettext-runtime gmake gnome localbase \
-		pkgconfig xorg
+		pkgconfig tar:bz2 xorg
 USE_GNOME=	cairo
 USE_XORG=	x11
 USE_BINUTILS=	yes # linking needs some GNU features, fails on 12 without this, see https://github.com/brummer10/GxPlugins.lv2/issues/9
 
+WRKSRC=		${WRKDIR}/GxPlugins.lv2
+
 MAKE_ENV=	PATH=${LOCALBASE}/bin:/usr/bin:/bin CXXFLAGS="${CXXFLAGS}" # 'ld' needs to be first in the path on 12, -B{path} isn't sufficient for some reason
+MAKE_ARGS=	LIB_EXT=so
 LDFLAGS+=	-B${LOCALBASE}/bin # Use ld provided by USE_BINUTILS for GNU features, otherwise GNU ld isn't called
 
 post-patch:
@@ -33,5 +36,8 @@ post-patch:
 		s| -O2||; s| -Wl,-z,nodelete||; \
 		s|INSTALL_DIR = .*|INSTALL_DIR = ${PREFIX}/lib/lv2|' \
 		${WRKSRC}/*/Makefile
+	# correct ifdefs in gx_platform.h files
+	@${FIND} ${WRKSRC} -name gx_platform.h | \
+		${XARGS} ${REINPLACE_CMD} -e 's/#ifdef __linux__/#if defined(__linux__) || defined(__FreeBSD__)/ ; s/defined(__linux__)/(& || defined(__FreeBSD__))/'
 
 .include <bsd.port.mk>
diff --git a/audio/gxplugins-lv2/distinfo b/audio/gxplugins-lv2/distinfo
index c28630f97d4f..fdb15388a719 100644
--- a/audio/gxplugins-lv2/distinfo
+++ b/audio/gxplugins-lv2/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1618763524
-SHA256 (GxPlugins_0.9.tar.gz) = 4251b4143b261305ebbfc87538e2631f6dbcc69180936083924aa0425bb9e422
-SIZE (GxPlugins_0.9.tar.gz) = 24254218
+TIMESTAMP = 1674153886
+SHA256 (gxplugins_1.0_src.tar.bz2) = 45ff765d7e4dbf2786af081ff115d59ebbb9a681a0158c521b9f1b9317512dc6
+SIZE (gxplugins_1.0_src.tar.bz2) = 66317334