Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions x11-toolkits/sdl3-imgui-filedialogs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
PORTNAME= sdl3-imgui-filedialogs
DISTVERSIONPREFIX= v
DISTVERSION= 0.1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any mentions of this version string in the software's repo. It might be better to use g20250603 here - the date of the 8d28d3688accaa00cb5bf56919c57cfee134a937 commit.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You also need to refresh distinfo after changing DISTVERSION.

CATEGORIES= x11-toolkits

MAINTAINER= [email protected]
COMMENT= SDL3 ImGui File Dialogs - CLI and Client Library
WWW= https://github.com/samuelvenable/SDL3-ImGui-FileDialogs

LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE

LIB_DEPENDS= libdrm.so:graphics/libdrm \
libepoll-shim.so:devel/libepoll-shim \
libffi.so:devel/libffi \
libpipewire-0.3.so:multimedia/pipewire \
libwayland-client.so:graphics/wayland \
libwayland-cursor.so:graphics/wayland \
libwayland-egl.so:graphics/wayland \
libxkbcommon.so:x11/libxkbcommon

USES= cmake:indirect gl gnome pkgconfig sdl xorg
USE_GL= gbm egl
USE_GNOME= glib20 gtk30
USE_SDL= sdl3
USE_XORG= x11 xau xcb xcursor xdmcp xext xfixes xi xrandr xrender xscrnsaver

USE_GITHUB= yes
GH_ACCOUNT= samuelvenable
GH_PROJECT= SDL3-ImGui-FileDialogs
GH_TAGNAME= 8d28d3688accaa00cb5bf56919c57cfee134a937

do-build:
mkdir ${WRKSRC}/_build
cmake "${WRKSRC}/filedialogs/lunasvg" -B "${WRKSRC}/_build"
make -j${MAKE_JOBS_NUMBER} -C "${WRKSRC}/_build"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These steps seem to match with what USES=cmake does. Why have :indirect and put these commands into do-build?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me test that too.

cd "${WRKSRC}/filedialogs" && \
${CXX} \
"ImFileDialog/ImFileDialog.cpp" \
"imgui/imgui.cpp" \
"imgui/backends/imgui_impl_sdl3.cpp" \
"imgui/backends/imgui_impl_sdlgpu3.cpp" \
"imgui/backends/imgui_impl_sdlrenderer3.cpp" \
"imgui/imgui_draw.cpp" \
"imgui/imgui_tables.cpp" \
"imgui/imgui_widgets.cpp" \
"filesystem.cpp" \
"filedialogs.cpp" \
"msgbox/imguial_msgbox.cpp" \
"main.cpp" \
-o "${WRKSRC}/_build/filedialogs" \
-std=c++17 -Wno-format-security -I. -IImFileDialog -Iimgui \
-Iimgui/backends -L${WRKSRC}/_build -llunasvg -DIMGUI_USE_WCHAR32 \
`pkg-config --cflags --libs sdl3 --static` \
`pkg-config --cflags --libs gtk+-3.0` \
`pkg-config --cflags --libs gio-2.0` \
`pkg-config --cflags --libs glib-2.0` \
-lX11 -lc -lpthread -fPIC

do-install:
${CP} ${WRKSRC}/_build/filedialogs ${STAGEDIR}${PREFIX}/bin
${CP} ${WRKSRC}/_build/liblunasvg.a ${STAGEDIR}${PREFIX}/lib
${CP} ${WRKSRC}/filedialogs/filedialogs.hpp ${STAGEDIR}${PREFIX}/include

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions x11-toolkits/sdl3-imgui-filedialogs/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
TIMESTAMP = 1748944481
SHA256 (samuelvenable-SDL3-ImGui-FileDialogs-v0.1-8d28d3688accaa00cb5bf56919c57cfee134a937_GH0.tar.gz) = 8d969ee9d08aa8cbc629accf68f4650b098c565a9453098e5d3066bf243d733a
SIZE (samuelvenable-SDL3-ImGui-FileDialogs-v0.1-8d28d3688accaa00cb5bf56919c57cfee134a937_GH0.tar.gz) = 65642576
4 changes: 4 additions & 0 deletions x11-toolkits/sdl3-imgui-filedialogs/pkg-descr
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
A simple file dialog library for Dear ImGui.

This library supports favorites, actual Windows icons, image previews,
zooming in, etc...
3 changes: 3 additions & 0 deletions x11-toolkits/sdl3-imgui-filedialogs/pkg-plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
bin/filedialogs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this some sort of demo program?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's a demo program but also a command line interface, serves a similar purpose as zenity or kdialog

include/filedialogs.hpp
lib/liblunasvg.a