2 # Copyright (C) 2007-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.fastcgi.com/dist/
16 PKG_MD5SUM:=d15060a813b91383a9f3c66faf84867e
18 PKG_FIXUP:=libtool-ucxx
22 include $(INCLUDE_DIR)/uclibc++.mk
23 include $(INCLUDE_DIR)/package.mk
25 define Package/fcgi/Default
28 URL:=http://www.fastcgi.com/
32 $(call Package/fcgi/Default)
35 TITLE:=Shared library of FastCGI
39 $(call Package/fcgi/Default)
40 DEPENDS:=fcgi $(CXX_DEPENDS)
41 TITLE:=Shared library of FastCGI++
44 define Package/fcgi/description
45 FastCGI is a language independent, scalable, open extension to
46 CGI that provides high performance without the limitations of
50 TARGET_CFLAGS += $(FPIC)
59 define Build/InstallDev
60 $(INSTALL_DIR) $(1)/usr/include
61 $(CP) $(PKG_INSTALL_DIR)/usr/include/fastcgi.h $(1)/usr/include/
62 $(CP) $(PKG_INSTALL_DIR)/usr/include/fcgi{app,_config,misc,o,os,_stdio}.h $(1)/usr/include/
63 $(INSTALL_DIR) $(1)/usr/lib
64 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi{,++}.{a,so*} $(1)/usr/lib/
67 define Package/fcgi/install
68 $(INSTALL_DIR) $(1)/usr/bin
69 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cgi-fcgi $(1)/usr/bin/
70 $(INSTALL_DIR) $(1)/usr/lib
71 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi.so.* $(1)/usr/lib/
74 define Package/fcgixx/install
75 $(INSTALL_DIR) $(1)/usr/lib
76 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi++.so.* $(1)/usr/lib/
79 $(eval $(call BuildPackage,fcgi))
80 $(eval $(call BuildPackage,fcgixx))