libdlna: version bump to 0.2.4
[openwrt/svn-archive/archive.git] / libs / fcgi / Makefile
1 #
2 # Copyright (C) 2007-2011 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)/uclibc++.mk
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/fcgi/Default
26 SECTION:=libs
27 CATEGORY:=Libraries
28 URL:=http://www.fastcgi.com/
29 endef
30
31 define Package/fcgi
32 $(call Package/fcgi/Default)
33 MENU:=1
34 DEPENDS:= +libpthread
35 TITLE:=Shared library of FastCGI
36 endef
37
38 define Package/fcgixx
39 $(call Package/fcgi/Default)
40 DEPENDS:=fcgi $(CXX_DEPENDS)
41 TITLE:=Shared library of FastCGI++
42 endef
43
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
47 server specific APIs.
48 endef
49
50 TARGET_CFLAGS += $(FPIC)
51
52 CONFIGURE_ARGS += \
53 --enable-shared \
54 --enable-static \
55
56 CONFIGURE_VARS += \
57 LIBS="-lm" \
58
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/
65 endef
66
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/
72 endef
73
74 define Package/fcgixx/install
75 $(INSTALL_DIR) $(1)/usr/lib
76 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi++.so.* $(1)/usr/lib/
77 endef
78
79 $(eval $(call BuildPackage,fcgi))
80 $(eval $(call BuildPackage,fcgixx))