pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/x11/xidle x11/xidle: define _OPENBSD_SOURCE on NetBSD ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/97f4f369ef59
branches:  trunk
changeset: 389636:97f4f369ef59
user:      vins <vins%pkgsrc.org@localhost>
date:      Wed Dec 07 09:15:36 2022 +0000

description:
x11/xidle: define _OPENBSD_SOURCE on NetBSD to declare strtonum().

In addition:
* Switch distfile hosting from SDF.org to ftp.netbsd.org.
* Replace MAKEFLAGS with MAKE_FLAGS.

diffstat:

 x11/xidle/Makefile |  16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diffs (40 lines):

diff -r 965e2f25f680 -r 97f4f369ef59 x11/xidle/Makefile
--- a/x11/xidle/Makefile        Wed Dec 07 08:15:59 2022 +0000
+++ b/x11/xidle/Makefile        Wed Dec 07 09:15:36 2022 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.2 2022/12/06 14:41:39 vins Exp $
+# $NetBSD: Makefile,v 1.3 2022/12/07 09:15:36 vins Exp $
 
 DISTNAME=      xidle-20220718
 CATEGORIES=    x11
-MASTER_SITES=  https://sehnsucht.multics.org/pub/pkgsrc/distfiles/
+MASTER_SITES=  ftp://ftp.NetBSD.org/pub/NetBSD/misc/vins/dists/
 DIST_SUBDIR=   ${PKGNAME_NOREV}
 EXTRACT_SUFX=  .tar.xz
 
@@ -11,9 +11,9 @@
 COMMENT=       Run a program on X inactivity
 LICENSE=       isc
 
-MAKEFLAGS+=    X11BASE=${X11BASE}
-MAKEFLAGS+=    MANDIR=${PKGMANDIR}
-MAKEFLAGS+=    CFLAGS=${CFLAGS:Q}
+MAKE_FLAGS+=   X11BASE=${X11BASE}
+MAKE_FLAGS+=   MANDIR=${PKGMANDIR}
+MAKE_FLAGS+=   CFLAGS=${CFLAGS:Q}
 
 SUBST_CLASSES+=                paths
 SUBST_STAGE.paths=     pre-configure
@@ -30,7 +30,11 @@
 
 .include "../../mk/bsd.prefs.mk"
 
-.if ${OPSYS} == "Linux"        # strtonum()
+.if ${OPSYS} == "NetBSD"       # strtonum()
+CFLAGS+=       -D_OPENBSD_SOURCE
+.endif
+
+.if ${OPSYS} == "Linux"                # strtonum()
 LDFLAGS+=   -lbsd
 .include "../../devel/libbsd/buildlink3.mk"
 .endif



Home | Main Index | Thread Index | Old Index