Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Feb 2026 08:13:56 +0000
From:      Martin Matuska <mm@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: fecc200b23ee - main - graphics/lua-qrencode: [NEW PORT] libqrencode wrapper for lua
Message-ID:  <699c0c44.1e901.18499137@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by mm:

URL: https://cgit.FreeBSD.org/ports/commit/?id=fecc200b23eeba52ad884db58f1e6cbc6288d6c7

commit fecc200b23eeba52ad884db58f1e6cbc6288d6c7
Author:     Martin Matuska <mm@FreeBSD.org>
AuthorDate: 2026-02-23 08:09:58 +0000
Commit:     Martin Matuska <mm@FreeBSD.org>
CommitDate: 2026-02-23 08:13:51 +0000

    graphics/lua-qrencode: [NEW PORT] libqrencode wrapper for lua
    
    qrencode is a wrapper of libqrencode with libpng for lua
    
    WWW: https://github.com/vincascm/qrencode
---
 graphics/Makefile                          |  1 +
 graphics/lua-qrencode/Makefile             | 30 ++++++++++++++++++++++++++++++
 graphics/lua-qrencode/distinfo             |  3 +++
 graphics/lua-qrencode/files/patch-Makefile | 15 +++++++++++++++
 graphics/lua-qrencode/pkg-descr            |  1 +
 graphics/lua-qrencode/pkg-plist            |  1 +
 6 files changed, 51 insertions(+)

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


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?699c0c44.1e901.18499137>