git: 5079e813bb9b - main - x11/xcur2png: add new port

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Mon, 11 Mar 2024 05:53:34 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5079e813bb9b51ffb34bf4731b30e133aab21154

commit 5079e813bb9b51ffb34bf4731b30e133aab21154
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2017-08-01 07:25:14 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2024-03-11 05:52:44 +0000

    x11/xcur2png: add new port
    
    xcur2png is a program which let you take PNG image from X cursor, and
    generate config-file which is reusable by xcursorgen. To put it
    simply, it is converter from X cursor to PNG image.
    
    https://github.com/eworm-de/xcur2png
---
 x11/Makefile           |  1 +
 x11/xcur2png/Makefile  | 23 +++++++++++++++++++++++
 x11/xcur2png/distinfo  |  3 +++
 x11/xcur2png/pkg-descr |  3 +++
 4 files changed, 30 insertions(+)

diff --git a/x11/Makefile b/x11/Makefile
index 6bbc488d62ea..b460ef700917 100644
--- a/x11/Makefile
+++ b/x11/Makefile
@@ -529,6 +529,7 @@
     SUBDIR += xcoloredit
     SUBDIR += xcolors
     SUBDIR += xconsole
+    SUBDIR += xcur2png
     SUBDIR += xcursorgen
     SUBDIR += xcut
     SUBDIR += xdg-desktop-portal-gnome
diff --git a/x11/xcur2png/Makefile b/x11/xcur2png/Makefile
new file mode 100644
index 000000000000..7f1776231671
--- /dev/null
+++ b/x11/xcur2png/Makefile
@@ -0,0 +1,23 @@
+PORTNAME=	xcur2png
+DISTVERSION=	0.7.1
+CATEGORIES=	x11
+
+MAINTAINER=	jbeich@FreeBSD.org
+COMMENT=	Convert X cursors to PNG images
+WWW=		https://github.com/eworm-de/xcur2png
+
+LICENSE=	GPLv3+
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+LIB_DEPENDS=	libpng.so:graphics/png
+
+USES=		localbase pkgconfig xorg
+USE_GITHUB=	yes
+USE_XORG=	xcursor
+GH_ACCOUNT=	eworm-de
+GNU_CONFIGURE=	yes
+GNU_CONFIGURE_MANPREFIX=	${PREFIX}/share
+PLIST_FILES=	bin/${PORTNAME} \
+		share/man/man1/${PORTNAME}.1.gz
+
+.include <bsd.port.mk>
diff --git a/x11/xcur2png/distinfo b/x11/xcur2png/distinfo
new file mode 100644
index 000000000000..d3b939f362e3
--- /dev/null
+++ b/x11/xcur2png/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1501572314
+SHA256 (eworm-de-xcur2png-0.7.1_GH0.tar.gz) = 3874e8bd4f287dbd8b6d4a16ee1f450970965fd773288d85bb53143e2e631add
+SIZE (eworm-de-xcur2png-0.7.1_GH0.tar.gz) = 99328
diff --git a/x11/xcur2png/pkg-descr b/x11/xcur2png/pkg-descr
new file mode 100644
index 000000000000..a01833fd5f56
--- /dev/null
+++ b/x11/xcur2png/pkg-descr
@@ -0,0 +1,3 @@
+xcur2png is a program which let you take PNG image from X cursor, and
+generate config-file which is reusable by xcursorgen. To put it
+simply, it is converter from X cursor to PNG image.