summaryrefslogtreecommitdiffstats
path: root/meta/recipes-sato/rxvt-unicode
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-09-01 18:09:11 (GMT)
committerRichard Purdie <rpurdie@linux.intel.com>2010-09-01 18:09:57 (GMT)
commitd62ee7eaf2ba025c3f64b2d4e10dc7cec4637612 (patch)
treef36fe3008f36ff75cbdd31b630f8f13f1f205ebb /meta/recipes-sato/rxvt-unicode
parentcaab7fc509bf27706ff3248689f6afd04225cfda (diff)
downloadpoky-d62ee7eaf2ba025c3f64b2d4e10dc7cec4637612.tar.gz
packages: Separate out most of the remaining packages into recipes
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-sato/rxvt-unicode')
-rw-r--r--meta/recipes-sato/rxvt-unicode/files/makefile.patch20
-rw-r--r--meta/recipes-sato/rxvt-unicode/files/rxvt.desktop11
-rw-r--r--meta/recipes-sato/rxvt-unicode/files/rxvt.pngbin0 -> 2847 bytes
-rw-r--r--meta/recipes-sato/rxvt-unicode/files/signedchar.patch11
-rw-r--r--meta/recipes-sato/rxvt-unicode/files/xwc.patch28
-rw-r--r--meta/recipes-sato/rxvt-unicode/rxvt-unicode-5.6/xwc.patch24
-rw-r--r--meta/recipes-sato/rxvt-unicode/rxvt-unicode_5.6.bb72
7 files changed, 166 insertions, 0 deletions
diff --git a/meta/recipes-sato/rxvt-unicode/files/makefile.patch b/meta/recipes-sato/rxvt-unicode/files/makefile.patch
new file mode 100644
index 0000000..86f82ee
--- /dev/null
+++ b/meta/recipes-sato/rxvt-unicode/files/makefile.patch
@@ -0,0 +1,20 @@
1--- ../rxvt-unicode-cvs-r0/rxvt-unicode/Makefile.in 2004-08-12 22:32:40 +01:00
2+++ rxvt-unicode/Makefile.in 2004-12-24 03:09:00 +00:00
3@@ -9,7 +9,7 @@
4 first_rule: all
5 dummy:
6
7-subdirs = src doc src/test
8+subdirs = src src/test
9 allsubdirs = W11 $(subdirs)
10
11 DIST = INSTALL README.configure configure Makefile Makefile.in ChangeLog
12@@ -24,7 +24,7 @@
13
14 #-------------------------------------------------------------------------
15
16-all allbin alldoc tags:
17+all allbin tags:
18 @if test x@host_os@ = xcygwin; then (cd W11; ${MAKE} $@) || exit 1; fi
19 @for I in ${subdirs}; do (cd $$I; ${MAKE} $@) || exit 1; done
20
diff --git a/meta/recipes-sato/rxvt-unicode/files/rxvt.desktop b/meta/recipes-sato/rxvt-unicode/files/rxvt.desktop
new file mode 100644
index 0000000..a419c98
--- /dev/null
+++ b/meta/recipes-sato/rxvt-unicode/files/rxvt.desktop
@@ -0,0 +1,11 @@
1[Desktop Entry]
2Encoding=UTF-8
3Name=Terminal
4Comment=When all else fails.
5Exec=/usr/bin/rxvt
6Icon=utilities-terminal.png
7Terminal=false
8Type=Application
9Categories=Utility
10StartupNotify=false
11
diff --git a/meta/recipes-sato/rxvt-unicode/files/rxvt.png b/meta/recipes-sato/rxvt-unicode/files/rxvt.png
new file mode 100644
index 0000000..e56fa2e
--- /dev/null
+++ b/meta/recipes-sato/rxvt-unicode/files/rxvt.png
Binary files differ
diff --git a/meta/recipes-sato/rxvt-unicode/files/signedchar.patch b/meta/recipes-sato/rxvt-unicode/files/signedchar.patch
new file mode 100644
index 0000000..6faa175
--- /dev/null
+++ b/meta/recipes-sato/rxvt-unicode/files/signedchar.patch
@@ -0,0 +1,11 @@
1--- ../rxvt-unicode-cvs-r0/rxvt-unicode/src/command.C 2004-12-21 06:43:00 +00:00
2+++ rxvt-unicode/src/command.C 2004-12-24 02:31:36 +00:00
3@@ -1862,7 +1862,7 @@
4 #endif /* NO_SCROLLBAR_REPORT */
5
6 {
7- char upordown = 0;
8+ signed char upordown = 0;
9
10 if (scrollBar.style == R_SB_NEXT)
11 {
diff --git a/meta/recipes-sato/rxvt-unicode/files/xwc.patch b/meta/recipes-sato/rxvt-unicode/files/xwc.patch
new file mode 100644
index 0000000..7cf5965
--- /dev/null
+++ b/meta/recipes-sato/rxvt-unicode/files/xwc.patch
@@ -0,0 +1,28 @@
1
2#
3# Patch managed by http://www.holgerschurig.de/patcher.html
4#
5
6--- rxvt-unicode-4.8/src/screen.C~xwc.c
7+++ rxvt-unicode-4.8/src/screen.C
8@@ -3058,7 +3058,7 @@
9 else
10 rxvt_warn ("can't get primary selection, ignoring.\n");
11
12-#if 0
13+#ifdef HAVE_XWC
14 XTextProperty ct;
15
16 if (XwcTextListToTextProperty (display->display, &selection.text, 1, XStringStyle, &ct) >= 0)
17@@ -3632,9 +3632,11 @@
18 }
19 else
20 #endif
21+#ifdef HAVE_XWC
22 if (XwcTextListToTextProperty (display->display, &cl, 1, (XICCEncodingStyle) style, &ct) >= 0)
23 freect = 1;
24 else
25+#endif
26 {
27 /* if we failed to convert then send it raw */
28 ct.value = (unsigned char *)cl;
diff --git a/meta/recipes-sato/rxvt-unicode/rxvt-unicode-5.6/xwc.patch b/meta/recipes-sato/rxvt-unicode/rxvt-unicode-5.6/xwc.patch
new file mode 100644
index 0000000..eb87b84
--- /dev/null
+++ b/meta/recipes-sato/rxvt-unicode/rxvt-unicode-5.6/xwc.patch
@@ -0,0 +1,24 @@
1diff -urNd ../rxvt-unicode-5.3-r2/rxvt-unicode-5.3/src/screen.C rxvt-unicode-5.3/src/screen.C
2--- ../rxvt-unicode-5.3-r2/rxvt-unicode-5.3/src/screen.C 2005-02-22 21:39:10 +00:00
3+++ rxvt-unicode-5.3/src/screen.C 2005-04-05 22:12:45 +01:00
4@@ -3064,7 +3064,7 @@
5 else
6 rxvt_warn ("can't get primary selection, ignoring.\n");
7
8-#if 0
9+#ifdef HAVE_XWC
10 XTextProperty ct;
11
12 if (XwcTextListToTextProperty (display->display, &selection.text, 1, XStringStyle, &ct) >= 0)
13@@ -3648,9 +3648,11 @@
14 }
15 else
16 #endif
17+#ifdef HAVE_XWC
18 if (XwcTextListToTextProperty (disp, &cl, 1, (XICCEncodingStyle) style, &ct) >= 0)
19 freect = 1;
20 else
21+#endif
22 {
23 /* if we failed to convert then send it raw */
24 ct.value = (unsigned char *)cl;
diff --git a/meta/recipes-sato/rxvt-unicode/rxvt-unicode_5.6.bb b/meta/recipes-sato/rxvt-unicode/rxvt-unicode_5.6.bb
new file mode 100644
index 0000000..d130895
--- /dev/null
+++ b/meta/recipes-sato/rxvt-unicode/rxvt-unicode_5.6.bb
@@ -0,0 +1,72 @@
1SECTION = "x11/utils"
2DEPENDS = "virtual/libx11 libxt libxft"
3DESCRIPTION = "rxvt-unicode is a clone of the well known \
4terminal emulator rxvt, modified to store text in Unicode \
5(either UCS-2 or UCS-4) and to use locale-correct input and \
6output. It also supports mixing multiple fonts at the \
7same time, including Xft fonts."
8LICENSE = "GPL"
9SRC_URI = "http://dist.schmorp.de/rxvt-unicode/Attic/rxvt-unicode-${PV}.tar.bz2 \
10 file://xwc.patch;patch=1 \
11 file://signedchar.patch;patch=1 \
12 file://rxvt.desktop \
13 file://rxvt.png"
14PR = "r5"
15
16inherit autotools update-alternatives
17
18PROVIDES = "virtual/x-terminal-emulator"
19ALTERNATIVE_NAME = "x-terminal-emulator"
20ALTERNATIVE_PATH = "${bindir}/rxvt"
21
22CFLAGS_append = " -fpermissive"
23
24# This is necessary so that the "tic" command executed during the install can
25# link with the correct libary in staging.
26export LD_LIBRARY_PATH = "${STAGING_LIBDIR_NATIVE}"
27
28EXTRA_OECONF = "--enable-menubar --enable-xim \
29 --enable-utmp --enable-wtmp --enable-lastlog \
30 --disable-strings --with-term=rxvt --enable-keepscrolling \
31 --enable-xft --with-name=rxvt --enable-frills \
32 --enable-swapscreen --enable-transparency \
33 --with-codesets=eu \
34 --enable-cursor-blink --enable-pointer-blank \
35 --enable-text-blink --enable-rxvt-scroll \
36 --enable-combining --enable-shared \
37 --enable-xgetdefault \
38 --with-x=${STAGING_DIR_HOST}${prefix}"
39EXTRA_OEMAKE = "'XINC=-I${STAGING_INCDIR}' \
40 'XLIB=-L${STAGING_LIBDIR} -lX11'"
41
42do_configure () {
43 mv autoconf/configure.in . || true
44 rm autoconf/libtool.m4
45 libtoolize --force
46 autotools_do_configure
47 echo '#define RXVT_UTMP_FILE "${localstatedir}/run/utmp"' >> config.h
48 echo '#define RXVT_WTMP_FILE "${localstatedir}/log/wtmp"' >> config.h
49 echo '#define RXVT_LASTLOG_FILE "${localstatedir}/log/lastlog"' >> config.h
50 echo '#define HAVE_XLOCALE 1' >> config.h
51}
52
53do_compile () {
54 if test -e ${S}/${HOST_SYS}-libtool; then
55 LIBTOOL=${S}/${HOST_SYS}-libtool
56 else
57 LIBTOOL=${S}/libtool
58 fi
59 # docs need "yodl" and I have no idea what that is
60 oe_runmake -C src "LIBTOOL=$LIBTOOL"
61}
62
63do_install_append () {
64 install -d ${D}/${datadir}
65 install -d ${D}/${datadir}/applications
66 install -d ${D}/${datadir}/pixmaps/
67
68 install -m 0644 ${WORKDIR}/rxvt.png ${D}/${datadir}/pixmaps
69 install -m 0644 ${WORKDIR}/rxvt.desktop ${D}/${datadir}/applications
70}
71
72FILES_${PN} += "${datadir}/applications/rxvt.desktop ${datadir}/pixmaps/rxvt.png"