summaryrefslogtreecommitdiff
path: root/twin
diff options
context:
space:
mode:
authorchris@(none) <chris@(none)>2004-07-27 13:10:11 +0000
committerchris@(none) <chris@(none)>2004-07-27 13:10:11 +0000
commit5893d95f03207d71138353004ab541198c3bb831 (patch)
treee1fb0f36d924e474c81961189595a1145c0a8796 /twin
parenta7a0ae7a1bac05558c3d89c32eb23de3b7cf6857 (diff)
Merge bk://openembedded@openembedded.bkbits.net/packages
into chrislaptop.(none):/home/chris/oe/oe/packages 2004/07/27 14:08:52+01:00 (none)!chris Fix and move twin away from non-working BKrev: 41065433Nj-e3RwctaZeB8jkOdFkbA
Diffstat (limited to 'twin')
-rw-r--r--twin/twin-0.4.6/cross_compile.patch117
-rw-r--r--twin/twin_0.4.6.oe30
-rw-r--r--twin/twutils_0.2.oe10
3 files changed, 157 insertions, 0 deletions
diff --git a/twin/twin-0.4.6/cross_compile.patch b/twin/twin-0.4.6/cross_compile.patch
new file mode 100644
index 0000000000..44b675bc18
--- /dev/null
+++ b/twin/twin-0.4.6/cross_compile.patch
@@ -0,0 +1,117 @@
+diff -urNd ../twin-0.4.6-r0/twin-0.4.6/configure.in twin-0.4.6/configure.in
+--- ../twin-0.4.6-r0/twin-0.4.6/configure.in 2003-03-27 08:29:47.000000000 +0000
++++ twin-0.4.6/configure.in 2004-07-24 13:37:10.000000000 +0100
+@@ -378,7 +378,16 @@
+ select strdup strerror strspn strstr scandir alphasort uname \
+ vprintf vsprintf vsnprintf wait3 wait4 getpt grantpt unlockpt ptsname)
+
+-AC_CHECK_FILE(/dev/ptmx)
++AC_SEARCH_LIBS(openpty,util,
++ [
++ AC_DEFINE(HAVE_OPENPTY,1,[define if you have openpty function])
++ no_dev_ptmx=yes
++ ])
++AC_CHECK_FUNCS([_getpty])
++if test -z "$no_dev_ptmx" ; then
++ AC_CHECK_FILE(/dev/ptmx)
++fi
++
+ AC_CHECK_FUNC(crypt,,AC_CHECK_LIB(crypt,crypt))
+ AC_CHECK_FUNC(dlopen,,AC_CHECK_LIB(dl,dlopen))
+ AC_CHECK_LIB(ltdl,lt_dlopen)
+diff -urNd ../twin-0.4.6-r0/twin-0.4.6/Makefile.in twin-0.4.6/Makefile.in
+--- ../twin-0.4.6-r0/twin-0.4.6/Makefile.in 2003-03-27 08:29:47.000000000 +0000
++++ twin-0.4.6/Makefile.in 2004-07-24 13:23:48.000000000 +0100
+@@ -71,33 +71,33 @@
+ # to correctly generate include/autoconf.h
+ #
+
+-ADMIN_LIBTOOLS:=admin/ltmain.sh admin/config.guess admin/config.sub
++#ADMIN_LIBTOOLS:=admin/ltmain.sh admin/config.guess admin/config.sub
+
+-$(ADMIN_LIBTOOLS):
+- libtoolize -c
++#$(ADMIN_LIBTOOLS):
++# libtoolize -c
+
+-ADMIN_ACLOCAL:=admin/aclocal.m4
++#ADMIN_ACLOCAL:=admin/aclocal.m4
+
+-DISTCLEAN_EMPTY_FILES:=$(ADMIN_ACLOCAL) $(ADMIN_LIBTOOLS)
++#DISTCLEAN_EMPTY_FILES:=$(ADMIN_ACLOCAL) $(ADMIN_LIBTOOLS)
+
+-$(ADMIN_ACLOCAL):
+- @if [ -f /usr/share/aclocal/libtool.m4 ]; then \
+- echo $(LN) /usr/share/aclocal/libtool.m4 $@ ; \
+- $(LN) /usr/share/aclocal/libtool.m4 $@ ; \
+- else \
+- echo touch $@; \
+- touch $@; \
+- fi
++#$(ADMIN_ACLOCAL):
++# @if [ -f /usr/share/aclocal/libtool.m4 ]; then \
++# echo $(LN) /usr/share/aclocal/libtool.m4 $@ ; \
++# $(LN) /usr/share/aclocal/libtool.m4 $@ ; \
++# else \
++# echo touch $@; \
++# touch $@; \
++# fi
+
+-configure: configure.in $(ADMIN_LIBTOOLS) $(ADMIN_ACLOCAL) include/autoconf.h.in
+- rm -f $@ && autoconf --localdir=admin
++#configure: configure.in $(ADMIN_LIBTOOLS) $(ADMIN_ACLOCAL) include/autoconf.h.in
++# rm -f $@ && autoconf
+
+-include/autoconf.h.in: configure.in
+- rm -f $@ && autoheader
++#include/autoconf.h.in: configure.in
++# rm -f $@ && autoheader
+
+-config.status libtool: configure $(ADMIN_LIBTOOLS)
+- @echo Updating config.status libtool
+- ./configure --cache-file=config.cache --no-create
++#config.status libtool: configure $(ADMIN_LIBTOOLS)
++# @echo Updating config.status libtool
++# ./configure --host --cache-file=config.cache --no-create
+
+ #
+ # was:
+diff -urNd ../twin-0.4.6-r0/twin-0.4.6/makerules twin-0.4.6/makerules
+--- ../twin-0.4.6-r0/twin-0.4.6/makerules 2003-03-27 08:29:48.000000000 +0000
++++ twin-0.4.6/makerules 2004-07-24 13:24:13.000000000 +0100
+@@ -794,7 +794,7 @@
+ endif
+
+ $(TOPDIR)/scripts/Getsizes: $(TOPDIR)/scripts/getsizes.c $(TOPDIR)/include/Tw/datatypes.h $(TOPDIR)/include/autoconf.h
+- $(CC) $(CC_FLAGS) $(CC_FLAGS_script_getsizes.o) $(LD_FLAGS) $< -o $@
++ $(HOSTCC) $(CC_FLAGS) $(CC_FLAGS_script_getsizes.o) $(LD_FLAGS) $< -o $@
+ @echo "PREVIOUS_CONF__LONG_LONG=$(CONF__LONG_LONG)" > $(TOPDIR)/.long_long.conf
+
+ #
+@@ -802,10 +802,10 @@
+ # but this is the best place to force creating it
+ #
+ $(TOPDIR)/scripts/Mkdep: $(TOPDIR)/scripts/mkdep.c $(TOPDIR)/include/autoconf.h $(TOPDIR)/include/Tw/datasizes.h
+- $(CC) $(CC_FLAGS) $(LD_FLAGS) $< -o $@
++ $(HOSTCC) $(CC_FLAGS) $(LD_FLAGS) $< -o $@
+
+ $(TOPDIR)/scripts/Bitmap: $(TOPDIR)/scripts/bitmap.c
+- $(CC) $(CC_FLAGS) $(LD_FLAGS) $< -o $@
++ $(HOSTCC) $(CC_FLAGS) $(LD_FLAGS) $< -o $@
+
+
+ #
+diff -urNd ../twin-0.4.6-r0/twin-0.4.6/scripts/mkdep.c twin-0.4.6/scripts/mkdep.c
+--- ../twin-0.4.6-r0/twin-0.4.6/scripts/mkdep.c 2003-03-27 08:29:48.000000000 +0000
++++ twin-0.4.6/scripts/mkdep.c 2004-07-24 13:24:21.000000000 +0100
+@@ -172,8 +172,8 @@
+ putchar('\n');
+ }
+
+-static char str_path[3][512];
+-static int len_path[3];
++static char str_path[20][512];
++static int len_path[20];
+ static int max_path = 0;
+ static int limit_path = sizeof(len_path)/sizeof(len_path[0]);
+
diff --git a/twin/twin_0.4.6.oe b/twin/twin_0.4.6.oe
new file mode 100644
index 0000000000..4ca0f80acc
--- /dev/null
+++ b/twin/twin_0.4.6.oe
@@ -0,0 +1,30 @@
+DESCRIPTION = "Twin is a text-mode windowing environment: it draws and manages text windows on a text-mode display, like X11 does for graphical windows. It has a built-in window manager and terminal emulator, and can be used as server for remote clients in the same style as X11. It can display on Linux console, on X11 and inside itself."
+MAINTAINER = "Chris Lord <cwiiis@blueyonder.co.uk>"
+DEPENDS = "coreutils-native"
+
+SRC_URI = "http://linuz.sns.it/~max/twin/twin-0.4.6.tar.gz \
+ file://cross_compile.patch;patch=1"
+
+EXTRA_OECONF = " --disable-tt-hw-x11 --disable-hw-x11 --disable-tt-hw-gtk"
+
+inherit autotools
+
+do_compile () {
+ oe_runmake 'HOSTCC=${BUILD_CC}'
+}
+
+Tw_headers = "Tw1.h Twautoconf.h Twavl.h Tw_defs.h Twerrno.h Tw.h Tw++.h Twkeys.h Twstat_defs.h Twstat.h Twtypes.h"
+
+
+do_stage () {
+# oe_libinstall -so -C libs/libTw libTw ${STAGING_LIBDIR}
+
+ install -m 0644 ${S}/libs/libTw/libTw.la ${STAGING_LIBDIR}
+ install -m 0644 ${S}/libs/libTw/libTw.so ${STAGING_LIBDIR}
+ install -m 0644 ${S}/libs/libTw/libTw.so.3 ${STAGING_LIBDIR}
+ install -m 0644 ${S}/libs/libTw/libTw.so.3.0.9 ${STAGING_LIBDIR}
+ install -d ${STAGING_INCDIR}/Tw
+ for i in ${Tw_headers}; do
+ install -m 0644 ${S}/include/Tw/$i ${STAGING_INCDIR}/Tw
+ done
+}
diff --git a/twin/twutils_0.2.oe b/twin/twutils_0.2.oe
new file mode 100644
index 0000000000..d9a7b25475
--- /dev/null
+++ b/twin/twutils_0.2.oe
@@ -0,0 +1,10 @@
+DESCRIPTION = "Utilities for twin. Currently contains 'twkalc', a calculator derived from kcalc."
+MAINTAINER = "Chris Lord <cwiiis@blueyonder.co.uk>"
+DEPENDS = "twin"
+
+SRC_URI = "http://linuz.sns.it/~max/twin/twutils-0.2.tar.gz"
+
+#EXTRA_OECONF = ""
+
+inherit autotools
+