abc23ecbc19ef3d73f82a2ce88be857c70281b5a
[vuplus_openembedded] / rxvt-unicode / rxvt-unicode_1.9.oe
1 DEPENDS = "virtual/libc x11 xft"
2 DESCRIPTION = "rxvt-unicode is a clone of the well known \
3 terminal emulator rxvt, modified to store text in Unicode \
4 (either UCS-2 or UCS-4) and to use locale-correct input and \
5 output. It also supports mixing multiple fonts at the \
6 same time, including Xft fonts."
7
8 SRC_URI = "${SOURCEFORGE_MIRROR}/rxvt-unicode/rxvt-unicode-${PV}.tar.bz2 \
9            file://${FILESDIR}/xim.patch;patch=1 \
10            file://${FILESDIR}/include.patch;patch=1"
11
12 inherit autotools 
13
14 EXTRA_OECONF = "--disable-menubar \
15                 --enable-ttygid \
16                 --with-term=rxvt \ 
17                 --enable-transparency \ 
18                 --disable-xim \
19                 --with-x=${STAGING_LIBDIR}/.. \
20                 --enable-shared \
21                 --disable-static \
22                 --enable-xft"
23 EXTRA_OEMAKE = "'XINC=-I${STAGING_INCDIR}' \
24                 'XLIB=-L${STAGING_LIBDIR} -lX11'"
25 #CFLAGS_append = " -I${S}/W11"
26 #CPPFLAGS_append = "-I${S}/W11"
27
28 do_configure () {
29         if test -e ${STAGING_BINDIR}/${HOST_SYS}-libtool; then
30                 STAGING_DIR=${STAGING_DIR} \
31                 ${HOST_SYS}-libtoolize -c -f
32         fi
33         ./reconf
34         oe_runconf
35         cat >>config.h <<EOF
36 #define RXVT_UTMP_FILE "/var/run/utmp"
37 /* #undef RXVT_UTMPX_FILE */
38 #define RXVT_WTMP_FILE "/var/log/wtmp"
39 /* #undef RXVT_WTMPX_FILE */
40 #define RXVT_LASTLOG_FILE "/var/log/lastlog"
41 /* #undef RXVT_LASTLOGX_FILE */
42 #define HAVE_XLOCALE 1
43 EOF
44 }
45
46 do_compile () {
47         if test -e ${S}/${HOST_SYS}-libtool; then
48                 LIBTOOL=${S}/${HOST_SYS}-libtool
49         else
50                 LIBTOOL=${S}/libtool
51         fi
52         oe_runmake "LIBTOOL=$LIBTOOL"
53 }