blob: b064a63caa6608f088deac32cf82a70e1dd1f35e [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SECTION = "x11/utils"
2SUMMARY = "rxvt terminal clone supporting unicode"
3DESCRIPTION = "rxvt-unicode is a clone of the well known \
4terminal emulator rxvt, modified to store text in Unicode \
5(either UCS-2 or UCS-4) and to use locale-correct input and \
6output. It also supports mixing multiple fonts at the \
7same time, including Xft fonts."
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05008DEPENDS = "virtual/libx11 libxt libxft gdk-pixbuf libxmu"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05009
10SRC_URI = "http://dist.schmorp.de/rxvt-unicode/Attic/rxvt-unicode-${PV}.tar.bz2 \
11 file://xwc.patch \
12 file://rxvt.desktop \
13 file://rxvt.png"
14
Brad Bishop316dfdd2018-06-25 12:45:53 -040015inherit autotools pkgconfig update-alternatives
Patrick Williamsc124f4f2015-09-15 14:41:29 -050016
17PROVIDES = "virtual/x-terminal-emulator"
18ALTERNATIVE_${PN} = "x-terminal-emulator"
19ALTERNATIVE_TARGET[x-terminal-emulator] = "${bindir}/rxvt"
20
21CFLAGS_append = " -fpermissive"
22
23EXTRA_OECONF = "--enable-xim \
24 --enable-utmp --enable-wtmp --enable-lastlog \
25 --with-term=rxvt --enable-keepscrolling \
26 --enable-xft --with-name=rxvt --enable-frills \
27 --enable-swapscreen --enable-transparency \
28 --with-codesets=eu --enable-pointer-blank \
29 --enable-text-blink --enable-rxvt-scroll \
30 --enable-combining --disable-perl \
31 --with-x=${STAGING_DIR_HOST}${prefix}"
32
Andrew Geissler706d5aa2021-02-12 15:55:30 -060033EXTRA_OECONF_append_libc-musl = " --disable-wtmp"
Andrew Geissler475cb722020-07-10 16:00:51 -050034
Patrick Williamsc124f4f2015-09-15 14:41:29 -050035PACKAGECONFIG ??= ""
36PACKAGECONFIG[startup] = "--enable-startup-notification,--disable-startup-notification,startup-notification,"
37
38do_configure_prepend () {
39 if [ ! -e ${S}/acinclude.m4 ]; then
40 cp ${S}/aclocal.m4 ${S}/acinclude.m4
41 fi
42}
43
44do_compile_prepend () {
45 echo '#define UTMP_FILE "${localstatedir}/run/utmp"' >> config.h
46 echo '#define WTMP_FILE "${localstatedir}/log/wtmp"' >> config.h
47 echo '#define LASTLOG_FILE "${localstatedir}/log/lastlog"' >> config.h
48 echo '#define HAVE_XLOCALE 1' >> config.h
49}
50
51do_install_append () {
52 install -d ${D}/${datadir}
53 install -d ${D}/${datadir}/applications
54 install -d ${D}/${datadir}/pixmaps/
55
56 install -m 0644 ${WORKDIR}/rxvt.png ${D}/${datadir}/pixmaps
57 install -m 0644 ${WORKDIR}/rxvt.desktop ${D}/${datadir}/applications
58}
59
60FILES_${PN} += "${datadir}/applications/rxvt.desktop ${datadir}/pixmaps/rxvt.png"