summaryrefslogtreecommitdiff
path: root/rxvt-unicode/rxvt-unicode_1.9.oe
blob: 07ed9636c605a670b1990ce34ba773c3596d385c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
DEPENDS = "virtual/libc x11 xft"
DESCRIPTION = "rxvt-unicode is a clone of the well known \
terminal emulator rxvt, modified to store text in Unicode \
(either UCS-2 or UCS-4) and to use locale-correct input and \
output. It also supports mixing multiple fonts at the \
same time, including Xft fonts."

SRC_URI = "${SOURCEFORGE_MIRROR}/rxvt-unicode/rxvt-unicode-${PV}.tar.bz2 \
	   file://${FILESDIR}/xim.patch;patch=1 \
	   file://${FILESDIR}/include.patch;patch=1"

inherit autotools libtool

EXTRA_OECONF = "--disable-menubar \
		--enable-ttygid \
		--with-term=rxvt \ 
		--enable-transparency \ 
		--disable-xim \
		--with-x=${STAGING_LIBDIR}/.. \
		--enable-shared \
		--disable-static \
		--enable-xft"
EXTRA_OEMAKE = "'XINC=-I${STAGING_INCDIR}' \
		'XLIB=-L${STAGING_LIBDIR} -lX11'"
#CFLAGS_append = " -I${S}/W11"
#CPPFLAGS_append = "-I${S}/W11"

do_configure () {
	if test -e ${STAGING_BINDIR}/${HOST_SYS}-libtool; then
		STAGING_DIR=${STAGING_DIR} \
		${HOST_SYS}-libtoolize -c -f
	fi
	./reconf
	oe_runconf
	cat >>config.h <<EOF
#define RXVT_UTMP_FILE "/var/run/utmp"
/* #undef RXVT_UTMPX_FILE */
#define RXVT_WTMP_FILE "/var/log/wtmp"
/* #undef RXVT_WTMPX_FILE */
#define RXVT_LASTLOG_FILE "/var/log/lastlog"
/* #undef RXVT_LASTLOGX_FILE */
#define HAVE_XLOCALE 1
EOF
}

do_compile () {
	if test -e ${S}/${HOST_SYS}-libtool; then
		LIBTOOL=${S}/${HOST_SYS}-libtool
	else
		LIBTOOL=${S}/libtool
	fi
	oe_runmake "LIBTOOL=$LIBTOOL"
}