2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://www.fastcgi.com
/dist/
17 PKG_MD5SUM
:=d15060a813b91383a9f3c66faf84867e
19 include $(INCLUDE_DIR
)/package.mk
24 TITLE
:=Shared library of FastCGI
25 URL
:=http
://www.fastcgi.com
/
28 define Package
/fcgi
/description
29 FastCGI is a language independent
, scalable
, open extension to
30 CGI that provides high performance without the limitations of
39 CPPFLAGS
="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClic++" \
40 CXXFLAGS
="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
41 LIBS
="-nodefaultlibs -luClibc++ -lm" \
44 define Build
/Configure
45 $(call Build
/Configure
/Default
)
46 $(call libtool_disable_rpath
)
50 $(MAKE
) -C
$(PKG_BUILD_DIR
) all
51 $(call libtool_fixup_libdir
,$(PKG_INSTALL_DIR
))
52 $(MAKE
) -C
$(PKG_BUILD_DIR
) DESTDIR
="$(PKG_INSTALL_DIR)" all install
55 define Build
/InstallDev
56 $(INSTALL_DIR
) $(1)/usr
/include
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/fastcgi.h
$(1)/usr
/include/
58 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/fcgi
{app
,_config
,misc
,o
,os
,_stdio
}.h
$(1)/usr
/include/
59 $(INSTALL_DIR
) $(1)/usr
/lib
60 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libfcgi.
{a
,so
*} $(1)/usr
/lib
/
63 define Package
/fcgi
/install
64 $(INSTALL_DIR
) $(1)/usr
/bin
65 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/cgi-fcgi
$(1)/usr
/bin
/
66 $(INSTALL_DIR
) $(1)/usr
/lib
67 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libfcgi.so.
* $(1)/usr
/lib
/
70 $(eval
$(call BuildPackage
,fcgi
))