pkgsrc-Changes archive

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

CVS commit: pkgsrc/graphics/qr-code-generator



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sat Sep 28 08:27:55 UTC 2024

Modified Files:
        pkgsrc/graphics/qr-code-generator: Makefile distinfo
Added Files:
        pkgsrc/graphics/qr-code-generator/patches: patch-c_Makefile

Log Message:
qr-code-generator: fix build on macOS

Fixes PR 58703 by George Georgalis.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/graphics/qr-code-generator/Makefile
cvs rdiff -u -r1.8 -r1.9 pkgsrc/graphics/qr-code-generator/distinfo
cvs rdiff -u -r0 -r1.4 \
    pkgsrc/graphics/qr-code-generator/patches/patch-c_Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/graphics/qr-code-generator/Makefile
diff -u pkgsrc/graphics/qr-code-generator/Makefile:1.5 pkgsrc/graphics/qr-code-generator/Makefile:1.6
--- pkgsrc/graphics/qr-code-generator/Makefile:1.5      Tue May 17 14:09:38 2022
+++ pkgsrc/graphics/qr-code-generator/Makefile  Sat Sep 28 08:27:55 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2022/05/17 14:09:38 ryoon Exp $
+# $NetBSD: Makefile,v 1.6 2024/09/28 08:27:55 wiz Exp $
 
 DISTNAME=      QR-Code-generator-1.8.0
 PKGNAME=       ${DISTNAME:tl}
@@ -11,7 +11,11 @@ HOMEPAGE=    https://github.com/nayuki/QR-C
 COMMENT=       High-quality QR Code generator in C/C++
 LICENSE=       mit
 
-USE_LANGUAGES= c c++11
+USE_LANGUAGES= c c++
+
+USE_CC_FEATURES+=      c99
+USE_CXX_FEATURES+=     c++11
+
 USE_TOOLS+=    gmake
 
 WRKSRC=                ${WRKDIR}/${DISTNAME}

Index: pkgsrc/graphics/qr-code-generator/distinfo
diff -u pkgsrc/graphics/qr-code-generator/distinfo:1.8 pkgsrc/graphics/qr-code-generator/distinfo:1.9
--- pkgsrc/graphics/qr-code-generator/distinfo:1.8      Tue May 17 14:09:38 2022
+++ pkgsrc/graphics/qr-code-generator/distinfo  Sat Sep 28 08:27:55 2024
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.8 2022/05/17 14:09:38 ryoon Exp $
+$NetBSD: distinfo,v 1.9 2024/09/28 08:27:55 wiz Exp $
 
 BLAKE2s (QR-Code-generator-1.8.0.tar.gz) = 9869617d472874f2c73efdbfa2e12554fc97fdac53dfe1e01f0245187b6e168f
 SHA512 (QR-Code-generator-1.8.0.tar.gz) = 0cdf0873e71aed124fc7357da86fb26f23fd26432f94c9752fa5a044085b26e5aece2115134d0e50213ff24be7c55818e7dec31205a68751065bc82ab0c2c6ac
 Size (QR-Code-generator-1.8.0.tar.gz) = 193288 bytes
+SHA1 (patch-c_Makefile) = c459e47fdd3bb12e916f408419eff3980b631162

Added files:

Index: pkgsrc/graphics/qr-code-generator/patches/patch-c_Makefile
diff -u /dev/null pkgsrc/graphics/qr-code-generator/patches/patch-c_Makefile:1.4
--- /dev/null   Sat Sep 28 08:27:55 2024
+++ pkgsrc/graphics/qr-code-generator/patches/patch-c_Makefile  Sat Sep 28 08:27:55 2024
@@ -0,0 +1,15 @@
+$NetBSD: patch-c_Makefile,v 1.4 2024/09/28 08:27:55 wiz Exp $
+
+Portability patch - macOS ar(1) does not support '--'.
+
+--- c/Makefile.orig    2024-09-28 08:25:01.821594861 +0000
++++ c/Makefile
+@@ -73,7 +73,7 @@ qrcodegen-test: qrcodegen-test.c $(LIBOB
+ 
+ # The library
+ $(LIBFILE): $(LIBOBJ)
+-      $(AR) -crs $@ -- $^
++      $(AR) -crs $@ $^
+ 
+ # Object files
+ %.o: %.c .deps/timestamp



Home | Main Index | Thread Index | Old Index