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
26 FastCGI is a language independent
, scalable
, open extension to
\\\
27 CGI that provides high performance without the limitations of
\\\
29 URL
:=http
://www.fastcgi.com
/
37 CCOPT
="$(TARGET_CFLAGS) -I$(BUILD_DIR)/linux/include" \
38 DESTDIR
="$(PKG_INSTALL_DIR)" \
39 LDFLAGS
="$(LDFLAGS) -lm" \
42 define Build
/InstallDev
43 $(INSTALL_DIR
) $(STAGING_DIR
)/usr
/include
44 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/* $(STAGING_DIR
)/usr
/include/
45 $(INSTALL_DIR
) $(STAGING_DIR
)/usr
/lib
46 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libfcgi.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
49 define Build
/UninstallDev
51 $(STAGING_DIR
)/usr
/include/f
*cgi
*.h \
52 $(STAGING_DIR
)/usr
/lib
/libfcgi.
{a
,so
*}
55 define Package
/fcgi
/install
56 $(INSTALL_DIR
) $(1)/usr
/lib
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libfcgi.so
* $(1)/usr
/lib
/
58 $(INSTALL_DIR
) $(1)/usr
/bin
59 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/cgi-fcgi
$(1)/usr
/bin
/
62 $(eval
$(call BuildPackage
,fcgi
))