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.

47 lines
1.1 KiB

  1. #
  2. # Copyright (C) 2007-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:=argp-standalone
  9. PKG_VERSION:=1.3
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://www.lysator.liu.se/~nisse/misc/
  13. PKG_MD5SUM:=720704bac078d067111b32444e24ba69
  14. PKG_LICENSE:=LGPL-2.1
  15. PKG_LICENSE:=Makefile.am
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/argp-standalone
  18. SECTION:=libs
  19. CATEGORY:=Libraries
  20. TITLE:=Hierarchial argument parsing broken out from glibc
  21. URL:=http://www.lysator.liu.se/~nisse/misc/
  22. endef
  23. define Package/argp-standalone/description
  24. GNU libc hierarchial argument parsing library broken out from glibc.
  25. endef
  26. MAKE_FLAGS += \
  27. CFLAGS="$(TARGET_CFLAGS) $(FPIC)"
  28. define Build/InstallDev
  29. $(INSTALL_DIR) $(1)/usr/include
  30. $(CP) $(PKG_BUILD_DIR)/argp.h \
  31. $(1)/usr/include/
  32. $(INSTALL_DIR) $(1)/usr/lib
  33. $(CP) $(PKG_BUILD_DIR)/libargp.a \
  34. $(1)/usr/lib/
  35. endef
  36. $(eval $(call BuildPackage,argp-standalone))