-
Notifications
You must be signed in to change notification settings - Fork 811
Add "SDL3 ImGui File Dialogs" Port... #405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 2 commits
4ba5abf
5785b05
b8185ef
013a124
07a046d
b11979e
04644e1
aad5941
71736ff
b005422
855f008
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
PORTNAME= sdl3-imgui-filedialogs | ||
DISTVERSIONPREFIX= v | ||
DISTVERSION= 0.1 | ||
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" | ||
|
||
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> |
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 |
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... |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
bin/filedialogs | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this some sort of demo program? There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
There was a problem hiding this comment.
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.There was a problem hiding this comment.
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 changingDISTVERSION
.