add packages_10.03.2 in preparation for the 10.03.2 interim release
[10.03/packages.git] / libs / fcgi / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=fcgi
11 PKG_VERSION:=2.4.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.fastcgi.com/dist/
16 PKG_MD5SUM:=d15060a813b91383a9f3c66faf84867e
17
18 PKG_FIXUP:=libtool-ucxx
19
20 PKG_INSTALL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/fcgi
25   SECTION:=libs
26   CATEGORY:=Libraries
27   TITLE:=Shared library of FastCGI
28   DEPENDS:=+uclibcxx
29   URL:=http://www.fastcgi.com/
30 endef
31
32 define Package/fcgi/description
33  FastCGI is a language independent, scalable, open extension to 
34  CGI that provides high performance without the limitations of 
35  server specific APIs.
36 endef
37
38 TARGET_CFLAGS += $(FPIC)
39
40 CONFIGURE_ARGS += \
41         --enable-shared \
42         --enable-static \
43
44 CONFIGURE_VARS += \
45         CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClic++" \
46         CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++"  \
47         LIBS="-nodefaultlibs -luClibc++ -lm" \
48
49 define Build/InstallDev
50         $(INSTALL_DIR) $(1)/usr/include
51         $(CP) $(PKG_INSTALL_DIR)/usr/include/fastcgi.h $(1)/usr/include/
52         $(CP) $(PKG_INSTALL_DIR)/usr/include/fcgi{app,_config,misc,o,os,_stdio}.h $(1)/usr/include/
53         $(INSTALL_DIR) $(1)/usr/lib
54         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi.{a,so*} $(1)/usr/lib/
55 endef
56
57 define Package/fcgi/install
58         $(INSTALL_DIR) $(1)/usr/bin
59         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cgi-fcgi $(1)/usr/bin/
60         $(INSTALL_DIR) $(1)/usr/lib
61         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi.so.* $(1)/usr/lib/
62 endef
63
64 $(eval $(call BuildPackage,fcgi))