1ed055eceddc4932bac7fe515f9b994fba846258
[vuplus_openembedded] / rxvt-unicode / rxvt-unicode_1.9.oe
1 DEPENDS = "virtual/libc x11 xft"
2 RDEPENDS = "libc6 x11 xft"
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
9 SRC_URI = "${SOURCEFORGE_MIRROR}/rxvt-unicode/rxvt-unicode-${PV}.tar.bz2 \
10            file://${FILESDIR}/xim.patch;patch=1 \
11            file://${FILESDIR}/include.patch;patch=1"
12
13 inherit autotools libtool
14
15 EXTRA_OECONF = "--disable-menubar \
16                 --enable-ttygid \
17                 --with-term=rxvt \ 
18                 --enable-transparency \ 
19                 --disable-xim \
20                 --with-x=${STAGING_LIBDIR}/.. \
21                 --enable-shared \
22                 --disable-static \
23                 --enable-xft"
24 EXTRA_OEMAKE = "'XINC=-I${STAGING_INCDIR}' \
25                 'XLIB=-L${STAGING_LIBDIR} -lX11'"
26 #CFLAGS_append = " -I${S}/W11"
27 #CPPFLAGS_append = "-I${S}/W11"
28
29 do_configure () {
30         if test -e ${STAGING_BINDIR}/${HOST_SYS}-libtool; then
31                 STAGING_DIR=${STAGING_DIR} \
32                 ${HOST_SYS}-libtoolize -c -f
33         fi
34         ./reconf
35         oe_runconf
36         cat >>config.h <<EOF
37 #define RXVT_UTMP_FILE "/var/run/utmp"
38 /* #undef RXVT_UTMPX_FILE */
39 #define RXVT_WTMP_FILE "/var/log/wtmp"
40 /* #undef RXVT_WTMPX_FILE */
41 #define RXVT_LASTLOG_FILE "/var/log/lastlog"
42 /* #undef RXVT_LASTLOGX_FILE */
43 #define HAVE_XLOCALE 1
44 EOF
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         oe_runmake "LIBTOOL=$LIBTOOL"
54 }