blob: a6a3ce28a2012dd8ddae2f365313d242a9c9b15c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# $NetBSD: Makefile,v 1.63 2021/08/08 20:33:33 nia Exp $
DISTNAME= rxvt-2.7.10
PKGREVISION= 8
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=rxvt/}
MAINTAINER= gcw@rxvt.org
HOMEPAGE= https://sourceforge.net/projects/rxvt
COMMENT= Low memory usage xterm replacement that supports color
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --enable-utmp \
--enable-wtmp \
--enable-lastlog \
--enable-xpm-background \
--enable-transparency \
--enable-menubar \
--enable-rxvt-scroll \
--enable-next-scroll \
--enable-xterm-scroll \
--enable-xim \
--enable-ttygid \
--enable-xgetdefault \
--enable-frills \
--enable-linespace \
--enable-24bit \
--enable-keepscrolling \
--enable-mousewheel \
--enable-greek \
--enable-slipwheeling \
--enable-languages \
--with-encoding=noenc
CONFIGURE_ARGS+= --with-xpm-includes=${BUILDLINK_PREFIX.libXpm}/include/X11
CONFIGURE_ARGS+= --with-xpm-library=${BUILDLINK_PREFIX.libXpm}/lib
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS:M*BSD} || ${OPSYS} == "Darwin"
# Make rxvt setuid root so that tty ownership setting and utmp logging
# function correctly.
#
SPECIAL_PERMS= ${PREFIX}/bin/rxvt ${SETUID_ROOT_PERMS}
.endif
CFLAGS.SunOS+= -DSunOS
# Make sure _NETBSD_SOURCE is defined for updlastlogx
CFLAGS.NetBSD+= -D_NETBSD_SOURCE
post-patch:
${MV} ${WRKSRC}/src/feature.h ${WRKSRC}/src/feature.h.orig
${SED} < ${WRKSRC}/src/feature.h.orig > ${WRKSRC}/src/feature.h \
-e "s:/usr/lib/X11/app-defaults:${PREFIX}/lib/X11/app-defaults:"
INSTALLATION_DIRS= lib/X11/app-defaults
pre-install:
if [ ! -f ${PREFIX}/lib/X11/app-defaults/Rxvt ]; then \
${INSTALL_DATA} ${FILESDIR}/Rxvt ${DESTDIR}${PREFIX}/lib/X11/app-defaults; \
fi
.include "../../x11/libXpm/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|