pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/bsdec2-image-upload Fix build on NetBSD.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bd1af577474f
branches:  trunk
changeset: 334263:bd1af577474f
user:      jmcneill <jmcneill%pkgsrc.org@localhost>
date:      Wed May 22 08:58:39 2019 +0000

description:
Fix build on NetBSD.

diffstat:

 sysutils/bsdec2-image-upload/Makefile |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r ecf73d3ec5f7 -r bd1af577474f sysutils/bsdec2-image-upload/Makefile
--- a/sysutils/bsdec2-image-upload/Makefile     Wed May 22 08:58:12 2019 +0000
+++ b/sysutils/bsdec2-image-upload/Makefile     Wed May 22 08:58:39 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2019/05/22 08:45:10 jmcneill Exp $
+# $NetBSD: Makefile,v 1.2 2019/05/22 08:58:39 jmcneill Exp $
 
 GITHUB_PROJECT=        bsdec2-image-upload
 DISTNAME=      1.2.2
@@ -14,8 +14,16 @@
 
 WRKSRC=                ${WRKDIR}/bsdec2-image-upload-1.2.2
 
+MAKE_ENV+=     NOMAN=1
 CFLAGS+=       -DCERTFILE=\"${PREFIX}/share/mozilla-rootcerts/cacert.pem\"
 
+.include "../../mk/compiler.mk"
+.if !empty(PKGSRC_COMPILER:Mgcc)
+CFLAGS+=       -Wno-error=pointer-sign \
+               -Wno-error=maybe-uninitialized \
+               -Wno-error=discarded-qualifiers
+.endif
+
 INSTALLATION_DIRS+=    bin
 
 do-install:



Home | Main Index | Thread Index | Old Index