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.0
  6. PKG_RELEASE:= 1
  7. PKG_EXTRAVER:= 2.48
  8. PKG_HASH:= 744be6931ca914c68af98dc38ff6b0cf8381d65e335060faddfbf04c17147c34
  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 gettext-tiny zlib libelf dbus pcre
  13. HOST_BUILDDEP:= libffi-host gettext-tiny-host python2-host
  14. PKG_NEEDS:= threads
  15. PKG_URL:= http://www.gtk.org/
  16. PKG_SITES:= http://gensho.acc.umu.se/pub/gnome/sources/glib/$(PKG_EXTRAVER)/
  17. PKG_NOPARALLEL:= 1
  18. PKG_OPTS:= dev noscripts
  19. include $(ADK_TOPDIR)/mk/host.mk
  20. include $(ADK_TOPDIR)/mk/package.mk
  21. $(eval $(call HOST_template,GLIB,glib,$(PKG_VERSION)-$(PKG_RELEASE)))
  22. $(eval $(call PKG_template,GLIB,glib,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS)))
  23. AUTOTOOL_STYLE:= autoreconf
  24. CONFIGURE_ARGS+= --disable-mem-pools \
  25. --disable-rebuilds \
  26. --disable-fam \
  27. --disable-dtrace \
  28. --with-pcre=system \
  29. --with-threads=posix
  30. CONFIGURE_ENV+= glib_cv_long_long_format=ll \
  31. glib_cv_stack_grows=no \
  32. glib_cv_have_strlcpy=no \
  33. glib_cv_uscore=no \
  34. ac_cv_func_posix_getpwuid_r=yes \
  35. ac_cv_func_posix_getgrgid_r=yes
  36. HOST_STYLE:= auto
  37. ifneq ($(OS_FOR_BUILD),CYGWIN)
  38. HOST_CFLAGS+= -fPIC
  39. endif
  40. ifneq ($(OS_FOR_BUILD),Darwin)
  41. HOST_CONFIGURE_ARGS+= --with-libiconv=no
  42. endif
  43. HOST_CONFIGURE_ARGS+= --disable-fam \
  44. --disable-carbon \
  45. --disable-cocoa \
  46. --disable-dtrace \
  47. --enable-static \
  48. --with-pcre=bundled \
  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