Merge oe-devel@oe-devel.bkbits.net:packages
[openembedded.git] / rxvt-unicode / rxvt-unicode_3.7.oe
1 SECTION = "x11/utils"
2 DEPENDS = "x11 xt libxft"
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 PR = "r2"
9
10 SRC_URI = "http://dist.schmorp.de/rxvt-unicode/rxvt-unicode-${PV}.tar.bz2 \
11            file://xwc.patch;patch=1 \
12            file://signedchar.patch;patch=1 \
13            file://gcc34.patch;patch=1"
14
15 inherit autotools update-alternatives
16
17 PROVIDES = "virtual/x-terminal-emulator"
18 ALTERNATIVE_NAME = "x-terminal-emulator"
19 ALTERNATIVE_PATH = "${bindir}/rxvt"
20
21 CFLAGS_append = " -fpermissive"
22
23 EXTRA_OECONF = "--disable-menubar --disable-xim \
24                 --enable-utmp --enable-wtmp --enable-lastlog \
25                 --disable-strings --with-term=rxvt --enable-keepscrolling \
26                 --enable-xft --with-name=rxvt --enable-frills \
27                 --enable-swapscreen --enable-transparency \
28                 --with-codesets=eu,jp \
29                 --enable-cursor-blink --enable-pointer-blank \
30                 --enable-text-blink --enable-plain-scroll \
31                 --enable-combining --enable-shared \
32                 --with-x=${STAGING_LIBDIR}/.."
33 EXTRA_OEMAKE = "'XINC=-I${STAGING_INCDIR}' \
34                 'XLIB=-L${STAGING_LIBDIR} -lX11'"
35
36 do_configure () {
37         mv autoconf/configure.in . || true
38         rm autoconf/libtool.m4
39         libtoolize --force
40         autotools_do_configure
41         echo '#define RXVT_UTMP_FILE "${localstatedir}/run/utmp"' >> config.h
42         echo '#define RXVT_WTMP_FILE "${localstatedir}/log/wtmp"' >> config.h
43         echo '#define RXVT_LASTLOG_FILE "${localstatedir}/log/lastlog"' >> config.h
44         echo '#define HAVE_XLOCALE 1' >> config.h
45 }
46
47 do_compile () {
48         if test -e ${S}/${HOST_SYS}-libtool; then
49                 LIBTOOL=${S}/${HOST_SYS}-libtool
50         else
51                 LIBTOOL=${S}/libtool
52         fi
53         # docs need "yodl" and I have no idea what that is
54         oe_runmake -C src "LIBTOOL=$LIBTOOL"
55 }