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.

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