summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvins <vins@pkgsrc.org>2022-12-07 09:15:36 +0000
committervins <vins@pkgsrc.org>2022-12-07 09:15:36 +0000
commit63bdac62956599b540ccf19808935cb18b3a84a9 (patch)
treef8d0c006c419e5881d997facdfdb5cad17483866
parentf7fe1cebc1836c756b0e4f4e979da8cbc7564780 (diff)
downloadpkgsrc-63bdac62956599b540ccf19808935cb18b3a84a9.tar.gz
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.
-rw-r--r--x11/xidle/Makefile16
1 files 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