rxvt-unicode.inc 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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."
  8. HOMEPAGE = "https://rxvt.org/"
  9. DEPENDS = "virtual/libx11 libxt libxft gdk-pixbuf libxmu libptytty ncurses-native"
  10. SRC_URI = "http://dist.schmorp.de/rxvt-unicode/Attic/rxvt-unicode-${PV}.tar.bz2 \
  11. file://xwc.patch \
  12. file://rxvt.desktop \
  13. file://rxvt.png"
  14. inherit autotools pkgconfig update-alternatives
  15. PROVIDES = "virtual/x-terminal-emulator"
  16. ALTERNATIVE:${PN} = "x-terminal-emulator"
  17. ALTERNATIVE_TARGET[x-terminal-emulator] = "${bindir}/rxvt"
  18. CFLAGS:append = " -fpermissive"
  19. EXTRA_OECONF = "--enable-xim \
  20. --with-term=rxvt --enable-keepscrolling \
  21. --enable-xft --with-name=rxvt --enable-frills \
  22. --enable-swapscreen --enable-transparency \
  23. --with-codesets=eu --enable-pointer-blank \
  24. --enable-text-blink --enable-rxvt-scroll \
  25. --enable-combining --disable-perl \
  26. --with-x=${STAGING_DIR_HOST}${prefix} \
  27. ac_cv_path_TIC=:"
  28. PACKAGECONFIG ??= ""
  29. PACKAGECONFIG[startup] = "--enable-startup-notification,--disable-startup-notification,startup-notification,"
  30. do_configure:prepend () {
  31. if [ ! -e ${S}/acinclude.m4 ]; then
  32. cp ${S}/aclocal.m4 ${S}/acinclude.m4
  33. fi
  34. }
  35. do_compile:prepend () {
  36. echo '#define UTMP_FILE "${localstatedir}/run/utmp"' >> config.h
  37. echo '#define WTMP_FILE "${localstatedir}/log/wtmp"' >> config.h
  38. echo '#define LASTLOG_FILE "${localstatedir}/log/lastlog"' >> config.h
  39. echo '#define HAVE_XLOCALE 1' >> config.h
  40. }
  41. do_install:append () {
  42. install -d ${D}/${datadir}
  43. install -d ${D}/${datadir}/applications
  44. install -d ${D}/${datadir}/pixmaps/
  45. install -m 0644 ${WORKDIR}/rxvt.png ${D}/${datadir}/pixmaps
  46. install -m 0644 ${WORKDIR}/rxvt.desktop ${D}/${datadir}/applications
  47. ${STAGING_BINDIR_NATIVE}/tic -x ${S}/doc/etc/rxvt-unicode.terminfo -o ${D}${datadir}/terminfo || \
  48. ${STAGING_BINDIR_NATIVE}/tic ${S}/doc/etc/rxvt-unicode.terminfo -o ${D}${datadir}/terminfo
  49. }
  50. FILES:${PN} += "${datadir}/applications/rxvt.desktop ${datadir}/pixmaps/rxvt.png ${datadir}/terminfo"