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)/package.mk
24 define Package/fcgi/Default
27 URL:=http://www.fastcgi.com/
31 $(call Package/fcgi/Default)
34 TITLE:=Shared library of FastCGI
38 $(call Package/fcgi/Default)
39 DEPENDS:=fcgi +USE_UCLIBC:uclibcxx
40 TITLE:=Shared library of FastCGI++
43 define Package/fcgi/description
44 FastCGI is a language independent, scalable, open extension to
45 CGI that provides high performance without the limitations of
49 TARGET_CFLAGS += $(FPIC)
56 CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++" \
57 CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
58 LIBS="-nodefaultlibs -luClibc++ -lm" \
60 define Build/InstallDev
61 $(INSTALL_DIR) $(1)/usr/include
62 $(CP) $(PKG_INSTALL_DIR)/usr/include/fastcgi.h $(1)/usr/include/
63 $(CP) $(PKG_INSTALL_DIR)/usr/include/fcgi{app,_config,misc,o,os,_stdio}.h $(1)/usr/include/
64 $(INSTALL_DIR) $(1)/usr/lib
65 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi{,++}.{a,so*} $(1)/usr/lib/
68 define Package/fcgi/install
69 $(INSTALL_DIR) $(1)/usr/bin
70 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cgi-fcgi $(1)/usr/bin/
71 $(INSTALL_DIR) $(1)/usr/lib
72 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi.so.* $(1)/usr/lib/
75 define Package/fcgixx/install
76 $(INSTALL_DIR) $(1)/usr/lib
77 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi++.so.* $(1)/usr/lib/
80 $(eval $(call BuildPackage,fcgi))
81 $(eval $(call BuildPackage,fcgixx))