xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-sato/rxvt-unicode/rxvt-unicode.inc (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSECTION = "x11/utils"
2*4882a593SmuzhiyunSUMMARY = "rxvt terminal clone supporting unicode"
3*4882a593SmuzhiyunDESCRIPTION = "rxvt-unicode is a clone of the well known \
4*4882a593Smuzhiyunterminal emulator rxvt, modified to store text in Unicode \
5*4882a593Smuzhiyun(either UCS-2 or UCS-4) and to use locale-correct input and \
6*4882a593Smuzhiyunoutput. It also supports mixing multiple fonts at the \
7*4882a593Smuzhiyunsame time, including Xft fonts."
8*4882a593SmuzhiyunHOMEPAGE = "https://rxvt.org/"
9*4882a593SmuzhiyunDEPENDS = "virtual/libx11 libxt libxft gdk-pixbuf libxmu libptytty"
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunSRC_URI = "http://dist.schmorp.de/rxvt-unicode/Attic/rxvt-unicode-${PV}.tar.bz2 \
12*4882a593Smuzhiyun	   file://xwc.patch \
13*4882a593Smuzhiyun	   file://rxvt.desktop \
14*4882a593Smuzhiyun	   file://rxvt.png"
15*4882a593Smuzhiyun
16*4882a593Smuzhiyuninherit autotools pkgconfig update-alternatives
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunPROVIDES = "virtual/x-terminal-emulator"
19*4882a593SmuzhiyunALTERNATIVE:${PN} = "x-terminal-emulator"
20*4882a593SmuzhiyunALTERNATIVE_TARGET[x-terminal-emulator] = "${bindir}/rxvt"
21*4882a593Smuzhiyun
22*4882a593SmuzhiyunCFLAGS:append = " -fpermissive"
23*4882a593Smuzhiyun
24*4882a593SmuzhiyunEXTRA_OECONF = "--enable-xim \
25*4882a593Smuzhiyun		--with-term=rxvt --enable-keepscrolling \
26*4882a593Smuzhiyun		--enable-xft --with-name=rxvt --enable-frills \
27*4882a593Smuzhiyun		--enable-swapscreen --enable-transparency \
28*4882a593Smuzhiyun		--with-codesets=eu --enable-pointer-blank \
29*4882a593Smuzhiyun		--enable-text-blink --enable-rxvt-scroll \
30*4882a593Smuzhiyun		--enable-combining --disable-perl \
31*4882a593Smuzhiyun		--with-x=${STAGING_DIR_HOST}${prefix}"
32*4882a593Smuzhiyun
33*4882a593SmuzhiyunPACKAGECONFIG ??= ""
34*4882a593SmuzhiyunPACKAGECONFIG[startup] = "--enable-startup-notification,--disable-startup-notification,startup-notification,"
35*4882a593Smuzhiyun
36*4882a593Smuzhiyundo_configure:prepend () {
37*4882a593Smuzhiyun	if [ ! -e ${S}/acinclude.m4 ]; then
38*4882a593Smuzhiyun		cp ${S}/aclocal.m4 ${S}/acinclude.m4
39*4882a593Smuzhiyun	fi
40*4882a593Smuzhiyun}
41*4882a593Smuzhiyun
42*4882a593Smuzhiyundo_compile:prepend () {
43*4882a593Smuzhiyun	echo '#define UTMP_FILE "${localstatedir}/run/utmp"' >> config.h
44*4882a593Smuzhiyun	echo '#define WTMP_FILE "${localstatedir}/log/wtmp"' >> config.h
45*4882a593Smuzhiyun	echo '#define LASTLOG_FILE "${localstatedir}/log/lastlog"' >> config.h
46*4882a593Smuzhiyun	echo '#define HAVE_XLOCALE 1' >> config.h
47*4882a593Smuzhiyun}
48*4882a593Smuzhiyun
49*4882a593Smuzhiyundo_install:append () {
50*4882a593Smuzhiyun	install -d ${D}/${datadir}
51*4882a593Smuzhiyun	install -d ${D}/${datadir}/applications
52*4882a593Smuzhiyun	install -d ${D}/${datadir}/pixmaps/
53*4882a593Smuzhiyun
54*4882a593Smuzhiyun	install -m 0644 ${WORKDIR}/rxvt.png ${D}/${datadir}/pixmaps
55*4882a593Smuzhiyun	install -m 0644 ${WORKDIR}/rxvt.desktop ${D}/${datadir}/applications
56*4882a593Smuzhiyun}
57*4882a593Smuzhiyun
58*4882a593SmuzhiyunFILES:${PN} += "${datadir}/applications/rxvt.desktop ${datadir}/pixmaps/rxvt.png"
59