Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | require recipes-graphics/xorg-app/xorg-app-common.inc |
| 2 | SUMMARY = "xterm is the standard terminal emulator for the X Window System" |
Andrew Geissler | 72956ed | 2021-01-08 16:11:14 -0600 | [diff] [blame] | 3 | DEPENDS = "libxaw xorgproto libxext libxau libxinerama libxpm ncurses desktop-file-utils-native" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 4 | |
Andrew Geissler | e34f896 | 2021-04-15 15:53:51 -0500 | [diff] [blame] | 5 | LIC_FILES_CHKSUM = "file://xterm.h;beginline=3;endline=31;md5=987de9787175385203a1ea2482246a17" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 6 | |
| 7 | SRC_URI = "http://invisible-mirror.net/archives/${BPN}/${BP}.tgz \ |
| 8 | file://0001-Add-configure-time-check-for-setsid.patch \ |
| 9 | " |
| 10 | |
William A. Kennington III | 49e9566 | 2021-09-15 16:19:36 -0700 | [diff] [blame] | 11 | SRC_URI[sha256sum] = "2ff5169930b6b49ef0bafb5e1331c94f1a98c310442bba7798add821c76ae712" |
Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 12 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 13 | PACKAGECONFIG ?= "" |
| 14 | PACKAGECONFIG[xft] = "--enable-freetype,--disable-freetype,libxft fontconfig freetype-native" |
| 15 | |
Andrew Geissler | 72956ed | 2021-01-08 16:11:14 -0600 | [diff] [blame] | 16 | # Let xterm install .desktop files |
| 17 | inherit mime-xdg |
| 18 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 19 | EXTRA_OECONF = " --x-includes=${STAGING_INCDIR} \ |
| 20 | --x-libraries=${STAGING_LIBDIR} \ |
| 21 | FREETYPE_CONFIG=${STAGING_BINDIR_CROSS}/freetype-config \ |
| 22 | --disable-imake \ |
| 23 | --disable-rpath-hack \ |
| 24 | --disable-setuid \ |
| 25 | --with-app-defaults=${datadir}/X11/app-defaults \ |
| 26 | " |
| 27 | |
| 28 | B = "${S}" |
| 29 | |
| 30 | do_configure() { |
| 31 | gnu-configize --force |
| 32 | sed -e "s%/usr/contrib/X11R6%${STAGING_LIBDIR}%g" -i configure |
| 33 | oe_runconf |
| 34 | } |
| 35 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 36 | do_install:append() { |
Andrew Geissler | 72956ed | 2021-01-08 16:11:14 -0600 | [diff] [blame] | 37 | oe_runmake install-desktop DESTDIR="${D}" DESKTOP_FLAGS="--dir=${D}${DESKTOPDIR}" |
| 38 | } |
| 39 | |
Andrew Geissler | d159c7f | 2021-09-02 21:05:58 -0500 | [diff] [blame] | 40 | RPROVIDES:${PN} = "virtual-x-terminal-emulator" |
Andrew Geissler | 72956ed | 2021-01-08 16:11:14 -0600 | [diff] [blame] | 41 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 42 | # busybox can supply resize too |
| 43 | inherit update-alternatives |
| 44 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 45 | ALTERNATIVE:${PN} = "resize x-terminal-emulator" |
Andrew Geissler | 72956ed | 2021-01-08 16:11:14 -0600 | [diff] [blame] | 46 | ALTERNATIVE_TARGET[x-terminal-emulator] = "${bindir}/xterm" |
| 47 | # rxvt-unicode defaults to priority 10. Let's be one point lower to let it override xterm. |
| 48 | ALTERNATIVE_PRIORITY[x-terminal-emulator] = "9" |