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.

55 lines
1.4 KiB

  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:=libantlr3c
  9. PKG_VERSION:=3.2
  10. PKG_RELEASE:=1
  11. PKG_HASH:=2ccfb8a8bdd3d6c1d60742ff3a5a954af6d5a8d7f8901c87229fc6fa540ac99a
  12. PKG_SOURCE_URL:=http://www.antlr3.org/download/C
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  14. PKG_INSTALL:=1
  15. PKG_MAINTAINER:=Espen Jürgensen <espenjurgensen+openwrt@gmail.com>
  16. PKG_LICENSE:=BSD-2-Clause
  17. PKG_LICENSE_FILES:=COPYING
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/libantlr3c
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=libantlr3c
  23. URL:=http://www.antlr3.org/
  24. endef
  25. define Package/libantlr3c/description
  26. ANother Tool for Language Recognition, is a language tool that provides a framework for constructing recognizers,
  27. interpreters, compilers, and translators from grammatical descriptions containing actions in a variety of target languages.
  28. endef
  29. TARGET_CFLAGS += $(FPIC)
  30. CONFIGURE_ARGS += \
  31. --enable-shared \
  32. --enable-static
  33. define Build/InstallDev
  34. $(INSTALL_DIR) $(1)/usr/include
  35. $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
  36. $(INSTALL_DIR) $(1)/usr/lib
  37. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libantlr3c.{a,so} $(1)/usr/lib/
  38. endef
  39. define Package/libantlr3c/install
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libantlr3c.so $(1)/usr/lib/
  42. endef
  43. $(eval $(call BuildPackage,libantlr3c))