pkgsrc-Changes archive

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

CVS commit: pkgsrc/security/libsecp256k1



Module Name:    pkgsrc
Committed By:   nia
Date:           Sat May 17 10:03:18 UTC 2025

Modified Files:
        pkgsrc/security/libsecp256k1: Makefile

Log Message:
libsecp256k1: Various build fixes.

Detected by drecklypkg CI. Now builds on SunOS, among others.

Now honours compilation settings from environment, so bump
PKGREVISION due to potentially changed binaries.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/security/libsecp256k1/Makefile

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

Modified files:

Index: pkgsrc/security/libsecp256k1/Makefile
diff -u pkgsrc/security/libsecp256k1/Makefile:1.2 pkgsrc/security/libsecp256k1/Makefile:1.3
--- pkgsrc/security/libsecp256k1/Makefile:1.2   Mon Jul 25 11:12:27 2022
+++ pkgsrc/security/libsecp256k1/Makefile       Sat May 17 10:03:18 2025
@@ -1,10 +1,11 @@
-# $NetBSD: Makefile,v 1.2 2022/07/25 11:12:27 wiz Exp $
+# $NetBSD: Makefile,v 1.3 2025/05/17 10:03:18 nia Exp $
 
-GITHUB_PROJECT=        secp256k1
-GITHUB_TAG=    ac05f61fcf639a15b5101131561620303e4bd808
 DISTNAME=      libsecp256k1-0.1
+PKGREVISION=   1
 CATEGORIES=    security
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=bitcoin-core/}
+GITHUB_PROJECT=        secp256k1
+GITHUB_TAG=    ac05f61fcf639a15b5101131561620303e4bd808
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      https://github.com/bitcoin-core/secp256k1/
@@ -13,7 +14,7 @@ LICENSE=      mit
 
 WRKSRC=                ${WRKDIR}/secp256k1-${GITHUB_TAG}
 GNU_CONFIGURE= yes
-USE_TOOLS+=    autoconf automake gmake
+USE_TOOLS+=    autoconf automake gmake pkg-config
 USE_LIBTOOL=   yes
 
 # Inspired by the configure flags ArchLinux uses
@@ -23,6 +24,27 @@ CONFIGURE_ARGS+=     --disable-coverage
 CONFIGURE_ARGS+=       --enable-module-ecdh
 CONFIGURE_ARGS+=       --enable-module-recovery
 
+SECP256K1_BIG_ENDIAN?= no
+
+.include "../../mk/bsd.prefs.mk"
+
+.for plat in ${BIGENDIANPLATFORMS}
+.  if !empty(MACHINE_PLATFORM:M${plat})
+SECP256K1_BIG_ENDIAN=  yes
+.  endif
+.endfor
+
+.if ${SECP256K1_BIG_ENDIAN:tl} == "no"
+CPPFLAGS+=     -DSECP256K1_LITTLE_ENDIAN=1
+.else
+CPPFLAGS+=     -DSECP256K1_BIG_ENDIAN=1
+.endif
+
+CONFIGURE_ENV+=                CC_FOR_BUILD=${CC:Q}
+CONFIGURE_ENV+=                CFLAGS_FOR_BUILD=${CFLAGS:Q}
+CONFIGURE_ENV+=                CPPFLAGS_FOR_BUILD=${CPPFLAGS:Q}
+CONFIGURE_ENV+=                LDFLAGS_FOR_BUILD=${LDFLAGS:Q}
+
 PKGCONFIG_OVERRIDE+=   libsecp256k1.pc.in
 
 pre-configure:



Home | Main Index | Thread Index | Old Index