暂无描述

Makefile 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. #
  2. # Copyright (C) 2007-2011 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:=fcgi
  9. PKG_VERSION:=2.4.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://www.fastcgi.com/dist/
  13. PKG_MD5SUM:=d15060a813b91383a9f3c66faf84867e
  14. PKG_FIXUP:=libtool-ucxx
  15. PKG_MAINTAINER:=Jacob Siverskog <jacob@teenageengineering.com>
  16. PKG_INSTALL:=1
  17. include $(INCLUDE_DIR)/uclibc++.mk
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/fcgi/Default
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. URL:=http://www.fastcgi.com/
  23. endef
  24. define Package/fcgi
  25. $(call Package/fcgi/Default)
  26. MENU:=1
  27. DEPENDS:= +libpthread
  28. TITLE:=Shared library of FastCGI
  29. endef
  30. define Package/fcgixx
  31. $(call Package/fcgi/Default)
  32. DEPENDS:=fcgi $(CXX_DEPENDS)
  33. TITLE:=Shared library of FastCGI++
  34. endef
  35. define Package/fcgi/description
  36. FastCGI is a language independent, scalable, open extension to
  37. CGI that provides high performance without the limitations of
  38. server specific APIs.
  39. endef
  40. TARGET_CFLAGS += $(FPIC)
  41. CONFIGURE_ARGS += \
  42. --enable-shared \
  43. --enable-static \
  44. CONFIGURE_VARS += \
  45. LIBS="-lm" \
  46. define Build/InstallDev
  47. $(INSTALL_DIR) $(1)/usr/include
  48. $(CP) $(PKG_INSTALL_DIR)/usr/include/fastcgi.h $(1)/usr/include/
  49. $(CP) $(PKG_INSTALL_DIR)/usr/include/fcgi{app,_config,misc,o,os,_stdio}.h $(1)/usr/include/
  50. $(INSTALL_DIR) $(1)/usr/lib
  51. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi{,++}.{a,so*} $(1)/usr/lib/
  52. endef
  53. define Package/fcgi/install
  54. $(INSTALL_DIR) $(1)/usr/bin
  55. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cgi-fcgi $(1)/usr/bin/
  56. $(INSTALL_DIR) $(1)/usr/lib
  57. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi.so.* $(1)/usr/lib/
  58. endef
  59. define Package/fcgixx/install
  60. $(INSTALL_DIR) $(1)/usr/lib
  61. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi++.so.* $(1)/usr/lib/
  62. endef
  63. $(eval $(call BuildPackage,fcgi))
  64. $(eval $(call BuildPackage,fcgixx))