2
0

Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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_HASH:=dec79694da1319acd2238ce95df57f3680fea2482096e483323fddf3d818d8be
  14. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  15. PKG_LICENSE:=LGPL-2.1
  16. PKG_LICENSE:=Makefile.am
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/argp-standalone
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. TITLE:=Hierarchial argument parsing broken out from glibc
  22. URL:=http://www.lysator.liu.se/~nisse/misc/
  23. endef
  24. define Package/argp-standalone/description
  25. GNU libc hierarchial argument parsing library broken out from glibc.
  26. endef
  27. MAKE_FLAGS += \
  28. CFLAGS="$(TARGET_CFLAGS) $(FPIC)"
  29. define Build/InstallDev
  30. $(INSTALL_DIR) $(1)/usr/include
  31. $(CP) $(PKG_BUILD_DIR)/argp.h \
  32. $(1)/usr/include/
  33. $(INSTALL_DIR) $(1)/usr/lib
  34. $(CP) $(PKG_BUILD_DIR)/libargp.a \
  35. $(1)/usr/lib/
  36. endef
  37. $(eval $(call BuildPackage,argp-standalone))