blob: 8f6a7ef766160d41eb5e8d6e00f4f509709bbcc0 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001require recipes-graphics/xorg-app/xorg-app-common.inc
2SUMMARY = "xterm is the standard terminal emulator for the X Window System"
Andrew Geissler72956ed2021-01-08 16:11:14 -06003DEPENDS = "libxaw xorgproto libxext libxau libxinerama libxpm ncurses desktop-file-utils-native"
Andrew Geissler82c905d2020-04-13 13:39:40 -05004
Andrew Geisslere34f8962021-04-15 15:53:51 -05005LIC_FILES_CHKSUM = "file://xterm.h;beginline=3;endline=31;md5=987de9787175385203a1ea2482246a17"
Andrew Geissler82c905d2020-04-13 13:39:40 -05006
7SRC_URI = "http://invisible-mirror.net/archives/${BPN}/${BP}.tgz \
8 file://0001-Add-configure-time-check-for-setsid.patch \
9 "
10
William A. Kennington III49e95662021-09-15 16:19:36 -070011SRC_URI[sha256sum] = "2ff5169930b6b49ef0bafb5e1331c94f1a98c310442bba7798add821c76ae712"
Andrew Geissler32b11992021-03-31 13:37:05 -050012
Andrew Geissler82c905d2020-04-13 13:39:40 -050013PACKAGECONFIG ?= ""
14PACKAGECONFIG[xft] = "--enable-freetype,--disable-freetype,libxft fontconfig freetype-native"
15
Andrew Geissler72956ed2021-01-08 16:11:14 -060016# Let xterm install .desktop files
17inherit mime-xdg
18
Andrew Geissler82c905d2020-04-13 13:39:40 -050019EXTRA_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
28B = "${S}"
29
30do_configure() {
31 gnu-configize --force
32 sed -e "s%/usr/contrib/X11R6%${STAGING_LIBDIR}%g" -i configure
33 oe_runconf
34}
35
Patrick Williams213cb262021-08-07 19:21:33 -050036do_install:append() {
Andrew Geissler72956ed2021-01-08 16:11:14 -060037 oe_runmake install-desktop DESTDIR="${D}" DESKTOP_FLAGS="--dir=${D}${DESKTOPDIR}"
38}
39
Andrew Geisslerd159c7f2021-09-02 21:05:58 -050040RPROVIDES:${PN} = "virtual-x-terminal-emulator"
Andrew Geissler72956ed2021-01-08 16:11:14 -060041
Andrew Geissler82c905d2020-04-13 13:39:40 -050042# busybox can supply resize too
43inherit update-alternatives
44
Patrick Williams213cb262021-08-07 19:21:33 -050045ALTERNATIVE:${PN} = "resize x-terminal-emulator"
Andrew Geissler72956ed2021-01-08 16:11:14 -060046ALTERNATIVE_TARGET[x-terminal-emulator] = "${bindir}/xterm"
47# rxvt-unicode defaults to priority 10. Let's be one point lower to let it override xterm.
48ALTERNATIVE_PRIORITY[x-terminal-emulator] = "9"