You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

109 lines
2.4 KiB

  1. #
  2. # Copyright (C) 2007-2016 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=glib2
  9. PKG_VERSION:=2.49.7
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=glib-$(PKG_VERSION).tar.xz
  12. PKG_BUILD_DIR:=$(BUILD_DIR)/glib-$(PKG_VERSION)
  13. PKG_SOURCE_URL:=@GNOME/glib/2.49
  14. PKG_MD5SUM:=397ead3fcf325cb921d54e2c9e7dfd7a
  15. PKG_BUILD_PARALLEL:=1
  16. HOST_BUILD_PARALLEL:=1
  17. PKG_BUILD_DEPENDS:=glib2/host libpthread zlib libintl libffi
  18. HOST_BUILD_DEPENDS:=gettext-full/host libiconv/host libffi/host
  19. PKG_INSTALL:=1
  20. PKG_USE_MIPS16:=0
  21. PKG_FIXUP:=autoreconf
  22. HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/glib-$(PKG_VERSION)
  23. include $(INCLUDE_DIR)/host-build.mk
  24. include $(INCLUDE_DIR)/package.mk
  25. include $(INCLUDE_DIR)/nls.mk
  26. define Package/glib2
  27. SECTION:=libs
  28. CATEGORY:=Libraries
  29. DEPENDS:=$(ICONV_DEPENDS) $(INTL_DEPENDS) +zlib +libpthread +libffi +libattr
  30. TITLE:=glib 2.0
  31. MAINTAINER:=Peter Wagner <tripolar@gmx.at>
  32. URL:=http://www.gtk.org/
  33. endef
  34. define Package/glib2/description
  35. The GLib library of C routines
  36. endef
  37. HOST_CONFIGURE_ARGS += \
  38. --disable-selinux \
  39. --with-libiconv=gnu \
  40. --with-pcre=internal
  41. CONFIGURE_ARGS += \
  42. --enable-shared \
  43. --enable-static \
  44. --enable-debug=no \
  45. --disable-selinux \
  46. --disable-fam \
  47. --with-libiconv=gnu \
  48. --with-pcre=internal
  49. CONFIGURE_VARS += \
  50. glib_cv_stack_grows=no \
  51. glib_cv_uscore=no \
  52. ac_cv_path_GLIB_GENMARSHAL=$(STAGING_DIR)/host/bin/glib-genmarshal \
  53. ac_cv_func_mmap_fixed_mapped=yes \
  54. ac_cv_func_posix_getpwuid_r=yes \
  55. ac_cv_func_posix_getgrgid_r=yes
  56. define Build/InstallDev
  57. $(INSTALL_DIR) $(1)/usr/include
  58. $(CP) \
  59. $(PKG_INSTALL_DIR)/usr/include/glib-2.0 \
  60. $(1)/usr/include/
  61. $(CP) \
  62. $(PKG_INSTALL_DIR)/usr/lib/glib-2.0/include/*.h \
  63. $(1)/usr/include/glib-2.0/
  64. $(CP) \
  65. $(PKG_INSTALL_DIR)/usr/include/gio-unix-2.0 \
  66. $(1)/usr/include/
  67. $(INSTALL_DIR) $(1)/usr/lib
  68. $(CP) \
  69. $(PKG_INSTALL_DIR)/usr/lib/glib-2.0 \
  70. $(1)/usr/lib/
  71. $(CP) \
  72. $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} \
  73. $(1)/usr/lib/
  74. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  75. $(INSTALL_DATA) \
  76. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
  77. $(1)/usr/lib/pkgconfig
  78. $(INSTALL_DIR) $(2)/share/aclocal/
  79. $(INSTALL_DATA) \
  80. $(PKG_INSTALL_DIR)/usr/share/aclocal/*.m4 \
  81. $(2)/share/aclocal/
  82. endef
  83. define Package/glib2/install
  84. $(INSTALL_DIR) $(1)/usr/lib
  85. $(CP) \
  86. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  87. $(1)/usr/lib/
  88. endef
  89. $(eval $(call HostBuild))
  90. $(eval $(call BuildPackage,glib2))