Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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:=2
  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. PKG_BUILD_FLAGS:=no-lto
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/host-build.mk
  20. define Package/argp-standalone
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=Hierarchial argument parsing broken out from glibc
  24. URL:=http://www.lysator.liu.se/~nisse/misc/
  25. endef
  26. define Package/argp-standalone/description
  27. GNU libc hierarchial argument parsing library broken out from glibc.
  28. endef
  29. MAKE_FLAGS += \
  30. CFLAGS="$(TARGET_CFLAGS) $(FPIC) -std=gnu89"
  31. HOST_MAKE_FLAGS += \
  32. CFLAGS="$(HOST_CFLAGS) $(FPIC) -std=gnu89"
  33. define Build/InstallDev
  34. $(INSTALL_DIR) $(1)/usr/include
  35. $(CP) $(PKG_BUILD_DIR)/argp.h \
  36. $(1)/usr/include/
  37. $(INSTALL_DIR) $(1)/usr/lib
  38. $(CP) $(PKG_BUILD_DIR)/libargp.a \
  39. $(1)/usr/lib/
  40. endef
  41. define Host/Install
  42. $(INSTALL_DIR) $(1)/include
  43. $(CP) $(HOST_BUILD_DIR)/argp.h \
  44. $(1)/include/
  45. $(INSTALL_DIR) $(1)/lib
  46. $(CP) $(HOST_BUILD_DIR)/libargp.a \
  47. $(1)/lib/
  48. endef
  49. $(eval $(call BuildPackage,argp-standalone))
  50. $(eval $(call HostBuild))