Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SECTION = "x11/utils" |
| 2 | SUMMARY = "rxvt terminal clone supporting unicode" |
| 3 | DESCRIPTION = "rxvt-unicode is a clone of the well known \ |
| 4 | terminal emulator rxvt, modified to store text in Unicode \ |
| 5 | (either UCS-2 or UCS-4) and to use locale-correct input and \ |
| 6 | output. It also supports mixing multiple fonts at the \ |
| 7 | same time, including Xft fonts." |
Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 8 | HOMEPAGE = "https://rxvt.org/" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 9 | DEPENDS = "virtual/libx11 libxt libxft gdk-pixbuf libxmu" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 10 | |
| 11 | SRC_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 Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 16 | inherit autotools pkgconfig update-alternatives |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 17 | |
| 18 | PROVIDES = "virtual/x-terminal-emulator" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 19 | ALTERNATIVE:${PN} = "x-terminal-emulator" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 20 | ALTERNATIVE_TARGET[x-terminal-emulator] = "${bindir}/rxvt" |
| 21 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 22 | CFLAGS:append = " -fpermissive" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 23 | |
| 24 | EXTRA_OECONF = "--enable-xim \ |
| 25 | --enable-utmp --enable-wtmp --enable-lastlog \ |
| 26 | --with-term=rxvt --enable-keepscrolling \ |
| 27 | --enable-xft --with-name=rxvt --enable-frills \ |
| 28 | --enable-swapscreen --enable-transparency \ |
| 29 | --with-codesets=eu --enable-pointer-blank \ |
| 30 | --enable-text-blink --enable-rxvt-scroll \ |
| 31 | --enable-combining --disable-perl \ |
| 32 | --with-x=${STAGING_DIR_HOST}${prefix}" |
| 33 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 34 | EXTRA_OECONF:append:libc-musl = " --disable-wtmp --disable-lastlog" |
Andrew Geissler | 475cb72 | 2020-07-10 16:00:51 -0500 | [diff] [blame] | 35 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 36 | PACKAGECONFIG ??= "" |
| 37 | PACKAGECONFIG[startup] = "--enable-startup-notification,--disable-startup-notification,startup-notification," |
| 38 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 39 | do_configure:prepend () { |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 40 | if [ ! -e ${S}/acinclude.m4 ]; then |
| 41 | cp ${S}/aclocal.m4 ${S}/acinclude.m4 |
| 42 | fi |
| 43 | } |
| 44 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 45 | do_compile:prepend () { |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 46 | echo '#define UTMP_FILE "${localstatedir}/run/utmp"' >> config.h |
| 47 | echo '#define WTMP_FILE "${localstatedir}/log/wtmp"' >> config.h |
| 48 | echo '#define LASTLOG_FILE "${localstatedir}/log/lastlog"' >> config.h |
| 49 | echo '#define HAVE_XLOCALE 1' >> config.h |
| 50 | } |
| 51 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 52 | do_install:append () { |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 53 | install -d ${D}/${datadir} |
| 54 | install -d ${D}/${datadir}/applications |
| 55 | install -d ${D}/${datadir}/pixmaps/ |
| 56 | |
| 57 | install -m 0644 ${WORKDIR}/rxvt.png ${D}/${datadir}/pixmaps |
| 58 | install -m 0644 ${WORKDIR}/rxvt.desktop ${D}/${datadir}/applications |
| 59 | } |
| 60 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 61 | FILES:${PN} += "${datadir}/applications/rxvt.desktop ${datadir}/pixmaps/rxvt.png" |