Makefile 2.5 KB

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