blob: ae046b18c2a41b328e5b7b0e9a66b97ab591a515 [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001require recipes-graphics/xorg-app/xorg-app-common.inc
2SUMMARY = "xterm is the standard terminal emulator for the X Window System"
3DEPENDS = "libxaw xorgproto libxext libxau libxinerama libxpm ncurses desktop-file-utils-native"
4
Andrew Geisslerc5535c92023-01-27 16:10:19 -06005LIC_FILES_CHKSUM = "file://xterm.h;beginline=3;endline=31;md5=9c96124b492c0c02356850c243aaeca2"
Andrew Geissler517393d2023-01-13 08:55:19 -06006
7SRC_URI = "http://invisible-mirror.net/archives/${BPN}/${BP}.tgz \
8 file://0001-Add-configure-time-check-for-setsid.patch \
9 "
10
Patrick Williams2a254922023-08-11 09:48:11 -050011SRC_URI[sha256sum] = "31ef870740ceae020c3c4b4a9601c7f47bfd46672c1aaf2d213a565d64cbc373"
Andrew Geissler517393d2023-01-13 08:55:19 -060012
13PACKAGECONFIG ?= ""
14PACKAGECONFIG[xft] = "--enable-freetype,--disable-freetype,libxft fontconfig freetype-native"
15
16# Let xterm install .desktop files
17inherit mime-xdg
18
19EXTRA_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
30CFLAGS += "-D_GNU_SOURCE"
31
32do_configure() {
33 gnu-configize --force
34 sed -e "s%/usr/contrib/X11R6%${STAGING_LIBDIR}%g" -i configure
35 oe_runconf
36}
37
38do_install:append() {
39 oe_runmake install-desktop DESTDIR="${D}" DESKTOP_FLAGS="--dir=${D}${DESKTOPDIR}"
40}
41
42RPROVIDES:${PN} = "virtual-x-terminal-emulator"
43
44# busybox can supply resize too
45inherit update-alternatives
46
47ALTERNATIVE:${PN} = "resize x-terminal-emulator"
48ALTERNATIVE_TARGET[x-terminal-emulator] = "${bindir}/xterm"
49# rxvt-unicode defaults to priority 10. Let's be one point lower to let it override xterm.
50ALTERNATIVE_PRIORITY[x-terminal-emulator] = "9"