comms/gnuradio: Missing patches

I double checked but still missed adding these patches. *sigh*
This commit is contained in:
Diane Bruce 2025-04-14 08:34:06 -04:00
parent 78b9c1298e
commit 2e7a368c73
3 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,23 @@
#!/usr/bin/sh
ICON_SIZES="16 24 32 48 64 128 256"
if [ -n "$2" ]; then
SRCDIR="$2"
else
SRCDIR="@CMAKE_CURRENT_SOURCE_DIR@"
fi
echo "Begin freedesktop install..."
for size in ${ICON_SIZES}; do \
echo "Install icon: ${size}x${size}"
xdg-icon-resource install --noupdate --context mimetypes --theme gnome --size ${size} ${SRCDIR}/grc-icon-${size}.png application-gnuradio-grc; \
xdg-icon-resource install --noupdate --context mimetypes --size ${size} ${SRCDIR}/grc-icon-${size}.png application-gnuradio-grc; \
xdg-icon-resource install --noupdate --context apps --theme gnome --size ${size} ${SRCDIR}/grc-icon-${size}.png gnuradio-grc; \
xdg-icon-resource install --noupdate --context apps --size ${size} ${SRCDIR}/grc-icon-${size}.png gnuradio-grc; \
done
echo "Install mime type"
install ${SRCDIR}/gnuradio-grc.xml
echo "Install menu items"
install ${SRCDIR}/*.desktop
echo "Done!"
echo ""

View file

@ -0,0 +1,11 @@
--- gnuradio-runtime/lib/thread/thread.cc.orig 2025-04-10 17:29:44 UTC
+++ gnuradio-runtime/lib/thread/thread.cc
@@ -22,7 +22,7 @@
defined(__NetBSD__) || defined(__OpenBSD__)
#define __GR_TARGET_BSD__
#include <pthread.h>
-#ifdef __OpenBSD__
+#if defined(__OpenBSD__) || defined(__FreeBSD__)
#include <pthread_np.h>
#endif
#else

View file

@ -0,0 +1,10 @@
--- grc/scripts/freedesktop/grc_setup_freedesktop.in.orig 2024-02-06 00:51:19 UTC
+++ grc/scripts/freedesktop/grc_setup_freedesktop.in
@@ -25,6 +25,7 @@ case "$1" in
case "$1" in
'install')
echo "Begin freedesktop install..."
+ exit 0
for size in ${ICON_SIZES}; do \
echo "Install icon: ${size}x${size}"
xdg-icon-resource install --noupdate --context mimetypes --theme gnome --size ${size} ${SRCDIR}/grc-icon-${size}.png application-gnuradio-grc; \