aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/lua-qrencode/Makefile30
-rw-r--r--graphics/lua-qrencode/distinfo3
-rw-r--r--graphics/lua-qrencode/files/patch-Makefile15
-rw-r--r--graphics/lua-qrencode/pkg-descr1
-rw-r--r--graphics/lua-qrencode/pkg-plist1
6 files changed, 51 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index 723ef5c47302..5a873863b7f9 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -577,6 +577,7 @@
SUBDIR += linux-rl9-vulkan
SUBDIR += linux-rl9-wayland
SUBDIR += lua-gd
+ SUBDIR += lua-qrencode
SUBDIR += luminance-qt5
SUBDIR += lunasvg
SUBDIR += lux
diff --git a/graphics/lua-qrencode/Makefile b/graphics/lua-qrencode/Makefile
new file mode 100644
index 000000000000..fa3164f45706
--- /dev/null
+++ b/graphics/lua-qrencode/Makefile
@@ -0,0 +1,30 @@
+PORTNAME= qrencode
+PORTVERSION= 1.1.1
+CATEGORIES= graphics
+PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
+
+MAINTAINER= mm@FreeBSD.org
+COMMENT= libqrencode wrapper for the Lua programming language
+WWW= https://github.com/vincascm/qrencode
+
+LICENSE= MIT
+
+LIB_DEPENDS= libqrencode.so:graphics/libqrencode \
+ libpng.so:graphics/png
+
+USES= lua:module pkgconfig
+USE_GITHUB= yes
+GH_ACCOUNT= vincascm
+GH_TAGNAME= v1.1.1
+MAKE_ARGS= LUABIN=${LUA_CMD} LUAPKG=lua-${LUA_VER}
+
+DOCSDIR= ${LUA_DOCSDIR}
+EXAMPLESDIR= ${LUA_EXAMPLESDIR}
+
+CFLAGS+= -I${LUA_INCDIR} -I${LOCALBASE}/include
+
+do-install:
+ ${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/qrencode.so ${STAGEDIR}${LUA_MODLIBDIR}
+
+.include <bsd.port.mk>
diff --git a/graphics/lua-qrencode/distinfo b/graphics/lua-qrencode/distinfo
new file mode 100644
index 000000000000..47f4cd91d813
--- /dev/null
+++ b/graphics/lua-qrencode/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1771833326
+SHA256 (vincascm-qrencode-1.1.1-v1.1.1_GH0.tar.gz) = a1eac270e1f240add27133fa646da1a4aa891f0d3aa7410580e642ab183ca425
+SIZE (vincascm-qrencode-1.1.1-v1.1.1_GH0.tar.gz) = 4553
diff --git a/graphics/lua-qrencode/files/patch-Makefile b/graphics/lua-qrencode/files/patch-Makefile
new file mode 100644
index 000000000000..651eb44649ee
--- /dev/null
+++ b/graphics/lua-qrencode/files/patch-Makefile
@@ -0,0 +1,15 @@
+--- Makefile.orig 2026-02-23 07:56:46 UTC
++++ Makefile
+@@ -1,10 +1,10 @@ LIBNAME= qrencode
+ LIBNAME= qrencode
+-CFLAGS= -std=gnu99 -pedantic -Wall -Wextra -O2 -shared -fPIC
++CFLAGS+= -std=gnu99 -pedantic -Wall -Wextra -shared -fPIC
+
+ all: so
+
+ so: $(LIBNAME).c
+- $(CC) $(CFLAGS) $(LIBNAME).c -lqrencode -lpng -o $(LIBNAME).so
++ $(CC) $(CFLAGS) $(LIBNAME).c -lqrencode -lpng -o $(LIBNAME).so
+
+ clean:
+ rm -f $(LIBNAME).so
diff --git a/graphics/lua-qrencode/pkg-descr b/graphics/lua-qrencode/pkg-descr
new file mode 100644
index 000000000000..81d1743c4e02
--- /dev/null
+++ b/graphics/lua-qrencode/pkg-descr
@@ -0,0 +1 @@
+qrencode is a wrapper of libqrencode with libpng for lua
diff --git a/graphics/lua-qrencode/pkg-plist b/graphics/lua-qrencode/pkg-plist
new file mode 100644
index 000000000000..70f021596487
--- /dev/null
+++ b/graphics/lua-qrencode/pkg-plist
@@ -0,0 +1 @@
+%%LUA_MODLIBDIR%%/qrencode.so