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.

101 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:=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.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
  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. define Build/Configure
  35. $(call Build/Configure/Default, \
  36. --enable-shared \
  37. --enable-static \
  38. --enable-debug=no \
  39. --disable-selinux \
  40. --disable-fam \
  41. $(if $(ICONV_FULL),--with-libiconv=gnu) \
  42. , \
  43. glib_cv_stack_grows=no \
  44. glib_cv_uscore=no \
  45. ac_cv_path_GLIB_GENMARSHAL=$(STAGING_DIR_HOST)/bin/glib-genmarshal \
  46. ac_cv_func_mmap_fixed_mapped=yes \
  47. ac_cv_func_posix_getpwuid_r=yes \
  48. ac_cv_func_posix_getgrgid_r=yes \
  49. );
  50. endef
  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))