pkgsrc-Changes archive

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

CVS commit: pkgsrc/x11/xtrlock



Module Name:    pkgsrc
Committed By:   vins
Date:           Thu Mar  2 15:29:41 UTC 2023

Modified Files:
        pkgsrc/x11/xtrlock: Makefile

Log Message:
x11/xtrlock: fix buildling on Linux.

Bump revision.


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

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

Modified files:

Index: pkgsrc/x11/xtrlock/Makefile
diff -u pkgsrc/x11/xtrlock/Makefile:1.2 pkgsrc/x11/xtrlock/Makefile:1.3
--- pkgsrc/x11/xtrlock/Makefile:1.2     Tue Dec  6 14:41:40 2022
+++ pkgsrc/x11/xtrlock/Makefile Thu Mar  2 15:29:41 2023
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.2 2022/12/06 14:41:40 vins Exp $
+# $NetBSD: Makefile,v 1.3 2023/03/02 15:29:41 vins Exp $
 
 DISTNAME=      xtrlock-2.15
+PKGREVISION=   1
 CATEGORIES=    x11
 MASTER_SITES=  ${MASTER_SITE_DEBIAN:=pool/main/x/xtrlock/}
 EXTRACT_SUFX=  .tar.xz
@@ -10,14 +11,24 @@ MAINTAINER= vins%NetBSD.org@localhost
 COMMENT=       Simple X11 screen lock tool
 LICENSE=       gnu-gpl-v3
 
+# support 'for' loop initial declarations
+USE_LANGUAGES= c99
 USE_IMAKE=     yes
 
 # mitigate CVE-2016-10894
-CFLAGS+=       -DMULTITOUCH
+CFLAGS+=       -std=c99 -DMULTITOUCH
 LDFLAGS+=      -lXi
 
 .include "../../mk/bsd.prefs.mk"
 
+.if ${OPSYS} == "Linux"
+SUBST_CLASSES+=                defs
+SUBST_STAGE.defs=      post-configure
+SUBST_FILES.defs+=     Makefile
+SUBST_SED.defs=                -e 's|-D_BSD_SOURCE[[:space:]]*-D_SVID_SOURCE|-D_DEFAULT_SOURCE|g'
+SUBST_MESSAGE.defs=    Replacing deprecated preprocessor-defined macros.
+.endif
+
 .if exists(/etc/shadow) && !(${OPSYS:M*BSD} != "" || ${OPSYS} == "Darwin" || ${OPSYS} == "DragonFly")
 MAKE_FLAGS+=           CCOPTIONS="${CFLAGS} -DSHADOW_PWD"                      #getspnam()
 .else



Home | Main Index | Thread Index | Old Index