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.

77 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.2
  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:=1fe83501edfc3a7ec96bb1e69db3fd5ea1730135bd73ab152186fd0b437013bc
  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. TARGET_CXXFLAGS += -fno-rtti -flto
  43. TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
  44. define Build/InstallDev
  45. $(INSTALL_DIR) $(1)/usr/include
  46. $(CP) $(PKG_INSTALL_DIR)/usr/include/fastcgi.h $(1)/usr/include/
  47. $(CP) $(PKG_INSTALL_DIR)/usr/include/fcgi{app,_config,misc,o,os,_stdio}.h $(1)/usr/include/
  48. $(INSTALL_DIR) $(1)/usr/lib
  49. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi{,++}.{a,so*} $(1)/usr/lib/
  50. endef
  51. define Package/fcgi/install
  52. $(INSTALL_DIR) $(1)/usr/bin
  53. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cgi-fcgi $(1)/usr/bin/
  54. $(INSTALL_DIR) $(1)/usr/lib
  55. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi.so.* $(1)/usr/lib/
  56. endef
  57. define Package/fcgixx/install
  58. $(INSTALL_DIR) $(1)/usr/lib
  59. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi++.so.* $(1)/usr/lib/
  60. endef
  61. $(eval $(call BuildPackage,fcgi))
  62. $(eval $(call BuildPackage,fcgixx))