summaryrefslogtreecommitdiff
path: root/package/gtk+/Makefile
blob: 7570e84654ea2262e710b8d9004e5f37740f12db (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
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${ADK_TOPDIR}/rules.mk

PKG_NAME:=		gtk+
PKG_VERSION:=		2.24.23
PKG_EXTRAVER:=		2.24
PKG_RELEASE:=		2
PKG_MD5SUM:=		0be39fbed4ca125645175cd6e22f2548
PKG_DESCR:=		multi-platform toolkit for creating graphical user interfaces
PKG_SECTION:=		libs/misc
PKG_DEPENDS:=		glib libstdcxx cairo
PKG_BUILDDEP:=		cairo atk pango libXext renderproto libXrender
PKG_BUILDDEP+=		gdk-pixbuf libXcomposite libXdamage libX11
PKG_URL:=		http://www.gtk.org/
PKG_SITES:=		http://ftp.gnome.org/pub/gnome/sources/gtk+/$(PKG_EXTRAVER)/
PKG_LIBNAME:=		libgtk
PKG_OPTS:=		dev

PKG_CFLINE_GTKX:=	select ADK_PACKAGE_CAIRO_WITH_PDF@
PKG_CFLINE_GTKX+=	select ADK_PACKAGE_CAIRO_WITH_PS@
PKG_CFLINE_GTKX+=	select ADK_PACKAGE_CAIRO_WITH_SVG@

include ${ADK_TOPDIR}/mk/package.mk

$(eval $(call PKG_template,LIBGTK,libgtk,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))

CONFIGURE_ARGS+=	--disable-gtk-doc-html \
			--disable-modules \
			--disable-xinerama \
			--without-xinput \
			--disable-gtk-doc \
			--disable-cups \
			--disable-papi \
			--disable-introspection
CONFIGURE_ENV+=		gio_can_sniff=no \
			ac_cv_path_GTK_UPDATE_ICON_CACHE=""

libgtk-install:
	${INSTALL_DIR} ${IDIR_LIBGTK}/usr/lib
	${CP} ${WRKINST}/usr/lib/libgdk-x11*so* ${IDIR_LIBGTK}/usr/lib
	${CP} ${WRKINST}/usr/lib/libgtk-x11*so* ${IDIR_LIBGTK}/usr/lib
	${CP} ${WRKINST}/usr/lib/libgailutil*so* ${IDIR_LIBGTK}/usr/lib
	# workaround dev subpackage
	${INSTALL_DIR} ${IDIR_LIBGTK_DEV}/usr/lib/gtk-2.0/include
	${CP} ${WRKINST}/usr/lib/gtk-2.0/include/* \
		${IDIR_LIBGTK_DEV}/usr/lib/gtk-2.0/include

include ${ADK_TOPDIR}/mk/pkg-bottom.mk