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.

122 lines
2.7 KiB

  1. #
  2. # Copyright (C) 2007-2019 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.58.3
  10. PKG_RELEASE:=4
  11. PKG_SOURCE:=glib-$(PKG_VERSION).tar.xz
  12. PKG_BUILD_DIR:=$(BUILD_DIR)/glib-$(PKG_VERSION)
  13. PKG_SOURCE_URL:=@GNOME/glib/2.58
  14. PKG_HASH:=8f43c31767e88a25da72b52a40f3301fefc49a665b56dc10ee7cc9565cbe7481
  15. PKG_BUILD_PARALLEL:=1
  16. HOST_BUILD_PARALLEL:=1
  17. PKG_BUILD_DEPENDS:=gettext
  18. HOST_BUILD_DEPENDS:=gettext-full/host libiconv/host libffi/host
  19. PKG_INSTALL:=1
  20. PKG_USE_MIPS16:=0
  21. PKG_CPE_ID:=cpe:/a:gnome:glib
  22. PKG_FIXUP:=autoreconf
  23. HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/glib-$(PKG_VERSION)
  24. include $(INCLUDE_DIR)/host-build.mk
  25. include $(INCLUDE_DIR)/package.mk
  26. include $(INCLUDE_DIR)/nls.mk
  27. define Package/glib2
  28. SECTION:=libs
  29. CATEGORY:=Libraries
  30. DEPENDS:=$(ICONV_DEPENDS) $(INTL_DEPENDS) +zlib +libpthread +libffi +libattr
  31. TITLE:=glib 2.0
  32. MAINTAINER:=Peter Wagner <tripolar@gmx.at>
  33. URL:=http://www.gtk.org/
  34. endef
  35. define Package/glib2/description
  36. The GLib library of C routines
  37. endef
  38. HOST_CONFIGURE_ARGS += \
  39. --disable-libelf \
  40. --disable-selinux \
  41. --with-libiconv=gnu \
  42. --with-pcre=internal \
  43. --disable-libmount
  44. CONFIGURE_ARGS += \
  45. --enable-shared \
  46. --enable-static \
  47. --disable-debug \
  48. --disable-selinux \
  49. --disable-libmount \
  50. --disable-fam \
  51. --disable-gtk-doc-html \
  52. --disable-man \
  53. --disable-compile-warnings \
  54. --with-libiconv=gnu \
  55. --with-pcre=internal
  56. CONFIGURE_VARS += \
  57. glib_cv_stack_grows=no \
  58. glib_cv_uscore=no \
  59. ac_cv_path_GLIB_GENMARSHAL=$(STAGING_DIR_HOSTPKG)/bin/glib-genmarshal \
  60. ac_cv_func_mmap_fixed_mapped=yes \
  61. ac_cv_func_posix_getpwuid_r=yes \
  62. ac_cv_func_posix_getgrgid_r=yes
  63. define Build/InstallDev
  64. $(INSTALL_DIR) $(1)/usr/bin
  65. $(CP) \
  66. $(PKG_INSTALL_DIR)/usr/bin/* \
  67. $(1)/usr/bin/
  68. $(INSTALL_DIR) $(1)/usr/include
  69. $(CP) \
  70. $(PKG_INSTALL_DIR)/usr/include/glib-2.0 \
  71. $(1)/usr/include/
  72. $(CP) \
  73. $(PKG_INSTALL_DIR)/usr/lib/glib-2.0/include/*.h \
  74. $(1)/usr/include/glib-2.0/
  75. $(CP) \
  76. $(PKG_INSTALL_DIR)/usr/include/gio-unix-2.0 \
  77. $(1)/usr/include/
  78. $(INSTALL_DIR) $(1)/usr/lib
  79. $(CP) \
  80. $(PKG_INSTALL_DIR)/usr/lib/glib-2.0 \
  81. $(1)/usr/lib/
  82. $(CP) \
  83. $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} \
  84. $(1)/usr/lib/
  85. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  86. $(INSTALL_DATA) \
  87. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
  88. $(1)/usr/lib/pkgconfig
  89. $(INSTALL_DIR) $(2)/share/aclocal/
  90. $(INSTALL_DATA) \
  91. $(PKG_INSTALL_DIR)/usr/share/aclocal/*.m4 \
  92. $(2)/share/aclocal/
  93. endef
  94. define Package/glib2/install
  95. $(INSTALL_DIR) $(1)/usr/lib
  96. $(CP) \
  97. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  98. $(1)/usr/lib/
  99. endef
  100. $(eval $(call HostBuild))
  101. $(eval $(call BuildPackage,glib2))