blob: e7d520ebef69b2f002c0c7b14d164a17a5a92e3c [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."
Andrew Geissler90fd73c2021-03-05 15:25:55 -06008HOMEPAGE = "https://rxvt.org/"
Andrew Geissler595f6302022-01-24 19:11:47 +00009DEPENDS = "virtual/libx11 libxt libxft gdk-pixbuf libxmu libptytty"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050010
11SRC_URI = "http://dist.schmorp.de/rxvt-unicode/Attic/rxvt-unicode-${PV}.tar.bz2 \
12 file://xwc.patch \
13 file://rxvt.desktop \
14 file://rxvt.png"
15
Brad Bishop316dfdd2018-06-25 12:45:53 -040016inherit autotools pkgconfig update-alternatives
Patrick Williamsc124f4f2015-09-15 14:41:29 -050017
18PROVIDES = "virtual/x-terminal-emulator"
Patrick Williams213cb262021-08-07 19:21:33 -050019ALTERNATIVE:${PN} = "x-terminal-emulator"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050020ALTERNATIVE_TARGET[x-terminal-emulator] = "${bindir}/rxvt"
21
Patrick Williams213cb262021-08-07 19:21:33 -050022CFLAGS:append = " -fpermissive"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050023
24EXTRA_OECONF = "--enable-xim \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050025 --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
Patrick Williamsc124f4f2015-09-15 14:41:29 -050033PACKAGECONFIG ??= ""
34PACKAGECONFIG[startup] = "--enable-startup-notification,--disable-startup-notification,startup-notification,"
35
Patrick Williams213cb262021-08-07 19:21:33 -050036do_configure:prepend () {
Patrick Williamsc124f4f2015-09-15 14:41:29 -050037 if [ ! -e ${S}/acinclude.m4 ]; then
38 cp ${S}/aclocal.m4 ${S}/acinclude.m4
39 fi
40}
41
Patrick Williams213cb262021-08-07 19:21:33 -050042do_compile:prepend () {
Patrick Williamsc124f4f2015-09-15 14:41:29 -050043 echo '#define UTMP_FILE "${localstatedir}/run/utmp"' >> config.h
44 echo '#define WTMP_FILE "${localstatedir}/log/wtmp"' >> config.h
45 echo '#define LASTLOG_FILE "${localstatedir}/log/lastlog"' >> config.h
46 echo '#define HAVE_XLOCALE 1' >> config.h
47}
48
Patrick Williams213cb262021-08-07 19:21:33 -050049do_install:append () {
Patrick Williamsc124f4f2015-09-15 14:41:29 -050050 install -d ${D}/${datadir}
51 install -d ${D}/${datadir}/applications
52 install -d ${D}/${datadir}/pixmaps/
53
54 install -m 0644 ${WORKDIR}/rxvt.png ${D}/${datadir}/pixmaps
55 install -m 0644 ${WORKDIR}/rxvt.desktop ${D}/${datadir}/applications
56}
57
Patrick Williams213cb262021-08-07 19:21:33 -050058FILES:${PN} += "${datadir}/applications/rxvt.desktop ${datadir}/pixmaps/rxvt.png"