Update dmapd and libdmapsharing to new upstream versions
[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 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/fcgi
24   SECTION:=libs
25   CATEGORY:=Libraries
26   TITLE:=Shared library of FastCGI
27   DEPENDS:=+uclibcxx
28   URL:=http://www.fastcgi.com/
29 endef
30
31 define Package/fcgi/description
32  FastCGI is a language independent, scalable, open extension to 
33  CGI that provides high performance without the limitations of 
34  server specific APIs.
35 endef
36
37 TARGET_CFLAGS += $(FPIC)
38
39 CONFIGURE_ARGS += \
40         --enable-shared \
41         --enable-static \
42
43 CONFIGURE_VARS += \
44         CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClic++" \
45         CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++"  \
46         LIBS="-nodefaultlibs -luClibc++ -lm" \
47
48 define Build/InstallDev
49         $(INSTALL_DIR) $(1)/usr/include
50         $(CP) $(PKG_INSTALL_DIR)/usr/include/fastcgi.h $(1)/usr/include/
51         $(CP) $(PKG_INSTALL_DIR)/usr/include/fcgi{app,_config,misc,o,os,_stdio}.h $(1)/usr/include/
52         $(INSTALL_DIR) $(1)/usr/lib
53         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi.{a,so*} $(1)/usr/lib/
54 endef
55
56 define Package/fcgi/install
57         $(INSTALL_DIR) $(1)/usr/bin
58         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cgi-fcgi $(1)/usr/bin/
59         $(INSTALL_DIR) $(1)/usr/lib
60         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi.so.* $(1)/usr/lib/
61 endef
62
63 $(eval $(call BuildPackage,fcgi))