diff options
author | Ozan Türkyılmaz <ozan.turkyilmaz@gmail.com> | 2022-04-22 21:54:20 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-04-24 01:47:21 +0700 |
commit | 1478cec36d889e1dc89d9127c4871d056ff08bf8 (patch) | |
tree | 8e4c9ede85ad2c90a857d644422a88afe690bf48 | |
parent | b483e62a763d9b2d3571285c769bd344c1785866 (diff) | |
download | slackbuilds-1478cec36d889e1dc89d9127c4871d056ff08bf8.tar.gz |
libraries/clutter-gtk: Added (GTK+ Integration library for Clutter).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | libraries/clutter-gtk/README | 10 | ||||
-rw-r--r-- | libraries/clutter-gtk/clutter-gtk.SlackBuild | 114 | ||||
-rw-r--r-- | libraries/clutter-gtk/clutter-gtk.info | 10 | ||||
-rw-r--r-- | libraries/clutter-gtk/slack-desc | 19 |
4 files changed, 153 insertions, 0 deletions
diff --git a/libraries/clutter-gtk/README b/libraries/clutter-gtk/README new file mode 100644 index 0000000000..fffc9d1af2 --- /dev/null +++ b/libraries/clutter-gtk/README @@ -0,0 +1,10 @@ +Clutter-GTK package is a library providing facilities to integrate +Clutter into GTK+ applications and vice versa. + +Clutter-GTK provides a GTK+ widget, GtkClutterEmbed, for embedding +a Clutter stage into any GtkContainer; and GtkClutterActor, a Clutter +actor for embedding any GtkWidget inside a Clutter stage. + +Below variables can be used to configure the build: + GTKDOC=yes : Use gtk-doc to build documentation + INTROSPECTION=yes : Enable introspection for this build diff --git a/libraries/clutter-gtk/clutter-gtk.SlackBuild b/libraries/clutter-gtk/clutter-gtk.SlackBuild new file mode 100644 index 0000000000..300868831c --- /dev/null +++ b/libraries/clutter-gtk/clutter-gtk.SlackBuild @@ -0,0 +1,114 @@ +#!/bin/bash + +# Slackware build script for clutter-gtk + +# Copyright 2022 Ozan Türkyılmaz +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=clutter-gtk +VERSION=${VERSION:-1.8.4} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +GTKDOC=${GTKDOC:-no} +INTROSPECTION=${INTROSPECTION:-no} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.xz +cd $PRGNAM-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --disable-static \ + --enable-gtk-doc="$GTKDOC" \ + --enable-introspection="$INTROSPECTION" \ + --build=$ARCH-slackware-linux + +make +make install DESTDIR=$PKG + +rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + ABOUT-NLS COPYING NEWS README \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/libraries/clutter-gtk/clutter-gtk.info b/libraries/clutter-gtk/clutter-gtk.info new file mode 100644 index 0000000000..a2b07b5255 --- /dev/null +++ b/libraries/clutter-gtk/clutter-gtk.info @@ -0,0 +1,10 @@ +PRGNAM="clutter-gtk" +VERSION="1.8.4" +HOMEPAGE="https://wiki.gnome.org/Projects/Clutter" +DOWNLOAD="https://download.gnome.org/sources/clutter-gtk/1.8/clutter-gtk-1.8.4.tar.xz" +MD5SUM="b363ac9878e2337be887b8ee9e1da00e" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="clutter" +MAINTAINER="Ozan Türkyılmaz" +EMAIL="ozan.turkyilmaz@gmail.com" diff --git a/libraries/clutter-gtk/slack-desc b/libraries/clutter-gtk/slack-desc new file mode 100644 index 0000000000..bdbffff623 --- /dev/null +++ b/libraries/clutter-gtk/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' on +# the right side marks the last column you can put a character in. You must make +# exactly 11 lines for the formatting to be correct. It's also customary to +# leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +clutter-gtk: clutter-gtk (GTK+ Integration library for Clutter) +clutter-gtk: +clutter-gtk: Clutter-GTK package is a library providing facilities to integrate +clutter-gtk: Clutter into GTK+ applications and vice versa. +clutter-gtk: +clutter-gtk: Clutter-GTK provides a GTK+ widget, GtkClutterEmbed, for embedding +clutter-gtk: a Clutter stage into any GtkContainer; and GtkClutterActor, a Clutter +clutter-gtk: actor for embedding any GtkWidget inside a Clutter stage. +clutter-gtk: +clutter-gtk: https://wiki.gnome.org/Projects/Clutter +clutter-gtk: |