pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/graphics/qr-code-generator16
Module Name: pkgsrc
Committed By: wiz
Date: Tue Aug 17 07:59:19 UTC 2021
Added Files:
pkgsrc/graphics/qr-code-generator16: DESCR Makefile PLIST buildlink3.mk
distinfo
pkgsrc/graphics/qr-code-generator16/patches: patch-c_Makefile
patch-cpp_Makefile
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/graphics/qr-code-generator16/DESCR \
pkgsrc/graphics/qr-code-generator16/Makefile \
pkgsrc/graphics/qr-code-generator16/PLIST \
pkgsrc/graphics/qr-code-generator16/buildlink3.mk \
pkgsrc/graphics/qr-code-generator16/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/graphics/qr-code-generator16/patches/patch-c_Makefile \
pkgsrc/graphics/qr-code-generator16/patches/patch-cpp_Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/graphics/qr-code-generator16/DESCR
diff -u /dev/null pkgsrc/graphics/qr-code-generator16/DESCR:1.1
--- /dev/null Tue Aug 17 07:59:19 2021
+++ pkgsrc/graphics/qr-code-generator16/DESCR Tue Aug 17 07:59:19 2021
@@ -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.
Index: pkgsrc/graphics/qr-code-generator16/Makefile
diff -u /dev/null pkgsrc/graphics/qr-code-generator16/Makefile:1.1
--- /dev/null Tue Aug 17 07:59:19 2021
+++ pkgsrc/graphics/qr-code-generator16/Makefile Tue Aug 17 07:59:19 2021
@@ -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"
Index: pkgsrc/graphics/qr-code-generator16/PLIST
diff -u /dev/null pkgsrc/graphics/qr-code-generator16/PLIST:1.1
--- /dev/null Tue Aug 17 07:59:19 2021
+++ pkgsrc/graphics/qr-code-generator16/PLIST Tue Aug 17 07:59:19 2021
@@ -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
Index: pkgsrc/graphics/qr-code-generator16/buildlink3.mk
diff -u /dev/null pkgsrc/graphics/qr-code-generator16/buildlink3.mk:1.1
--- /dev/null Tue Aug 17 07:59:19 2021
+++ pkgsrc/graphics/qr-code-generator16/buildlink3.mk Tue Aug 17 07:59:19 2021
@@ -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
Index: pkgsrc/graphics/qr-code-generator16/distinfo
diff -u /dev/null pkgsrc/graphics/qr-code-generator16/distinfo:1.1
--- /dev/null Tue Aug 17 07:59:19 2021
+++ pkgsrc/graphics/qr-code-generator16/distinfo Tue Aug 17 07:59:19 2021
@@ -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
Index: pkgsrc/graphics/qr-code-generator16/patches/patch-c_Makefile
diff -u /dev/null pkgsrc/graphics/qr-code-generator16/patches/patch-c_Makefile:1.1
--- /dev/null Tue Aug 17 07:59:19 2021
+++ pkgsrc/graphics/qr-code-generator16/patches/patch-c_Makefile Tue Aug 17 07:59:19 2021
@@ -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)
Index: pkgsrc/graphics/qr-code-generator16/patches/patch-cpp_Makefile
diff -u /dev/null pkgsrc/graphics/qr-code-generator16/patches/patch-cpp_Makefile:1.1
--- /dev/null Tue Aug 17 07:59:19 2021
+++ pkgsrc/graphics/qr-code-generator16/patches/patch-cpp_Makefile Tue Aug 17 07:59:19 2021
@@ -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