summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--groups.d/241.native_packages_inet.d/mblaze.package9
-rw-r--r--patches/mblaze.local.patch12
2 files changed, 21 insertions, 0 deletions
diff --git a/groups.d/241.native_packages_inet.d/mblaze.package b/groups.d/241.native_packages_inet.d/mblaze.package
new file mode 100644
index 00000000..a03f6b1f
--- /dev/null
+++ b/groups.d/241.native_packages_inet.d/mblaze.package
@@ -0,0 +1,9 @@
+: ${PKG_MBLAZE_DEPENDS:="libiconv"};
+: ${PKG_MBLAZE_URLS_GIT:="mblaze=https://github.com/leahneukirchen/mblaze.git@master"};
+: ${PKG_MBLAZE_CFLAGS_BUILD:="${NATIVE_PACKAGES_CFLAGS_CONFIGURE}"};
+: ${PKG_MBLAZE_LDFLAGS_BUILD:="${NATIVE_PACKAGES_LDFLAGS_CONFIGURE}"};
+: ${PKG_MBLAZE_BUILD_DIR:=mblaze};
+
+ex_pkg_register "mblaze" "${RTL_FILEOP_SOURCE_FNAME}" "native_packages";
+
+# vim:filetype=sh textwidth=0
diff --git a/patches/mblaze.local.patch b/patches/mblaze.local.patch
new file mode 100644
index 00000000..154596d2
--- /dev/null
+++ b/patches/mblaze.local.patch
@@ -0,0 +1,12 @@
+diff -ru mblaze.orig/GNUmakefile mblaze/GNUmakefile
+--- mblaze.orig/GNUmakefile 2024-05-03 20:09:12.010066998 +0200
++++ mblaze/GNUmakefile 2024-05-03 20:17:36.525513874 +0200
+@@ -1,7 +1,7 @@
+ CFLAGS?=-g -O2 -fstack-protector-strong -D_FORTIFY_SOURCE=2
+ override CFLAGS:=-Wall -Wno-switch -Wextra $(CFLAGS)
+ LDFLAGS?=-fstack-protector-strong
+-LDLIBS=-lrt
++LDLIBS=-liconv
+
+ OS := $(shell uname)
+