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.

93 lines
2.2 KiB

  1. #
  2. # Copyright (C) 2006-2016 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:=vala
  9. PKG_VERSION:=0.34.2
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=LGPL-2.1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  13. PKG_SOURCE_URL:=@GNOME/vala/0.34/
  14. PKG_HASH:=765e9c2b429a66db93247940f8588319b43f35c173d057bcae5717a97d765c41
  15. PKG_BUILD_DEPENDS:=glib2 glib2/host vala/host
  16. HOST_BUILD_DEPENDS:=glib2/host
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/nls.mk
  19. include $(INCLUDE_DIR)/host-build.mk
  20. TARGET_LDFLAGS+=\
  21. -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
  22. define Package/vala
  23. SECTION:=lang
  24. CATEGORY:=Languages
  25. TITLE:=C-sharp like language for the GObject system
  26. URL:=https://wiki.gnome.org/Projects/Vala
  27. MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
  28. DEPENDS:=+glib2 +libpthread
  29. endef
  30. define Package/vala/description
  31. Vala is a C-sharp like language for the GObject system. This package contains
  32. the Vala-to-C compiler.
  33. endef
  34. define Build/Compile
  35. $(MAKE) -C $(PKG_BUILD_DIR) \
  36. DESTDIR="$(PKG_INSTALL_DIR)" \
  37. all install
  38. endef
  39. define Build/InstallDev
  40. $(INSTALL_DIR) \
  41. $(1)/usr/share/vala-0.34/vapi \
  42. $(1)/usr/lib \
  43. $(1)/usr/lib/pkgconfig
  44. $(INSTALL_DATA) \
  45. $(PKG_INSTALL_DIR)/usr/share/vala-0.34/vapi/* \
  46. $(1)/usr/share/vala-0.34/vapi
  47. $(INSTALL_DATA) \
  48. $(PKG_INSTALL_DIR)/usr/lib/libvala-0.34.{so*,la} \
  49. $(1)/usr/lib
  50. $(INSTALL_DATA) \
  51. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
  52. $(1)/usr/lib/pkgconfig
  53. endef
  54. define Package/vala/install
  55. $(INSTALL_DIR) \
  56. $(1)/usr/share/vala-0.34/vapi \
  57. $(1)/usr/lib \
  58. $(1)/usr/lib/pkgconfig \
  59. $(1)/usr/bin
  60. $(INSTALL_DATA) \
  61. $(PKG_INSTALL_DIR)/usr/share/vala-0.34/vapi/* \
  62. $(1)/usr/share/vala-0.34/vapi
  63. $(INSTALL_DATA) \
  64. $(PKG_INSTALL_DIR)/usr/lib/libvala-0.34.{so*,la} \
  65. $(1)/usr/lib
  66. $(INSTALL_BIN) \
  67. $(PKG_INSTALL_DIR)/usr/bin/{vala,vala-0.34,valac,valac-0.34,vapicheck,vapicheck-0.34,vapigen,vapigen-0.34,vala-gen-introspect,vala-gen-introspect-0.34} \
  68. $(1)/usr/bin
  69. $(INSTALL_DATA) \
  70. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
  71. $(1)/usr/lib/pkgconfig
  72. endef
  73. $(eval $(call HostBuild))
  74. $(eval $(call BuildPackage,vala))