Makefile 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. PKG_NAME:= gtk+
  5. PKG_VERSION:= 2.24.6
  6. PKG_EXTRAVER:= 2.24
  7. PKG_RELEASE:= 1
  8. PKG_MD5SUM:= 4d7efde4ac24dbaa720bc0744eee8235
  9. PKG_DESCR:= GTK+ library
  10. PKG_SECTION:= libs
  11. PKG_DEPENDS:= glib
  12. PKG_BUILDDEP:= cairo atk pango libXext renderproto libXrender
  13. PKG_BUILDDEP+= gdk-pixbuf libXcomposite libXdamage
  14. PKG_URL:= http://www.gtk.org/
  15. PKG_SITES:= http://ftp.gnome.org/pub/gnome/sources/gtk+/$(PKG_EXTRAVER)/
  16. PKG_NEED_CXX:= 1
  17. PKG_SUBPKGS:= LIBGTK LIBGTK_DEV
  18. PKGSC_LIBGTK_DEV:= devel
  19. PKGSD_LIBGTK_DEV:= GTK+ headers
  20. DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.xz
  21. ifeq ($(ADK_STATIC),y)
  22. PKG_OPTS:= libonly
  23. endif
  24. include ${TOPDIR}/mk/package.mk
  25. $(eval $(call PKG_template,LIBGTK,libgtk,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  26. $(eval $(call PKG_template,LIBGTK_DEV,libgtk-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBGTK_DEV},${PKGSC_LIBGTK_DEV},${PKG_OPTS}))
  27. CONFIGURE_ARGS+= --disable-gtk-doc-html \
  28. --disable-modules \
  29. --disable-xinerama \
  30. --without-xinput \
  31. --disable-gtk-doc \
  32. --disable-cups \
  33. --disable-papi \
  34. --disable-introspection
  35. CONFIGURE_ENV+= gio_can_sniff=no \
  36. ac_cv_path_GTK_UPDATE_ICON_CACHE=""
  37. libgtk-install:
  38. ${INSTALL_DIR} ${IDIR_LIBGTK}/usr/lib
  39. ${CP} ${WRKINST}/usr/lib/libgdk-x11*so* ${IDIR_LIBGTK}/usr/lib
  40. ${CP} ${WRKINST}/usr/lib/libgtk-x11*so* ${IDIR_LIBGTK}/usr/lib
  41. ${CP} ${WRKINST}/usr/lib/libgailutil*so* ${IDIR_LIBGTK}/usr/lib
  42. libgtk-dev-install:
  43. ${INSTALL_DIR} ${IDIR_LIBGTK_DEV}/usr/include
  44. ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBGTK_DEV}/usr/include
  45. ${INSTALL_DIR} ${IDIR_LIBGTK_DEV}/usr/lib/gtk-2.0/include
  46. ${CP} ${WRKINST}/usr/lib/gtk-2.0/include/* \
  47. ${IDIR_LIBGTK_DEV}/usr/lib/gtk-2.0/include
  48. ${INSTALL_DIR} ${IDIR_LIBGTK_DEV}/usr/lib/pkgconfig
  49. ${CP} ${WRKINST}/usr/lib/pkgconfig/*.pc ${IDIR_LIBGTK_DEV}/usr/lib/pkgconfig
  50. include ${TOPDIR}/mk/pkg-bottom.mk