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.

73 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2006-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:=vala
  9. PKG_VERSION:=0.27.1
  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.27/
  14. PKG_MD5SUM:=27302efb557d4a6bf634eb6444d90be8
  15. PKG_BUILD_DEPENDS:=glib2 glib2/host vala/host
  16. HOST_BUILD_DEPENDS:=glib2/host
  17. include $(INCLUDE_DIR)/host-build.mk
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/nls.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. endef
  29. define Package/vala/description
  30. Vala is a C-sharp like language for the GObject system. This package contains
  31. the Vala-to-C compiler.
  32. endef
  33. define Build/Compile
  34. $(MAKE) -C $(PKG_BUILD_DIR) \
  35. DESTDIR="$(PKG_INSTALL_DIR)" \
  36. all install
  37. endef
  38. define Build/InstallDev
  39. $(INSTALL_DIR) \
  40. $(1)/usr/share/vala-0.28/vapi \
  41. $(1)/usr/lib \
  42. $(1)/usr/share/pkgconfig \
  43. $(1)/usr/bin
  44. $(INSTALL_DATA) \
  45. $(PKG_INSTALL_DIR)/usr/share/vala-0.28/vapi/* \
  46. $(1)/usr/share/vala-0.28/vapi
  47. $(INSTALL_DATA) \
  48. $(PKG_INSTALL_DIR)/usr/lib/libvala-0.28.{so*,la} \
  49. $(1)/usr/lib
  50. $(INSTALL_BIN) \
  51. $(PKG_INSTALL_DIR)/usr/bin/{vala,vala-0.28,valac,valac-0.28,vapicheck,vapicheck-0.28,vapigen,vapigen-0.28,vala-gen-introspect,vala-gen-introspect-0.28} \
  52. $(1)/usr/bin
  53. $(INSTALL_DATA) \
  54. $(PKG_INSTALL_DIR)/usr/share/pkgconfig/*.pc \
  55. $(1)/usr/share/pkgconfig
  56. endef
  57. $(eval $(call HostBuild))
  58. $(eval $(call BuildPackage,vala))