Merge openembedded@openembedded.bkbits.net:packages
[vuplus_openembedded] / rxvt-unicode / rxvt-unicode_2.2.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}/include.patch;patch=1"
10
11 inherit autotools 
12
13 #EXTRA_OECONF = "--enable-utmp --enable-wtmp --enable-lastlog \
14 #               --disable-strings --with-term=rxvt --enable-keepscrolling \
15 #               --enable-xft --with-name=rxvt --enable-frills \
16 #               --enable-swapscreen --enable-transparency \
17 #               --with-codesets=eu,jp --enable-menubar \
18 #               --enable-cursor-blink --enable-pointer-blank \
19 #               --enable-text-blink --enable-plain-scroll \
20 #               --with-x=${STAGING_LIBDIR}/.. \
21 #               --enable-combining"
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 configure.in
38         autotools_do_configure
39         echo '#define RXVT_UTMP_FILE "${localstatedir}/run/utmp"' >> config.h
40         echo '#define RXVT_WTMP_FILE "${localstatedir}/log/wtmp"' >> config.h
41         echo '#define RXVT_LASTLOG_FILE "${localstatedir}/log/lastlog"' >> config.h
42         echo '#define HAVE_XLOCALE 1' >> config.h
43 }
44
45 do_compile () {
46         if test -e ${S}/${HOST_SYS}-libtool; then
47                 LIBTOOL=${S}/${HOST_SYS}-libtool
48         else
49                 LIBTOOL=${S}/libtool
50         fi
51         oe_runmake "LIBTOOL=$LIBTOOL"
52 }