1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
10 PKG_HASH
:= 0d15cec3b6d55c60eac205b1f3ba81a1ed4eadd9d0f8e7c508bc7065d0c4ca50
11 PKG_DESCR
:= multi-platform toolkit for creating graphical user interfaces
12 PKG_SECTION
:= libs
/misc
13 PKG_DEPENDS
:= glib cairo
14 PKG_BUILDDEP
:= glib cairo atk pango libXext renderproto libXrender
15 PKG_BUILDDEP
+= gdk-pixbuf libXcomposite libXdamage libX11
17 PKG_URL
:= http
://www.gtk.org
/
18 PKG_SITES
:= http
://ftp.gnome.org
/pub
/gnome
/sources
/gtk
+/$(PKG_EXTRAVER
)/
22 DISTFILES
:= gtk
+-$(PKG_VERSION
).
tar.xz
23 WRKDIST
= $(WRKDIR
)/gtk
+-$(PKG_VERSION
)
25 PKG_CFLINE_LIBGTK2
:= select ADK_PACKAGE_CAIRO_WITH_PDF@
26 PKG_CFLINE_LIBGTK2
+= select ADK_PACKAGE_CAIRO_WITH_PS@
27 PKG_CFLINE_LIBGTK2
+= select ADK_PACKAGE_CAIRO_WITH_SVG@
29 include ${ADK_TOPDIR}/mk
/package.mk
31 $(eval
$(call PKG_template
,LIBGTK2
,libgtk2
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
34 CONFIGURE_ARGS
+= --disable-gtk-doc-html \
41 --disable-introspection
42 CONFIGURE_ENV
+= gio_can_sniff
=no \
43 ac_cv_path_GTK_UPDATE_ICON_CACHE
=""
46 ${INSTALL_DIR} ${IDIR_LIBGTK2}/usr
/lib
47 ${CP} ${WRKINST}/usr
/lib
/libgdk-x11
*so
* ${IDIR_LIBGTK2}/usr
/lib
48 ${CP} ${WRKINST}/usr
/lib
/libgtk-x11
*so
* ${IDIR_LIBGTK2}/usr
/lib
49 ${CP} ${WRKINST}/usr
/lib
/libgailutil
*so
* ${IDIR_LIBGTK2}/usr
/lib
50 # workaround dev subpackage
51 ${INSTALL_DIR} ${IDIR_LIBGTK2_DEV}/usr
/lib
/gtk-2.0
/include
52 ${CP} ${WRKINST}/usr
/lib
/gtk-2.0
/include/* \
53 ${IDIR_LIBGTK2_DEV}/usr
/lib
/gtk-2.0
/include
55 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk