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.

106 lines
2.4 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.44.1
  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.44
  14. PKG_MD5SUM:=83efba4722a9674b97437d1d99af79db
  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. CONFIGURE_ARGS += \
  40. --enable-shared \
  41. --enable-static \
  42. --enable-debug=no \
  43. --disable-selinux \
  44. --disable-fam \
  45. $(if $(ICONV_FULL),--with-libiconv=gnu)
  46. CONFIGURE_VARS += \
  47. glib_cv_stack_grows=no \
  48. glib_cv_uscore=no \
  49. ac_cv_path_GLIB_GENMARSHAL=$(STAGING_DIR_HOST)/bin/glib-genmarshal \
  50. ac_cv_func_mmap_fixed_mapped=yes \
  51. ac_cv_func_posix_getpwuid_r=yes \
  52. ac_cv_func_posix_getgrgid_r=yes
  53. define Build/InstallDev
  54. $(INSTALL_DIR) $(1)/usr/include
  55. $(CP) \
  56. $(PKG_INSTALL_DIR)/usr/include/glib-2.0 \
  57. $(1)/usr/include/
  58. $(CP) \
  59. $(PKG_INSTALL_DIR)/usr/lib/glib-2.0/include/*.h \
  60. $(1)/usr/include/glib-2.0/
  61. $(CP) \
  62. $(PKG_INSTALL_DIR)/usr/include/gio-unix-2.0 \
  63. $(1)/usr/include/
  64. $(INSTALL_DIR) $(1)/usr/lib
  65. $(CP) \
  66. $(PKG_INSTALL_DIR)/usr/lib/glib-2.0 \
  67. $(1)/usr/lib/
  68. $(CP) \
  69. $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} \
  70. $(1)/usr/lib/
  71. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  72. $(INSTALL_DATA) \
  73. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
  74. $(1)/usr/lib/pkgconfig
  75. $(INSTALL_DIR) $(2)/share/aclocal/
  76. $(INSTALL_DATA) \
  77. $(PKG_INSTALL_DIR)/usr/share/aclocal/*.m4 \
  78. $(2)/share/aclocal/
  79. endef
  80. define Package/glib2/install
  81. $(INSTALL_DIR) $(1)/usr/lib
  82. $(CP) \
  83. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  84. $(1)/usr/lib/
  85. endef
  86. $(eval $(call HostBuild))
  87. $(eval $(call BuildPackage,glib2))