rxvt-unicode.inc 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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 features_check pkgconfig update-alternatives
  15. REQUIRED_DISTRO_FEATURES = "x11"
  16. RPROVIDES:${PN} = "virtual-x-terminal-emulator"
  17. ALTERNATIVE:${PN} = "x-terminal-emulator"
  18. ALTERNATIVE_TARGET[x-terminal-emulator] = "${bindir}/rxvt"
  19. CFLAGS += "-fpermissive"
  20. EXTRA_OECONF = "--enable-xim \
  21. --with-term=rxvt --enable-keepscrolling \
  22. --enable-xft --with-name=rxvt --enable-frills \
  23. --enable-swapscreen --enable-transparency \
  24. --with-codesets=eu --enable-pointer-blank \
  25. --enable-text-blink --enable-rxvt-scroll \
  26. --enable-combining --disable-perl \
  27. --with-x=${STAGING_DIR_HOST}${prefix} \
  28. ac_cv_path_TIC=:"
  29. PACKAGECONFIG ??= ""
  30. PACKAGECONFIG[startup] = "--enable-startup-notification,--disable-startup-notification,startup-notification,"
  31. do_configure:prepend () {
  32. if [ ! -e ${S}/acinclude.m4 ]; then
  33. cp ${S}/aclocal.m4 ${S}/acinclude.m4
  34. fi
  35. }
  36. do_compile:prepend () {
  37. echo '#define UTMP_FILE "${localstatedir}/run/utmp"' >> config.h
  38. echo '#define WTMP_FILE "${localstatedir}/log/wtmp"' >> config.h
  39. echo '#define LASTLOG_FILE "${localstatedir}/log/lastlog"' >> config.h
  40. echo '#define HAVE_XLOCALE 1' >> config.h
  41. }
  42. do_install:append () {
  43. install -d ${D}/${datadir}
  44. install -d ${D}/${datadir}/applications
  45. install -d ${D}/${datadir}/pixmaps/
  46. install -m 0644 ${UNPACKDIR}/rxvt.png ${D}/${datadir}/pixmaps
  47. install -m 0644 ${UNPACKDIR}/rxvt.desktop ${D}/${datadir}/applications
  48. ${STAGING_BINDIR_NATIVE}/tic -x ${S}/doc/etc/rxvt-unicode.terminfo -o ${D}${datadir}/terminfo || \
  49. ${STAGING_BINDIR_NATIVE}/tic ${S}/doc/etc/rxvt-unicode.terminfo -o ${D}${datadir}/terminfo
  50. }
  51. FILES:${PN} += "${datadir}/applications/rxvt.desktop ${datadir}/pixmaps/rxvt.png ${datadir}/terminfo"