Makefile 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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 $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= glib
  5. PKG_VERSION:= 2.48.2
  6. PKG_RELEASE:= 1
  7. PKG_EXTRAVER:= 2.48
  8. PKG_HASH:= f25e751589cb1a58826eac24fbd4186cda4518af772806b666a3f91f66e6d3f4
  9. PKG_DESCR:= low-level core library that forms the basis of gtk+
  10. PKG_SECTION:= libs/misc
  11. PKG_DEPENDS:= libpcre zlib
  12. PKG_BUILDDEP:= glib-host libffi zlib libelf dbus pcre
  13. HOST_BUILDDEP:= libiconv-host libffi-host python2-host gettext-host util-linux-host
  14. PKG_NEEDS:= threads intl iconv
  15. PKG_URL:= http://www.gtk.org/
  16. PKG_SITES:= http://ftp.gnome.org/pub/GNOME/sources/glib/$(PKG_EXTRAVER)/
  17. PKG_OPTS:= dev noscripts
  18. include $(ADK_TOPDIR)/mk/host.mk
  19. include $(ADK_TOPDIR)/mk/package.mk
  20. $(eval $(call HOST_template,GLIB,glib,$(PKG_VERSION)-$(PKG_RELEASE)))
  21. $(eval $(call PKG_template,GLIB,glib,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS)))
  22. ifeq ($(ADK_PACKAGE_LIBICONV),y)
  23. CONFIGURE_ARGS+= --with-libiconv=yes
  24. else
  25. CONFIGURE_ARGS+= --with-libiconv=no
  26. endif
  27. CONFIGURE_ARGS+= --disable-mem-pools \
  28. --disable-rebuilds \
  29. --disable-fam \
  30. --disable-dtrace \
  31. --disable-compile-warnings \
  32. --with-pcre=system \
  33. --with-threads=posix
  34. CONFIGURE_ENV+= glib_cv_long_long_format=ll \
  35. glib_cv_stack_grows=no \
  36. glib_cv_have_strlcpy=no \
  37. glib_cv_uscore=no \
  38. ac_cv_func_posix_getpwuid_r=yes \
  39. ac_cv_func_posix_getgrgid_r=yes
  40. HOST_STYLE:= auto
  41. ifneq ($(OS_FOR_BUILD),CYGWIN)
  42. HOST_CFLAGS+= -fPIC
  43. endif
  44. HOST_CONFIGURE_ARGS+= --disable-fam \
  45. --disable-dtrace \
  46. --enable-static \
  47. --with-pcre=bundled \
  48. --with-libiconv=yes \
  49. --disable-shared \
  50. --disable-compile-warnings
  51. hostpost-install:
  52. $(CP) $(STAGING_HOST_DIR)/usr/lib/glib-2.0/include/glibconfig.h \
  53. $(STAGING_HOST_DIR)/usr/include/glib-2.0/
  54. glib-install:
  55. $(INSTALL_DIR) $(IDIR_GLIB)/usr/lib
  56. $(CP) $(WRKINST)/usr/lib/libgio*.so* $(IDIR_GLIB)/usr/lib
  57. $(CP) $(WRKINST)/usr/lib/libglib*.so* $(IDIR_GLIB)/usr/lib
  58. $(CP) $(WRKINST)/usr/lib/libgobject*.so* $(IDIR_GLIB)/usr/lib
  59. $(CP) $(WRKINST)/usr/lib/libgmodule*.so* $(IDIR_GLIB)/usr/lib
  60. $(CP) $(WRKINST)/usr/lib/libgthread*.so* $(IDIR_GLIB)/usr/lib
  61. # workaround for dev subpackage
  62. $(INSTALL_DIR) $(IDIR_GLIB_DEV)/usr/include
  63. $(INSTALL_DIR) $(IDIR_GLIB_DEV)/usr/lib/glib-2.0/include
  64. $(CP) $(WRKINST)/usr/lib/glib-2.0/include/glibconfig.h \
  65. $(IDIR_GLIB_DEV)/usr/lib/glib-2.0/include
  66. $(INSTALL_DIR) $(IDIR_GLIB_DEV)/usr/bin
  67. $(INSTALL_BIN) $(WRKINST)/usr/bin/glib-genmarshal \
  68. $(IDIR_GLIB_DEV)/usr/bin
  69. include $(ADK_TOPDIR)/mk/host-bottom.mk
  70. include $(ADK_TOPDIR)/mk/pkg-bottom.mk