devel/nativefiledialog-extended: New port: Native File Dialog Extended

A small C library 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.
This commit is contained in:
Jose Alonso Cardenas Marquez 2025-04-21 21:20:06 -07:00
parent b176a2cff4
commit 7b36152c73
No known key found for this signature in database
GPG key ID: 335B9246BA5E30F4
5 changed files with 42 additions and 0 deletions

View file

@ -1719,6 +1719,7 @@
SUBDIR += nanopb
SUBDIR += nant
SUBDIR += nasm
SUBDIR += nativefiledialog-extended
SUBDIR += naturaldocs
SUBDIR += ncc
SUBDIR += ncnf

View file

@ -0,0 +1,24 @@
PORTNAME= nativefiledialog-extended
DISTVERSIONPREFIX= v
DISTVERSION= 1.2.1
CATEGORIES= devel
MAINTAINER= acm@FreeBSD.org
COMMENT= Native File Dialog Extended
WWW= https://github.com/btzy/nativefiledialog-extended
LICENSE= ZLIB
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libdbus-1.so:devel/dbus
USE_GITHUB= yes
GH_ACCOUNT= btzy
USES= cmake pkgconfig
USE_LDCONFIG= yes
CMAKE_ARGS= -DBUILD_SHARED_LIBS=TRUE \
-DNFD_PORTAL=TRUE
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1745292950
SHA256 (btzy-nativefiledialog-extended-v1.2.1_GH0.tar.gz) = 443697a857c4efacbe08cdaf5182724fa9d9b9a79b8feff2a1601bde1df46b07
SIZE (btzy-nativefiledialog-extended-v1.2.1_GH0.tar.gz) = 426161

View file

@ -0,0 +1,5 @@
A small C library 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.

View file

@ -0,0 +1,9 @@
include/nfd.h
include/nfd.hpp
include/nfd_glfw3.h
include/nfd_sdl2.h
lib/cmake/nfd/nfd-config-%%CMAKE_BUILD_TYPE%%.cmake
lib/cmake/nfd/nfd-config.cmake
lib/libnfd.so
lib/libnfd.so.1
lib/libnfd.so.1.2.1