1# 2# Copyright (c) 2013 The Linux Foundation. All rights reserved. 3# Copyright (C) 2007-2011 OpenWrt.org 4# 5# This is free software, licensed under the GNU General Public License v2. 6# See /LICENSE for more information. 7# 8 9include $(TOPDIR)/rules.mk 10 11PKG_NAME:=fcgi 12PKG_VERSION:=2.4.0 13PKG_RELEASE:=1 14 15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 16PKG_SOURCE_URL:=http://www.fastcgi.com/dist/ 17PKG_MD5SUM:=d15060a813b91383a9f3c66faf84867e 18 19PKG_FIXUP:=libtool-ucxx 20 21PKG_INSTALL:=1 22 23ifeq ($(CONFIG_INSTALL_LIBSTDCPP),y) 24include $(INCLUDE_DIR)/uclibc++.mk 25endif 26include $(INCLUDE_DIR)/package.mk 27 28define Package/fcgi/Default 29 SECTION:=libs 30 CATEGORY:=Libraries 31 URL:=http://www.fastcgi.com/ 32endef 33 34define Package/fcgi 35 $(call Package/fcgi/Default) 36 MENU:=1 37 DEPENDS:= +libpthread 38 TITLE:=Shared library of FastCGI 39endef 40 41define Package/fcgixx 42 $(call Package/fcgi/Default) 43 DEPENDS:=fcgi $(CXX_DEPENDS) 44 TITLE:=Shared library of FastCGI++ 45endef 46 47define Package/fcgi/description 48 FastCGI is a language independent, scalable, open extension to 49 CGI that provides high performance without the limitations of 50 server specific APIs. 51endef 52 53TARGET_CFLAGS += $(FPIC) 54 55CONFIGURE_ARGS += \ 56 --enable-shared \ 57 --enable-static \ 58 59CONFIGURE_VARS += \ 60 LIBS="-lm" \ 61 62define Build/InstallDev 63 $(INSTALL_DIR) $(1)/usr/include 64 $(CP) $(PKG_INSTALL_DIR)/usr/include/fastcgi.h $(1)/usr/include/ 65 $(CP) $(PKG_INSTALL_DIR)/usr/include/fcgi{app,_config,misc,o,os,_stdio}.h $(1)/usr/include/ 66 $(INSTALL_DIR) $(1)/usr/lib 67 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi*.{a,so*} $(1)/usr/lib/ 68endef 69 70define Package/fcgi/install 71 $(INSTALL_DIR) $(1)/usr/bin 72 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cgi-fcgi $(1)/usr/bin/ 73 $(INSTALL_DIR) $(1)/usr/lib 74 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi.so.* $(1)/usr/lib/ 75endef 76 77define Package/fcgixx/install 78 $(INSTALL_DIR) $(1)/usr/lib 79 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi++.so.* $(1)/usr/lib/ 80endef 81 82$(eval $(call BuildPackage,fcgi)) 83$(eval $(call BuildPackage,fcgixx)) 84