monocypher: Fully honour CFLAGS. Append -std=c99, uses many C99 features.
This commit is contained in:
parent
d7ba95b97e
commit
355c800aeb
|
@ -1,6 +1,7 @@
|
|||
# $NetBSD: Makefile,v 1.2 2020/10/19 12:30:30 mef Exp $
|
||||
# $NetBSD: Makefile,v 1.3 2023/07/12 21:17:16 nia Exp $
|
||||
|
||||
DISTNAME= monocypher-3.1.1
|
||||
PKGREVISION= 1
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= https://monocypher.org/download/
|
||||
|
||||
|
@ -14,7 +15,4 @@ MAKE_FILE= makefile
|
|||
MAKE_ENV+= MANDIR=${DESTDIR}/${PKGMANDIR}
|
||||
TEST_TARGET= test
|
||||
|
||||
# We default to binaries portable to more than one arch.
|
||||
BUILDLINK_TRANSFORM+= rm:-march=native
|
||||
|
||||
.include "../../mk/bsd.pkg.mk"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
$NetBSD: distinfo,v 1.4 2021/10/26 11:17:20 nia Exp $
|
||||
$NetBSD: distinfo,v 1.5 2023/07/12 21:17:16 nia Exp $
|
||||
|
||||
BLAKE2s (monocypher-3.1.1.tar.gz) = ebd9d2d43ac61989545f4b9b324b65399709eac49ed16dfb0a721dabb113cdac
|
||||
SHA512 (monocypher-3.1.1.tar.gz) = 9c202ffe74eac1f2a7f21b8e195d981c21c5792b788315dea168cf40f1ee83cb787f3409c2d6135f517a58fee5f3e44c9ef521e132cee40c04e4b4868787f366
|
||||
Size (monocypher-3.1.1.tar.gz) = 1066382 bytes
|
||||
SHA1 (patch-makefile) = 788ffa96918136c9fe602e55d72f6036f196227a
|
||||
SHA1 (patch-makefile) = 56e770ab18e58f25165e0470f2f060f0d943451e
|
||||
|
|
|
@ -1,19 +1,20 @@
|
|||
$NetBSD: patch-makefile,v 1.2 2020/10/19 12:30:30 mef Exp $
|
||||
$NetBSD: patch-makefile,v 1.3 2023/07/12 21:17:16 nia Exp $
|
||||
|
||||
This uses many C99 features in its code.
|
||||
Allow overriding CC, DESTDIR and PREFIX
|
||||
Use the more standard MANDIR (that we override)
|
||||
|
||||
--- makefile.orig 2020-04-22 00:00:00.000000000 +0000
|
||||
+++ makefile
|
||||
@@ -49,14 +49,14 @@
|
||||
@@ -49,14 +49,13 @@
|
||||
# You should have received a copy of the CC0 Public Domain Dedication along
|
||||
# with this software. If not, see
|
||||
# <https://creativecommons.org/publicdomain/zero/1.0/>
|
||||
-CC=gcc -std=gnu99 # speed tests don't work with -std=cxx, they need the POSIX extensions
|
||||
+CC?=gcc -std=gnu99 # speed tests don't work with -std=cxx, they need the POSIX extensions
|
||||
CFLAGS= -pedantic -Wall -Wextra -O3 -march=native
|
||||
-CFLAGS= -pedantic -Wall -Wextra -O3 -march=native
|
||||
-DESTDIR=
|
||||
-PREFIX=usr/local
|
||||
+CFLAGS+= -std=c99 -Wall -Wextra
|
||||
+DESTDIR?=
|
||||
+PREFIX?=usr/local
|
||||
LIBDIR=$(PREFIX)/lib
|
||||
|
|
Loading…
Reference in New Issue