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.

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