From 63bdac62956599b540ccf19808935cb18b3a84a9 Mon Sep 17 00:00:00 2001 From: vins Date: Wed, 7 Dec 2022 09:15:36 +0000 Subject: 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. --- x11/xidle/Makefile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/x11/xidle/Makefile b/x11/xidle/Makefile index 4c15650926c..794591335af 100644 --- a/x11/xidle/Makefile +++ b/x11/xidle/Makefile @@ -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 @@ HOMEPAGE= https://man.openbsd.org/xidle.1 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 @@ do-install: .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 -- cgit v1.2.3