pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

nativefiledialog-extended: imported



Module Name:	pkgsrc-wip
Committed By:	Kevin Bloom <kevin.bloom%posteo.net@localhost>
Pushed By:	nuclearkev
Date:		Mon Jan 6 21:59:52 2025 -0500
Changeset:	6e5fb502bcda337944e4cc279ca8c4321046b7c8

Added Files:
	nativefiledialog-extended/DESCR
	nativefiledialog-extended/Makefile
	nativefiledialog-extended/PLIST
	nativefiledialog-extended/TODO
	nativefiledialog-extended/buildlink3.mk
	nativefiledialog-extended/distinfo

Log Message:
nativefiledialog-extended: imported

New requirement for wip/naev12.
So far this compiles, I have not tested it yet.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=6e5fb502bcda337944e4cc279ca8c4321046b7c8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 nativefiledialog-extended/DESCR         | 23 +++++++++++++++++++++++
 nativefiledialog-extended/Makefile      | 21 +++++++++++++++++++++
 nativefiledialog-extended/PLIST         |  8 ++++++++
 nativefiledialog-extended/TODO          |  2 ++
 nativefiledialog-extended/buildlink3.mk | 13 +++++++++++++
 nativefiledialog-extended/distinfo      |  5 +++++
 6 files changed, 72 insertions(+)

diffs:
diff --git a/nativefiledialog-extended/DESCR b/nativefiledialog-extended/DESCR
new file mode 100644
index 0000000000..da3554b9c6
--- /dev/null
+++ b/nativefiledialog-extended/DESCR
@@ -0,0 +1,23 @@
+TODO: Adjust the following lines from README.md
+
+
+# Native File Dialog Extended
+
+![GitHub Actions](https://github.com/btzy/nativefiledialog-extended/workflows/build/badge.svg)
+
+A small C library with that portably invokes native file open, folder select and file save dialogs.  Write dialog code once and have it pop up native dialogs on all supported platforms.  Avoid linking large dependencies like wxWidgets and Qt.
+
+This library is based on Michael Labbe's Native File Dialog ([mlabbe/nativefiledialog](https://github.com/mlabbe/nativefiledialog)).
+
+Features:
+
+- Lean C API, static library &mdash; no C++/ObjC runtime needed
+- Supports Windows (MSVC, MinGW, Clang), macOS (Clang), and Linux (GTK, portal) (GCC, Clang)
+- Zlib licensed
+- Friendly names for filters (e.g. `C/C++ Source files (*.c;*.cpp)` instead of `(*.c;*.cpp)`) on platforms that support it
+- Automatically append file extension on platforms where users expect it
+- Support for setting a default folder path
+- Support for setting a default file name (e.g. `Untitled.c`)
+- Consistent UTF-8 support on all platforms
+- Native character set (UTF-16 `wchar_t`) support on Windows
+...
diff --git a/nativefiledialog-extended/Makefile b/nativefiledialog-extended/Makefile
new file mode 100644
index 0000000000..65aa91ee91
--- /dev/null
+++ b/nativefiledialog-extended/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD$
+
+DISTNAME=	nativefiledialog-extended-1.2.1
+CATEGORIES=	# TODO: add primary category
+MASTER_SITES=	${MASTER_SITE_GITHUB:=btzy/}
+GITHUB_TAG=	refs/tags/v${PKGVERSION_NOREV}
+
+MAINTAINER=	INSERT_YOUR_MAIL_ADDRESS_HERE # or use pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/btzy/nativefiledialog-extended/
+COMMENT=	TODO: Short description of the package
+#LICENSE=	# TODO: (see mk/license.mk)
+
+WRKSRC=	${WRKDIR}/${DISTNAME}
+
+USE_LANGUAGES=	c c++
+
+USE_TOOLS+=	pkg-config
+
+.include "../../devel/cmake/build.mk"
+.include "../../x11/gtk3/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/nativefiledialog-extended/PLIST b/nativefiledialog-extended/PLIST
new file mode 100644
index 0000000000..9bb6683136
--- /dev/null
+++ b/nativefiledialog-extended/PLIST
@@ -0,0 +1,8 @@
+@comment $NetBSD$
+include/nfd.h
+include/nfd.hpp
+include/nfd_glfw3.h
+include/nfd_sdl2.h
+lib/cmake/nfd/nfd-config-noconfig.cmake
+lib/cmake/nfd/nfd-config.cmake
+lib/libnfd.a
diff --git a/nativefiledialog-extended/TODO b/nativefiledialog-extended/TODO
new file mode 100644
index 0000000000..a13561d03d
--- /dev/null
+++ b/nativefiledialog-extended/TODO
@@ -0,0 +1,2 @@
+- test independently
+- test with naev12
diff --git a/nativefiledialog-extended/buildlink3.mk b/nativefiledialog-extended/buildlink3.mk
new file mode 100644
index 0000000000..b11fa43011
--- /dev/null
+++ b/nativefiledialog-extended/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1 2024/10/09 14:05:56 ktnb Exp $
+
+BUILDLINK_TREE+=	nativefiledialog-extended
+
+.if !defined(NATIVEFILEDIALOG-EXTENDED_BUILDLINK3_MK)
+NATIVEFILEDIALOG-EXTENDED_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.nativefiledialog-extended+=	nativefiledialog-extended>=1.2.1
+BUILDLINK_PKGSRCDIR.nativefiledialog-extended?=	../../wip/nativefiledialog-extended
+
+.endif	# NATIVEFILEDIALOG-EXTENDED_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-nativefiledialog-extended
diff --git a/nativefiledialog-extended/distinfo b/nativefiledialog-extended/distinfo
new file mode 100644
index 0000000000..e7eb5b2583
--- /dev/null
+++ b/nativefiledialog-extended/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (nativefiledialog-extended-1.2.1.tar.gz) = 1c3fb93c1708609ce68a852adf530702dac2785677a4c58ab5f650499f94c393
+SHA512 (nativefiledialog-extended-1.2.1.tar.gz) = 4ec3e174a90354c524d9be2776422740f80b73021df94e1942e60ab4310995245554f83097b9b2dcca04d016a8548d3fc0760f73daf724c5c3d72c15cf776bed
+Size (nativefiledialog-extended-1.2.1.tar.gz) = 426161 bytes


Home | Main Index | Thread Index | Old Index