From d2a92fe9e0bd4899cb7d6b49242c434b021ac69f Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Thu, 2 Apr 2009 01:08:51 +0200 Subject: [PATCH] add packages: clutter, clutter-gst, clutter-gtk, clutter-cairo, pyclutter --- config/options | 4 +-- packages/other/clutter-cairo/build | 26 ++++++++++++++++++ packages/other/clutter-cairo/install | 9 ++++++ packages/other/clutter-cairo/url | 1 + packages/other/clutter-gst/build | 22 +++++++++++++++ packages/other/clutter-gst/install | 10 +++++++ packages/other/clutter-gst/url | 1 + packages/other/clutter-gtk/build | 26 ++++++++++++++++++ packages/other/clutter-gtk/install | 9 ++++++ packages/other/clutter-gtk/url | 1 + packages/other/clutter/build | 35 ++++++++++++++++++++++++ packages/other/clutter/install | 17 ++++++++++++ packages/other/clutter/url | 1 + packages/other/pyclutter/build | 38 ++++++++++++++++++++++++++ packages/other/pyclutter/install | 30 ++++++++++++++++++++ packages/other/pyclutter/url | 1 + packages/x11/lib/libXcomposite/build | 22 +++++++++++++++ packages/x11/lib/libXcomposite/install | 8 ++++++ packages/x11/lib/libXcomposite/url | 1 + packages/x11/lib/libXi/build | 10 +++---- packages/x11/lib/libXi/install | 8 ++++++ projects/openelec/options | 4 +++ 22 files changed, 276 insertions(+), 8 deletions(-) create mode 100755 packages/other/clutter-cairo/build create mode 100755 packages/other/clutter-cairo/install create mode 100644 packages/other/clutter-cairo/url create mode 100755 packages/other/clutter-gst/build create mode 100755 packages/other/clutter-gst/install create mode 100644 packages/other/clutter-gst/url create mode 100755 packages/other/clutter-gtk/build create mode 100755 packages/other/clutter-gtk/install create mode 100644 packages/other/clutter-gtk/url create mode 100755 packages/other/clutter/build create mode 100755 packages/other/clutter/install create mode 100644 packages/other/clutter/url create mode 100755 packages/other/pyclutter/build create mode 100755 packages/other/pyclutter/install create mode 100644 packages/other/pyclutter/url create mode 100755 packages/x11/lib/libXcomposite/build create mode 100755 packages/x11/lib/libXcomposite/install create mode 100644 packages/x11/lib/libXcomposite/url create mode 100755 packages/x11/lib/libXi/install diff --git a/config/options b/config/options index cc449a0f4a..3360f23d3c 100644 --- a/config/options +++ b/config/options @@ -1,6 +1,6 @@ # Project name -PROJECT=generic -#PROJECT=openelec +#PROJECT=generic +PROJECT=openelec # Target system we want to cross compile for (i386/x86_64/powerpc) TARGET_ARCH=i386 diff --git a/packages/other/clutter-cairo/build b/packages/other/clutter-cairo/build new file mode 100755 index 0000000000..d7c8bac6e8 --- /dev/null +++ b/packages/other/clutter-cairo/build @@ -0,0 +1,26 @@ +#!/bin/sh + +. config/options + +$SCRIPTS/build toolchain +$SCRIPTS/build clutter +$SCRIPTS/build cairo + +cd $BUILD/$1* +./configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr \ + --sysconfdir=/etc \ + --disable-static \ + --enable-shared \ +# --disable-gtk-doc \ +# --disable-examples \ +# --with-imagebackend=gdk-pixbuf \ +# --with-flavour=glx \ +# --with-x + +make + +$STRIP .libs/*.so* + +$MAKEINSTALL diff --git a/packages/other/clutter-cairo/install b/packages/other/clutter-cairo/install new file mode 100755 index 0000000000..05aa1f940d --- /dev/null +++ b/packages/other/clutter-cairo/install @@ -0,0 +1,9 @@ +#!/bin/sh + +. config/options + +$SCRIPTS/install clutter +$SCRIPTS/install cairo + +mkdir -p $INSTALL/usr/lib +cp -PR $BUILD/$1*/.libs/*.so* $INSTALL/usr/lib diff --git a/packages/other/clutter-cairo/url b/packages/other/clutter-cairo/url new file mode 100644 index 0000000000..e97792dd7d --- /dev/null +++ b/packages/other/clutter-cairo/url @@ -0,0 +1 @@ +http://www.clutter-project.org/sources/clutter-cairo/0.8/clutter-cairo-0.8.2.tar.bz2 \ No newline at end of file diff --git a/packages/other/clutter-gst/build b/packages/other/clutter-gst/build new file mode 100755 index 0000000000..a52d9b44c1 --- /dev/null +++ b/packages/other/clutter-gst/build @@ -0,0 +1,22 @@ +#!/bin/sh + +. config/options + +$SCRIPTS/build toolchain +$SCRIPTS/build clutter +$SCRIPTS/build gstreamer +$SCRIPTS/build gst-plugins-base + +cd $BUILD/$1* +./configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr \ + --sysconfdir=/etc \ + --disable-static \ + --enable-shared \ + +make + +$STRIP clutter-gst/.libs/*.so* + +$MAKEINSTALL diff --git a/packages/other/clutter-gst/install b/packages/other/clutter-gst/install new file mode 100755 index 0000000000..166ce01ceb --- /dev/null +++ b/packages/other/clutter-gst/install @@ -0,0 +1,10 @@ +#!/bin/sh + +. config/options + +$SCRIPTS/install clutter +$SCRIPTS/install gstreamer +$SCRIPTS/install gst-plugins-base + +mkdir -p $INSTALL/usr/lib +cp -PR $BUILD/$1*/clutter-gst/.libs/*.so* $INSTALL/usr/lib diff --git a/packages/other/clutter-gst/url b/packages/other/clutter-gst/url new file mode 100644 index 0000000000..feaa6a73c5 --- /dev/null +++ b/packages/other/clutter-gst/url @@ -0,0 +1 @@ +http://www.clutter-project.org/sources/clutter-gst/0.8/clutter-gst-0.8.0.tar.bz2 \ No newline at end of file diff --git a/packages/other/clutter-gtk/build b/packages/other/clutter-gtk/build new file mode 100755 index 0000000000..1ac6c703b5 --- /dev/null +++ b/packages/other/clutter-gtk/build @@ -0,0 +1,26 @@ +#!/bin/sh + +. config/options + +$SCRIPTS/build toolchain +$SCRIPTS/build clutter +$SCRIPTS/build gtk+ + +cd $BUILD/$1* +./configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr \ + --sysconfdir=/etc \ + --disable-static \ + --enable-shared \ +# --disable-gtk-doc \ +# --disable-examples \ +# --with-imagebackend=gdk-pixbuf \ +# --with-flavour=glx \ +# --with-x + +make + +$STRIP clutter-gtk/.libs/*.so* + +$MAKEINSTALL diff --git a/packages/other/clutter-gtk/install b/packages/other/clutter-gtk/install new file mode 100755 index 0000000000..99d9a9937a --- /dev/null +++ b/packages/other/clutter-gtk/install @@ -0,0 +1,9 @@ +#!/bin/sh + +. config/options + +$SCRIPTS/install clutter +$SCRIPTS/install gtk+ + +mkdir -p $INSTALL/usr/lib +cp -PR $BUILD/$1*/clutter-gtk/.libs/*.so* $INSTALL/usr/lib diff --git a/packages/other/clutter-gtk/url b/packages/other/clutter-gtk/url new file mode 100644 index 0000000000..f55d63f1ad --- /dev/null +++ b/packages/other/clutter-gtk/url @@ -0,0 +1 @@ +http://www.clutter-project.org/sources/clutter-gtk/0.8/clutter-gtk-0.8.3.tar.bz2 \ No newline at end of file diff --git a/packages/other/clutter/build b/packages/other/clutter/build new file mode 100755 index 0000000000..255e276f1f --- /dev/null +++ b/packages/other/clutter/build @@ -0,0 +1,35 @@ +#!/bin/sh + +. config/options + +$SCRIPTS/build toolchain +$SCRIPTS/build Mesa +$SCRIPTS/build pango +$SCRIPTS/build cairo +#$SCRIPTS/build gstreamer +#$SCRIPTS/build gst-plugins-base +$SCRIPTS/build libX11 +$SCRIPTS/build libXcomposite +$SCRIPTS/build libXdamage +$SCRIPTS/build libXi +$SCRIPTS/build glib +$SCRIPTS/build gtk+ + +cd $BUILD/$1* +./configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr \ + --sysconfdir=/etc \ + --disable-static \ + --enable-shared \ +# --disable-gtk-doc \ +# --disable-examples \ +# --with-imagebackend=gdk-pixbuf \ +# --with-flavour=glx \ +# --with-x + +make + +$STRIP clutter/.libs/libclutter-glx*.so* + +$MAKEINSTALL diff --git a/packages/other/clutter/install b/packages/other/clutter/install new file mode 100755 index 0000000000..39a2962849 --- /dev/null +++ b/packages/other/clutter/install @@ -0,0 +1,17 @@ +#!/bin/sh + +. config/options + +$SCRIPTS/install Mesa +$SCRIPTS/install pango +$SCRIPTS/install cairo +$SCRIPTS/install libX11 +$SCRIPTS/install libXcomposite +$SCRIPTS/install libXdamage +$SCRIPTS/install libXfixes +$SCRIPTS/install libXi +$SCRIPTS/install glib +$SCRIPTS/install gtk+ + +mkdir -p $INSTALL/usr/lib +cp -PR $BUILD/$1*/clutter/.libs/libclutter-glx*.so* $INSTALL/usr/lib diff --git a/packages/other/clutter/url b/packages/other/clutter/url new file mode 100644 index 0000000000..6ddb80495c --- /dev/null +++ b/packages/other/clutter/url @@ -0,0 +1 @@ +http://www.clutter-project.org/sources/clutter/0.8/clutter-0.8.8.tar.bz2 diff --git a/packages/other/pyclutter/build b/packages/other/pyclutter/build new file mode 100755 index 0000000000..bcae81e880 --- /dev/null +++ b/packages/other/pyclutter/build @@ -0,0 +1,38 @@ +#!/bin/sh + +. config/options + +$SCRIPTS/build toolchain +$SCRIPTS/build Python +$SCRIPTS/build clutter +$SCRIPTS/build clutter-gst +$SCRIPTS/build clutter-gtk +$SCRIPTS/build clutter-cairo + +. config/options.python + +cd $BUILD/$1* + +./configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr \ + --sysconfdir=/etc \ + --disable-static \ + --enable-shared \ + --with-cluttergst=yes \ + --with-cluttergtk=yes \ + --with-cluttercairo=yes \ + +make + +$STRIP clutter/.libs/*.so +$STRIP clutter-cairo/.libs/*.so +$STRIP clutter-gst/.libs/*.so +$STRIP clutter-gtk/.libs/*.so + +$MAKEINSTALL + +$PYTHON -Wi -t $PYTHON_LIBDIR/compileall.py clutter +$PYTHON -Wi -t $PYTHON_LIBDIR/compileall.py clutter-cairo +$PYTHON -Wi -t $PYTHON_LIBDIR/compileall.py clutter-gst +$PYTHON -Wi -t $PYTHON_LIBDIR/compileall.py clutter-gtk diff --git a/packages/other/pyclutter/install b/packages/other/pyclutter/install new file mode 100755 index 0000000000..6350d1204e --- /dev/null +++ b/packages/other/pyclutter/install @@ -0,0 +1,30 @@ +#!/bin/sh + +. config/options + +$SCRIPTS/install Python +$SCRIPTS/install clutter +$SCRIPTS/install clutter-gst +$SCRIPTS/install clutter-gtk +$SCRIPTS/install clutter-cairo + +PYTHON_LIB_DIR=`ls -d $INSTALL/usr/lib/python*` + +mkdir -p $PYTHON_LIB_DIR/site-packages/clutter +cp $BUILD/$1*/clutter/.libs/*.so $PYTHON_LIB_DIR/site-packages/clutter +cp $BUILD/$1*/clutter/*.pyc $PYTHON_LIB_DIR/site-packages/clutter + +mkdir -p $INSTALL/usr/share/pyclutter/1.0/defs +cp $BUILD/$1*/clutter/*.defs $INSTALL/usr/share/pyclutter/1.0/defs + +mkdir -p $PYTHON_LIB_DIR/site-packages/clutter-cairo +cp $BUILD/$1*/clutter-cairo/.libs/*.so $PYTHON_LIB_DIR/site-packages/clutter-cairo +cp $BUILD/$1*/clutter-cairo/*.pyc $PYTHON_LIB_DIR/site-packages/clutter-cairo + +mkdir -p $PYTHON_LIB_DIR/site-packages/clutter-gst +cp $BUILD/$1*/clutter-gst/.libs/*.so $PYTHON_LIB_DIR/site-packages/clutter-gst +cp $BUILD/$1*/clutter-gst/*.pyc $PYTHON_LIB_DIR/site-packages/clutter-gst + +mkdir -p $PYTHON_LIB_DIR/site-packages/clutter-gtk +cp $BUILD/$1*/clutter-gtk/.libs/*.so $PYTHON_LIB_DIR/site-packages/clutter-gtk +cp $BUILD/$1*/clutter-gtk/*.pyc $PYTHON_LIB_DIR/site-packages/clutter-gtk diff --git a/packages/other/pyclutter/url b/packages/other/pyclutter/url new file mode 100644 index 0000000000..ce671c9ae6 --- /dev/null +++ b/packages/other/pyclutter/url @@ -0,0 +1 @@ +http://www.clutter-project.org/sources/pyclutter/0.8/pyclutter-0.8.2.tar.bz2 \ No newline at end of file diff --git a/packages/x11/lib/libXcomposite/build b/packages/x11/lib/libXcomposite/build new file mode 100755 index 0000000000..47ff65aac1 --- /dev/null +++ b/packages/x11/lib/libXcomposite/build @@ -0,0 +1,22 @@ +#!/bin/sh + +. config/options + +$SCRIPTS/build toolchain +$SCRIPTS/build libX11 + +cd $BUILD/$1* +./configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-static \ + --enable-shared \ + --enable-malloc0returnsnull + +$MAKE + +$STRIP src/.libs/libXcomposite.so* + +$MAKEINSTALL diff --git a/packages/x11/lib/libXcomposite/install b/packages/x11/lib/libXcomposite/install new file mode 100755 index 0000000000..488cf03ed5 --- /dev/null +++ b/packages/x11/lib/libXcomposite/install @@ -0,0 +1,8 @@ +#!/bin/sh + +. config/options + +$SCRIPTS/install libX11 + +mkdir -p $INSTALL/usr/lib +cp -PR $BUILD/$1*/src/.libs/libXcomposite.so* $INSTALL/usr/lib diff --git a/packages/x11/lib/libXcomposite/url b/packages/x11/lib/libXcomposite/url new file mode 100644 index 0000000000..9e7b3eb468 --- /dev/null +++ b/packages/x11/lib/libXcomposite/url @@ -0,0 +1 @@ +http://xorg.freedesktop.org/archive/individual/lib/libXcomposite-0.4.0.tar.bz2 \ No newline at end of file diff --git a/packages/x11/lib/libXi/build b/packages/x11/lib/libXi/build index d6513340a6..3e129034fa 100755 --- a/packages/x11/lib/libXi/build +++ b/packages/x11/lib/libXi/build @@ -11,15 +11,13 @@ cd $BUILD/$1* --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ - --enable-static \ - --disable-shared \ + --disable-static \ + --enable-shared \ --with-gnu-ld \ --enable-malloc0returnsnull \ -# --enable-unix-transport \ -# --disable-tcp-transport \ -# --disable-local-transport \ make -#$STRIP .libs/libXau.so* +$STRIP src/.libs/libXi.so* + $MAKEINSTALL diff --git a/packages/x11/lib/libXi/install b/packages/x11/lib/libXi/install new file mode 100755 index 0000000000..d6916c72c8 --- /dev/null +++ b/packages/x11/lib/libXi/install @@ -0,0 +1,8 @@ +#!/bin/sh + +. config/options + +$SCRIPTS/install libX11 + +mkdir -p $INSTALL/usr/lib +cp -PR $BUILD/$1*/src/.libs/libXi.so* $INSTALL/usr/lib diff --git a/projects/openelec/options b/projects/openelec/options index 69a40807f6..621b12bc46 100644 --- a/projects/openelec/options +++ b/projects/openelec/options @@ -2,3 +2,7 @@ # radeonhd/s3/s3virge/savage/sis/tdfx/trident/vesa/vmware) # Space separated list is supported, e.g. XORG_DRIVERS="ati s3" XORG_DRIVERS="openchrome" + +MESA=Mesa-openchrome +LIBDRM=libdrm-newttm +