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.

111 lines
2.5 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.50.2
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=glib-$(PKG_VERSION).tar.xz
  12. PKG_BUILD_DIR:=$(BUILD_DIR)/glib-$(PKG_VERSION)
  13. PKG_SOURCE_URL:=@GNOME/glib/2.50
  14. PKG_MD5SUM:=5eeb2bfaf78a07be59585e8b6e80b1d6
  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. --enable-libmount=no
  42. CONFIGURE_ARGS += \
  43. --enable-shared \
  44. --enable-static \
  45. --enable-debug=no \
  46. --disable-selinux \
  47. --enable-libmount=no \
  48. --disable-fam \
  49. --with-libiconv=gnu \
  50. --with-pcre=internal
  51. CONFIGURE_VARS += \
  52. glib_cv_stack_grows=no \
  53. glib_cv_uscore=no \
  54. ac_cv_path_GLIB_GENMARSHAL=$(STAGING_DIR_HOSTPKG)/bin/glib-genmarshal \
  55. ac_cv_func_mmap_fixed_mapped=yes \
  56. ac_cv_func_posix_getpwuid_r=yes \
  57. ac_cv_func_posix_getgrgid_r=yes
  58. define Build/InstallDev
  59. $(INSTALL_DIR) $(1)/usr/include
  60. $(CP) \
  61. $(PKG_INSTALL_DIR)/usr/include/glib-2.0 \
  62. $(1)/usr/include/
  63. $(CP) \
  64. $(PKG_INSTALL_DIR)/usr/lib/glib-2.0/include/*.h \
  65. $(1)/usr/include/glib-2.0/
  66. $(CP) \
  67. $(PKG_INSTALL_DIR)/usr/include/gio-unix-2.0 \
  68. $(1)/usr/include/
  69. $(INSTALL_DIR) $(1)/usr/lib
  70. $(CP) \
  71. $(PKG_INSTALL_DIR)/usr/lib/glib-2.0 \
  72. $(1)/usr/lib/
  73. $(CP) \
  74. $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} \
  75. $(1)/usr/lib/
  76. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  77. $(INSTALL_DATA) \
  78. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
  79. $(1)/usr/lib/pkgconfig
  80. $(INSTALL_DIR) $(2)/share/aclocal/
  81. $(INSTALL_DATA) \
  82. $(PKG_INSTALL_DIR)/usr/share/aclocal/*.m4 \
  83. $(2)/share/aclocal/
  84. endef
  85. define Package/glib2/install
  86. $(INSTALL_DIR) $(1)/usr/lib
  87. $(CP) \
  88. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  89. $(1)/usr/lib/
  90. endef
  91. $(eval $(call HostBuild))
  92. $(eval $(call BuildPackage,glib2))