Sun Aug 8 20:33:33 2021 UTC ()
rxvt: define _NETBSD_SOURCE


(nia)
diff -r1.62 -r1.63 pkgsrc/x11/rxvt/Makefile

cvs diff -r1.62 -r1.63 pkgsrc/x11/rxvt/Makefile (expand / switch to unified diff)

--- pkgsrc/x11/rxvt/Makefile 2020/10/10 08:26:56 1.62
+++ pkgsrc/x11/rxvt/Makefile 2021/08/08 20:33:33 1.63
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.62 2020/10/10 08:26:56 nia Exp $ 1# $NetBSD: Makefile,v 1.63 2021/08/08 20:33:33 nia Exp $
2 2
3DISTNAME= rxvt-2.7.10 3DISTNAME= rxvt-2.7.10
4PKGREVISION= 8 4PKGREVISION= 8
5CATEGORIES= x11 5CATEGORIES= x11
6MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=rxvt/} 6MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=rxvt/}
7 7
8MAINTAINER= gcw@rxvt.org 8MAINTAINER= gcw@rxvt.org
9HOMEPAGE= https://sourceforge.net/projects/rxvt 9HOMEPAGE= https://sourceforge.net/projects/rxvt
10COMMENT= Low memory usage xterm replacement that supports color 10COMMENT= Low memory usage xterm replacement that supports color
11 11
12GNU_CONFIGURE= YES 12GNU_CONFIGURE= YES
13 13
14CONFIGURE_ARGS+= --enable-utmp \ 14CONFIGURE_ARGS+= --enable-utmp \
@@ -37,26 +37,29 @@ CONFIGURE_ARGS+= --with-xpm-includes=${B @@ -37,26 +37,29 @@ CONFIGURE_ARGS+= --with-xpm-includes=${B
37CONFIGURE_ARGS+= --with-xpm-library=${BUILDLINK_PREFIX.libXpm}/lib 37CONFIGURE_ARGS+= --with-xpm-library=${BUILDLINK_PREFIX.libXpm}/lib
38 38
39.include "../../mk/bsd.prefs.mk" 39.include "../../mk/bsd.prefs.mk"
40 40
41.if ${OPSYS:M*BSD} || ${OPSYS} == "Darwin" 41.if ${OPSYS:M*BSD} || ${OPSYS} == "Darwin"
42# Make rxvt setuid root so that tty ownership setting and utmp logging 42# Make rxvt setuid root so that tty ownership setting and utmp logging
43# function correctly. 43# function correctly.
44# 44#
45SPECIAL_PERMS= ${PREFIX}/bin/rxvt ${SETUID_ROOT_PERMS} 45SPECIAL_PERMS= ${PREFIX}/bin/rxvt ${SETUID_ROOT_PERMS}
46.endif 46.endif
47 47
48CFLAGS.SunOS+= -DSunOS 48CFLAGS.SunOS+= -DSunOS
49 49
 50# Make sure _NETBSD_SOURCE is defined for updlastlogx
 51CFLAGS.NetBSD+= -D_NETBSD_SOURCE
 52
50post-patch: 53post-patch:
51 ${MV} ${WRKSRC}/src/feature.h ${WRKSRC}/src/feature.h.orig 54 ${MV} ${WRKSRC}/src/feature.h ${WRKSRC}/src/feature.h.orig
52 ${SED} < ${WRKSRC}/src/feature.h.orig > ${WRKSRC}/src/feature.h \ 55 ${SED} < ${WRKSRC}/src/feature.h.orig > ${WRKSRC}/src/feature.h \
53 -e "s:/usr/lib/X11/app-defaults:${PREFIX}/lib/X11/app-defaults:" 56 -e "s:/usr/lib/X11/app-defaults:${PREFIX}/lib/X11/app-defaults:"
54 57
55INSTALLATION_DIRS= lib/X11/app-defaults 58INSTALLATION_DIRS= lib/X11/app-defaults
56 59
57pre-install: 60pre-install:
58 if [ ! -f ${PREFIX}/lib/X11/app-defaults/Rxvt ]; then \ 61 if [ ! -f ${PREFIX}/lib/X11/app-defaults/Rxvt ]; then \
59 ${INSTALL_DATA} ${FILESDIR}/Rxvt ${DESTDIR}${PREFIX}/lib/X11/app-defaults; \ 62 ${INSTALL_DATA} ${FILESDIR}/Rxvt ${DESTDIR}${PREFIX}/lib/X11/app-defaults; \
60 fi 63 fi
61 64
62.include "../../x11/libXpm/buildlink3.mk" 65.include "../../x11/libXpm/buildlink3.mk"