pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/qr-code-generator16 graphics/qr-code-generato...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/37dcb8e97eea
branches:  trunk
changeset: 457100:37dcb8e97eea
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Tue Aug 17 07:59:19 2021 +0000

description:
graphics/qr-code-generator16: import qr-code-generator-1.6.0

QR Code generator library written in C/C++.
The aim of this library is the best and clearest QR Code generation.

This is an old version needed for API compatibility by libreoffice.

diffstat:

 graphics/qr-code-generator16/DESCR                      |   4 +
 graphics/qr-code-generator16/Makefile                   |  39 +++++++++++++++++
 graphics/qr-code-generator16/PLIST                      |  10 ++++
 graphics/qr-code-generator16/buildlink3.mk              |  14 ++++++
 graphics/qr-code-generator16/distinfo                   |   8 +++
 graphics/qr-code-generator16/patches/patch-c_Makefile   |  21 +++++++++
 graphics/qr-code-generator16/patches/patch-cpp_Makefile |  16 ++++++
 7 files changed, 112 insertions(+), 0 deletions(-)

diffs (140 lines):

diff -r f77028bc4b48 -r 37dcb8e97eea graphics/qr-code-generator16/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/qr-code-generator16/DESCR        Tue Aug 17 07:59:19 2021 +0000
@@ -0,0 +1,4 @@
+QR Code generator library written in C/C++.
+The aim of this library is the best and clearest QR Code generation.
+
+This is an old version needed for API compatibility by libreoffice.
diff -r f77028bc4b48 -r 37dcb8e97eea graphics/qr-code-generator16/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/qr-code-generator16/Makefile     Tue Aug 17 07:59:19 2021 +0000
@@ -0,0 +1,39 @@
+# $NetBSD: Makefile,v 1.1 2021/08/17 07:59:19 wiz Exp $
+
+DISTNAME=      QR-Code-generator-1.6.0
+PKGNAME=       ${DISTNAME:tl}
+CATEGORIES=    graphics
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=nayuki/}
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
+MAINTAINER=    ryoon%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/nayuki/QR-Code-generator
+COMMENT=       High-quality QR Code generator in C/C++ (1.6 API)
+LICENSE=       mit
+
+USE_LANGUAGES= c c++11
+USE_TOOLS+=    gmake
+
+WRKSRC=                ${WRKDIR}/${DISTNAME}
+
+BUILDLINK_TRANSFORM+=  rm:-fsanitize=undefined
+# Automatically added to CXXFLAGS too.
+CFLAGS+=               -fPIC
+
+BUILD_DIRS=    c cpp
+
+INSTALLATION_DIRS+=    bin include/qrcodegen lib
+
+do-install:
+       ${INSTALL_LIB} ${WRKSRC}/c/libqrcodegen.a ${DESTDIR}${PREFIX}/lib
+       ${INSTALL_DATA} ${WRKSRC}/c/*.h ${DESTDIR}${PREFIX}/include/qrcodegen
+       ${INSTALL_PROGRAM} ${WRKSRC}/c/qrcodegen-demo ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_PROGRAM} ${WRKSRC}/c/qrcodegen-test ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_PROGRAM} ${WRKSRC}/c/qrcodegen-worker ${DESTDIR}${PREFIX}/bin
+
+       ${INSTALL_LIB} ${WRKSRC}/cpp/libqrcodegen.a ${DESTDIR}${PREFIX}/lib/libqrcodegencpp.a
+       ${INSTALL_PROGRAM} ${WRKSRC}/cpp/QrCodeGeneratorDemo ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_PROGRAM} ${WRKSRC}/cpp/QrCodeGeneratorWorker ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_DATA} ${WRKSRC}/cpp/*.hpp ${DESTDIR}${PREFIX}/include/qrcodegen
+
+.include "../../mk/bsd.pkg.mk"
diff -r f77028bc4b48 -r 37dcb8e97eea graphics/qr-code-generator16/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/qr-code-generator16/PLIST        Tue Aug 17 07:59:19 2021 +0000
@@ -0,0 +1,10 @@
+@comment $NetBSD: PLIST,v 1.1 2021/08/17 07:59:19 wiz Exp $
+bin/QrCodeGeneratorDemo
+bin/QrCodeGeneratorWorker
+bin/qrcodegen-demo
+bin/qrcodegen-test
+bin/qrcodegen-worker
+include/qrcodegen/QrCode.hpp
+include/qrcodegen/qrcodegen.h
+lib/libqrcodegen.a
+lib/libqrcodegencpp.a
diff -r f77028bc4b48 -r 37dcb8e97eea graphics/qr-code-generator16/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/qr-code-generator16/buildlink3.mk        Tue Aug 17 07:59:19 2021 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: buildlink3.mk,v 1.1 2021/08/17 07:59:19 wiz Exp $
+
+BUILDLINK_TREE+=       qr-code-generator
+
+.if !defined(QR_CODE_GENERATOR_BUILDLINK3_MK)
+QR_CODE_GENERATOR_BUILDLINK3_MK:=
+
+BUILDLINK_DEPMETHOD.qr-code-generator?=        build
+
+BUILDLINK_API_DEPENDS.qr-code-generator+=      qr-code-generator>=1.4.0<1.7
+BUILDLINK_PKGSRCDIR.qr-code-generator?=                ../../graphics/qr-code-generator16
+.endif # QR_CODE_GENERATOR_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -qr-code-generator
diff -r f77028bc4b48 -r 37dcb8e97eea graphics/qr-code-generator16/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/qr-code-generator16/distinfo     Tue Aug 17 07:59:19 2021 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2021/08/17 07:59:19 wiz Exp $
+
+SHA1 (QR-Code-generator-1.6.0.tar.gz) = 1af4cdb3228fa47bc0a36747b05e0ac554f0ae7c
+RMD160 (QR-Code-generator-1.6.0.tar.gz) = b4b48603ced5734a388b3c91d3a288a5c499f8de
+SHA512 (QR-Code-generator-1.6.0.tar.gz) = 7cf62d29ba7706eab7982bea9f022e5739b38a8c37f6b01e6c8f63458db1b05ad56ba17cd4382639eb60603ce4dd3aff1ee94f993b430d312cdee9b9204af16e
+Size (QR-Code-generator-1.6.0.tar.gz) = 135432 bytes
+SHA1 (patch-c_Makefile) = 926022217e9bf1021416debeba60092cbc3bc3aa
+SHA1 (patch-cpp_Makefile) = 8822a8c6004a30d16b6ae8965b81f952c2d8ad96
diff -r f77028bc4b48 -r 37dcb8e97eea graphics/qr-code-generator16/patches/patch-c_Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/qr-code-generator16/patches/patch-c_Makefile     Tue Aug 17 07:59:19 2021 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-c_Makefile,v 1.1 2021/08/17 07:59:19 wiz Exp $
+
+Honor LDFLAGS.
+https://github.com/nayuki/QR-Code-generator/pull/76
+
+--- c/Makefile.orig    2018-11-02 00:40:31.000000000 +0000
++++ c/Makefile
+@@ -66,11 +66,11 @@ clean:
+ 
+ # Executable files
+ %: %.o $(LIBFILE)
+-      $(CC) $(CFLAGS) -o $@ $< -L . -l $(LIB)
++      $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< -L . -l $(LIB)
+ 
+ # Special executable
+ qrcodegen-test: qrcodegen-test.c $(LIBOBJ:%.o=%.c)
+-      $(CC) $(CFLAGS) -DQRCODEGEN_TEST -o $@ $^
++      $(CC) $(CFLAGS) $(LDFLAGS) -DQRCODEGEN_TEST -o $@ $^
+ 
+ # The library
+ $(LIBFILE): $(LIBOBJ)
diff -r f77028bc4b48 -r 37dcb8e97eea graphics/qr-code-generator16/patches/patch-cpp_Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/qr-code-generator16/patches/patch-cpp_Makefile   Tue Aug 17 07:59:19 2021 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-cpp_Makefile,v 1.1 2021/08/17 07:59:19 wiz Exp $
+
+Honor LDFLAGS.
+https://github.com/nayuki/QR-Code-generator/pull/76
+
+--- cpp/Makefile.orig  2018-11-02 00:40:31.000000000 +0000
++++ cpp/Makefile
+@@ -66,7 +66,7 @@ clean:
+ 
+ # Executable files
+ %: %.o $(LIBFILE)
+-      $(CXX) $(CXXFLAGS) -o $@ $< -L . -l $(LIB)
++      $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $< -L . -l $(LIB)
+ 
+ # The library
+ $(LIBFILE): $(LIBOBJ)



Home | Main Index | Thread Index | Old Index