No Description

Makefile 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. #
  2. # Copyright (C) 2006-2014 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.26.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.26/
  14. PKG_MD5SUM:=723a03b822d4cc47abc4019685970a3e
  15. PKG_BUILD_DEPENDS:=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.26/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.26/vapi/* \
  46. $(1)/usr/share/vala-0.26/vapi
  47. $(INSTALL_DATA) \
  48. $(PKG_INSTALL_DIR)/usr/lib/libvala-0.26.{so*,la} \
  49. $(1)/usr/lib
  50. $(INSTALL_BIN) \
  51. $(PKG_INSTALL_DIR)/usr/bin/{vala,vala-0.26,valac,valac-0.26,vapicheck,vapicheck-0.26,vapigen,vapigen-0.26,vala-gen-introspect,vala-gen-introspect-0.26} \
  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))