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.

104 lines
2.3 KiB

  1. #
  2. # Copyright (C) 2007-2015 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.43.4
  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.43
  14. PKG_MD5SUM:=2f28879252c660a65aa3139ec499776b
  15. PKG_BUILD_DEPENDS:=glib2/host libpthread zlib libintl libffi
  16. HOST_BUILD_DEPENDS:=libintl/host libiconv/host libffi/host
  17. PKG_INSTALL:=1
  18. PKG_USE_MIPS16:=0
  19. PKG_FIXUP:=autoreconf
  20. HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/glib-$(PKG_VERSION)
  21. include $(INCLUDE_DIR)/host-build.mk
  22. include $(INCLUDE_DIR)/package.mk
  23. include $(INCLUDE_DIR)/nls.mk
  24. define Package/glib2
  25. SECTION:=libs
  26. CATEGORY:=Libraries
  27. DEPENDS:=$(ICONV_DEPENDS) $(INTL_DEPENDS) +zlib +libpthread +libffi +libattr
  28. TITLE:=glib 2.0
  29. MAINTAINER:=Peter Wagner <tripolar@gmx.at>
  30. URL:=http://www.gtk.org/
  31. endef
  32. define Package/glib2/description
  33. The GLib library of C routines
  34. endef
  35. HOST_CONFIGURE_ARGS += \
  36. --disable-selinux
  37. CONFIGURE_ARGS += \
  38. --enable-shared \
  39. --enable-static \
  40. --enable-debug=no \
  41. --disable-selinux \
  42. --disable-fam \
  43. $(if $(ICONV_FULL),--with-libiconv=gnu)
  44. CONFIGURE_VARS += \
  45. glib_cv_stack_grows=no \
  46. glib_cv_uscore=no \
  47. ac_cv_path_GLIB_GENMARSHAL=$(STAGING_DIR_HOST)/bin/glib-genmarshal \
  48. ac_cv_func_mmap_fixed_mapped=yes \
  49. ac_cv_func_posix_getpwuid_r=yes \
  50. ac_cv_func_posix_getgrgid_r=yes
  51. define Build/InstallDev
  52. $(INSTALL_DIR) $(1)/usr/include
  53. $(CP) \
  54. $(PKG_INSTALL_DIR)/usr/include/glib-2.0 \
  55. $(1)/usr/include/
  56. $(CP) \
  57. $(PKG_INSTALL_DIR)/usr/lib/glib-2.0/include/*.h \
  58. $(1)/usr/include/glib-2.0/
  59. $(CP) \
  60. $(PKG_INSTALL_DIR)/usr/include/gio-unix-2.0 \
  61. $(1)/usr/include/
  62. $(INSTALL_DIR) $(1)/usr/lib
  63. $(CP) \
  64. $(PKG_INSTALL_DIR)/usr/lib/glib-2.0 \
  65. $(1)/usr/lib/
  66. $(CP) \
  67. $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} \
  68. $(1)/usr/lib/
  69. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  70. $(INSTALL_DATA) \
  71. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
  72. $(1)/usr/lib/pkgconfig
  73. $(INSTALL_DIR) $(2)/share/aclocal/
  74. $(INSTALL_DATA) \
  75. $(PKG_INSTALL_DIR)/usr/share/aclocal/*.m4 \
  76. $(2)/share/aclocal/
  77. endef
  78. define Package/glib2/install
  79. $(INSTALL_DIR) $(1)/usr/lib
  80. $(CP) \
  81. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  82. $(1)/usr/lib/
  83. endef
  84. $(eval $(call HostBuild))
  85. $(eval $(call BuildPackage,glib2))