Makefile 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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.56.1
  6. PKG_RELEASE:= 1
  7. PKG_EXTRAVER:= 2.56
  8. PKG_HASH:= 40ef3f44f2c651c7a31aedee44259809b6f03d3d20be44545cd7d177221c0b8d
  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 dbus pcre
  13. HOST_BUILDDEP:= pkgconf-host 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. HOST_CPPFLAGS+= -I$(STAGING_HOST_DIR)/usr/include/libmount
  42. ifneq ($(OS_FOR_BUILD),CYGWIN)
  43. HOST_CFLAGS+= -fPIC
  44. endif
  45. HOST_CONFIGURE_ARGS+= --disable-fam \
  46. --disable-dtrace \
  47. --enable-static \
  48. --with-pcre=internal \
  49. --with-libiconv=yes \
  50. --disable-shared \
  51. --disable-compile-warnings
  52. hostpost-install:
  53. $(CP) $(STAGING_HOST_DIR)/usr/lib/glib-2.0/include/glibconfig.h \
  54. $(STAGING_HOST_DIR)/usr/include/glib-2.0/
  55. glib-install:
  56. $(INSTALL_DIR) $(IDIR_GLIB)/usr/lib
  57. $(CP) $(WRKINST)/usr/lib/libgio*.so* $(IDIR_GLIB)/usr/lib
  58. $(CP) $(WRKINST)/usr/lib/libglib*.so* $(IDIR_GLIB)/usr/lib
  59. $(CP) $(WRKINST)/usr/lib/libgobject*.so* $(IDIR_GLIB)/usr/lib
  60. $(CP) $(WRKINST)/usr/lib/libgmodule*.so* $(IDIR_GLIB)/usr/lib
  61. $(CP) $(WRKINST)/usr/lib/libgthread*.so* $(IDIR_GLIB)/usr/lib
  62. # workaround for dev subpackage
  63. $(INSTALL_DIR) $(IDIR_GLIB_DEV)/usr/include
  64. $(INSTALL_DIR) $(IDIR_GLIB_DEV)/usr/lib/glib-2.0/include
  65. $(CP) $(WRKINST)/usr/lib/glib-2.0/include/glibconfig.h \
  66. $(IDIR_GLIB_DEV)/usr/lib/glib-2.0/include
  67. $(INSTALL_DIR) $(IDIR_GLIB_DEV)/usr/bin
  68. $(INSTALL_BIN) $(WRKINST)/usr/bin/glib-genmarshal \
  69. $(IDIR_GLIB_DEV)/usr/bin
  70. include $(ADK_TOPDIR)/mk/host-bottom.mk
  71. include $(ADK_TOPDIR)/mk/pkg-bottom.mk