pkgsrc-Changes archive

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

CVS commit: pkgsrc/security/d0_blind_id



Module Name:    pkgsrc
Committed By:   nia
Date:           Mon Oct 14 15:38:19 UTC 2024

Modified Files:
        pkgsrc/security/d0_blind_id: Makefile

Log Message:
d0_blind_id: Not all platforms define BYTE_ORDER


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/security/d0_blind_id/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/d0_blind_id/Makefile
diff -u pkgsrc/security/d0_blind_id/Makefile:1.1 pkgsrc/security/d0_blind_id/Makefile:1.2
--- pkgsrc/security/d0_blind_id/Makefile:1.1    Sun May  5 08:53:21 2024
+++ pkgsrc/security/d0_blind_id/Makefile        Mon Oct 14 15:38:19 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2024/05/05 08:53:21 nia Exp $
+# $NetBSD: Makefile,v 1.2 2024/10/14 15:38:19 nia Exp $
 
 DISTNAME=      d0_blind_id-1.0
 CATEGORIES=    security
@@ -14,6 +14,17 @@ USE_TOOLS+=  autoreconf autoconf automake
 USE_LIBTOOL=   yes
 GNU_CONFIGURE= yes
 
+.include "../../mk/endian.mk"
+CFLAGS+=       -DLITTLE_ENDIAN=1234
+CFLAGS+=       -DBIG_ENDIAN=4321
+.if ${MACHINE_ENDIAN} == "big"
+CFLAGS+=       -DBYTE_ORDER=BIG_ENDIAN
+.elif ${MACHINE_ENDIAN} == "little"
+CFLAGS+=       -DBYTE_ORDER=LITTLE_ENDIAN
+.else
+BROKEN=                "Unknown endianness"
+.endif
+
 PKGCONFIG_OVERRIDE+=   d0_blind_id.pc.in
 PKGCONFIG_OVERRIDE+=   d0_rijndael.pc.in
 



Home | Main Index | Thread Index | Old Index