summaryrefslogtreecommitdiff
path: root/multilib/lib32-gtk
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /multilib/lib32-gtk
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'multilib/lib32-gtk')
-rw-r--r--multilib/lib32-gtk/PKGBUILD42
-rw-r--r--multilib/lib32-gtk/aclocal-fixes.patch11
2 files changed, 53 insertions, 0 deletions
diff --git a/multilib/lib32-gtk/PKGBUILD b/multilib/lib32-gtk/PKGBUILD
new file mode 100644
index 000000000..bc1f236a4
--- /dev/null
+++ b/multilib/lib32-gtk/PKGBUILD
@@ -0,0 +1,42 @@
+# $Id: PKGBUILD 29612 2010-10-17 13:00:45Z pschmitz $
+
+_pkgbasename=gtk
+pkgname=lib32-$_pkgbasename
+pkgver=1.2.10
+pkgrel=11
+pkgdesc="The GTK+ toolkit (32-bit)"
+arch=('x86_64')
+url="http://www.gtk.org/"
+license=('LGPL')
+depends=('lib32-libxi' 'lib32-glib' "${_pkgbasename}")
+makedepends=('gcc-multilib' 'lib32-libxt')
+options=('!libtool')
+source=("ftp://ftp.gtk.org/pub/gtk/v1.2/gtk+-${pkgver}.tar.gz"
+ 'aclocal-fixes.patch')
+md5sums=('4d5cb2fc7fb7830e4af9747a36bfce20'
+ 'c59d4906602d99a7468f7334b6fc3b4e')
+
+build() {
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+ cd ${srcdir}/gtk+-${pkgver}
+ patch -p0 -i ${srcdir}/aclocal-fixes.patch
+
+ ./configure --prefix=/usr \
+ --libdir=/usr/lib32 \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --host=x86_64-unknown-linux-gnu \
+ --target=x86_64-unknown-linux-gnu \
+ --with-xinput=xfree
+ make
+}
+
+package() {
+ cd ${srcdir}/gtk+-${pkgver}
+ make DESTDIR=${pkgdir} install
+ rm -rf "${pkgdir}/"{usr/{share,include,bin},etc}
+}
diff --git a/multilib/lib32-gtk/aclocal-fixes.patch b/multilib/lib32-gtk/aclocal-fixes.patch
new file mode 100644
index 000000000..dd2ffbd44
--- /dev/null
+++ b/multilib/lib32-gtk/aclocal-fixes.patch
@@ -0,0 +1,11 @@
+--- gtk.m4.orig 2006-03-05 13:18:09.000000000 +0000
++++ gtk.m4 2006-03-05 13:18:20.000000000 +0000
+@@ -4,7 +4,7 @@
+ dnl AM_PATH_GTK([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
+ dnl Test for GTK, and define GTK_CFLAGS and GTK_LIBS
+ dnl
+-AC_DEFUN(AM_PATH_GTK,
++AC_DEFUN([AM_PATH_GTK],
+ [dnl
+ dnl Get the cflags and libraries from the gtk-config script
+ dnl