aboutsummaryrefslogtreecommitdiffstats
path: root/main/gtk+3.0/APKBUILD
blob: f86a2acb90cb8c74a4c2b2369e9a92f1d91fb3ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gtk+3.0
pkgver=3.14.5
pkgrel=0
pkgdesc="The GTK+ Toolkit (v3)"
url="http://www.gtk.org/"
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.post-deinstall"
triggers="$pkgname.trigger=/usr/share/icons/*"
arch="all"
license="LGPL"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
depends="shared-mime-info"

replaces="gtk+"
replaces_dev="gtk+-dev"
replaces_doc="gtk+-doc"

# depend on gtk+2.0 for update-icon-cache
depends="gtk+2.0"

depends_dev="
	at-spi2-atk-dev
	atk-dev
	cairo-dev
	fontconfig-dev
	gdk-pixbuf-dev
	glib-dev
	intltool
	libx11-dev
	libxcomposite-dev
	libxcursor-dev
	libxdamage-dev
	libxext-dev
	libxfixes-dev
	libxi-dev
	libxinerama-dev
	libxrandr-dev
	pango-dev
	"
makedepends="pkgconfig
	$depends_dev
	cups-dev
	expat-dev
	gettext-dev
	gnutls-dev
	gobject-introspection-dev
	libice-dev
	libiconv-dev
	tiff-dev
	zlib-dev"
source="http://ftp.gnome.org/pub/gnome/sources/gtk+/${pkgver%.*}/gtk+-$pkgver.tar.xz"


_builddir="$srcdir"/gtk+-$pkgver

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--enable-xkb \
		--enable-xinerama \
		--enable-xrandr \
		--enable-xfixes \
		--enable-xcomposite \
		--enable-xdamage \
		--enable-x11-backend \
		|| return 1
	# the configure script checks if isnan is a function. In uclibc
	# isnan is there, but as a macro
	# https://bugzilla.gnome.org/show_bug.cgi?id=676087
	echo "#define HAVE_ISNAN 1" >> config.h
	echo "#define HAVE_ISINF 1" >> config.h

	# https://bugzilla.gnome.org/show_bug.cgi?id=655517
	sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool || return 1

	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1

	# use gtk+2.0's for now
	rm "$pkgdir"/usr/bin/gtk-update-icon-cache
	find "$pkgdir" -name *.la -delete
}

md5sums="c6b72b1cec82061167759b9e6cec9bab  gtk+-3.14.5.tar.xz"
sha256sums="ba70f5ccde6646c6d8aa5a6398794b7bcf23fc45af22580a215d258f392dbbe2  gtk+-3.14.5.tar.xz"
sha512sums="4da1d6ff49cfdc412cc1ae90d0f1034e9ac0cf9b8f83a3eff03357b3b1676277baedd60c364159dca988535ac7a7a9af007f1ede271042eb88fd3b497f73e0cc  gtk+-3.14.5.tar.xz"