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.

102 lines
2.3 KiB

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