Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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_MD5SUM:=674646e1d1bf5c6015435480cead725a
  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))