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.

74 lines
2.0 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=fcgi
  7. PKG_VERSION:=2.4.1
  8. PKG_RELEASE:=1
  9. PKG_SOURCE:=$(PKG_NAME)2-$(PKG_VERSION).tar.gz
  10. PKG_SOURCE_URL:=https://codeload.github.com/FastCGI-Archives/fcgi2/tar.gz/$(PKG_VERSION)?
  11. PKG_HASH:=53cc36624bb92a88e3d5a3d696282e1af24b280c3f275604123d9c6d407173e2
  12. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)2-$(PKG_VERSION)
  13. PKG_MAINTAINER:=Jacob Siverskog <jacob@teenageengineering.com>
  14. PKG_LICENSE:=MIT
  15. PKG_LICENSE_FILES:=LICENSE.TERMS
  16. PKG_FIXUP:=autoreconf
  17. PKG_BUILD_PARALLEL:=1
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/uclibc++.mk
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/fcgi/Default
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. URL:=https://fastcgi-archives.github.io/
  25. endef
  26. define Package/fcgi
  27. $(call Package/fcgi/Default)
  28. MENU:=1
  29. DEPENDS:=+libpthread
  30. TITLE:=Shared library of FastCGI
  31. endef
  32. define Package/fcgixx
  33. $(call Package/fcgi/Default)
  34. DEPENDS:=fcgi $(CXX_DEPENDS)
  35. TITLE:=Shared library of FastCGI++
  36. endef
  37. define Package/fcgi/description
  38. FastCGI is a language independent, scalable, open extension to
  39. CGI that provides high performance without the limitations of
  40. server specific APIs.
  41. endef
  42. define Build/InstallDev
  43. $(INSTALL_DIR) $(1)/usr/include
  44. $(CP) $(PKG_INSTALL_DIR)/usr/include/fastcgi.h $(1)/usr/include/
  45. $(CP) $(PKG_INSTALL_DIR)/usr/include/fcgi{app,_config,misc,o,os,_stdio}.h $(1)/usr/include/
  46. $(INSTALL_DIR) $(1)/usr/lib
  47. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi{,++}.{a,so*} $(1)/usr/lib/
  48. endef
  49. define Package/fcgi/install
  50. $(INSTALL_DIR) $(1)/usr/bin
  51. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cgi-fcgi $(1)/usr/bin/
  52. $(INSTALL_DIR) $(1)/usr/lib
  53. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi.so.* $(1)/usr/lib/
  54. endef
  55. define Package/fcgixx/install
  56. $(INSTALL_DIR) $(1)/usr/lib
  57. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi++.so.* $(1)/usr/lib/
  58. endef
  59. $(eval $(call BuildPackage,fcgi))
  60. $(eval $(call BuildPackage,fcgixx))