Merge pull request #8361 from jandelgado/add_udptunnel_package
[feed/packages.git] / libs / fcgi / Makefile
1 #
2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
4 #
5
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=fcgi
9 PKG_VERSION:=2.4.2
10 PKG_RELEASE:=1
11
12 PKG_SOURCE:=$(PKG_NAME)2-$(PKG_VERSION).tar.gz
13 PKG_SOURCE_URL:=https://codeload.github.com/FastCGI-Archives/fcgi2/tar.gz/$(PKG_VERSION)?
14 PKG_HASH:=1fe83501edfc3a7ec96bb1e69db3fd5ea1730135bd73ab152186fd0b437013bc
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)2-$(PKG_VERSION)
16
17 PKG_MAINTAINER:=Jacob Siverskog <jacob@teenageengineering.com>
18 PKG_LICENSE:=MIT
19 PKG_LICENSE_FILES:=LICENSE.TERMS
20
21 PKG_FIXUP:=autoreconf
22 PKG_BUILD_PARALLEL:=1
23 PKG_INSTALL:=1
24
25 include $(INCLUDE_DIR)/uclibc++.mk
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/fcgi/Default
29 SECTION:=libs
30 CATEGORY:=Libraries
31 URL:=https://fastcgi-archives.github.io/
32 endef
33
34 define Package/fcgi
35 $(call Package/fcgi/Default)
36 MENU:=1
37 DEPENDS:=+libpthread
38 TITLE:=Shared library of FastCGI
39 endef
40
41 define Package/fcgixx
42 $(call Package/fcgi/Default)
43 DEPENDS:=fcgi $(CXX_DEPENDS)
44 TITLE:=Shared library of FastCGI++
45 endef
46
47 define Package/fcgi/description
48 FastCGI is a language independent, scalable, open extension to
49 CGI that provides high performance without the limitations of
50 server specific APIs.
51 endef
52
53 TARGET_CXXFLAGS += -fno-rtti -flto
54 TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
55
56 define Build/InstallDev
57 $(INSTALL_DIR) $(1)/usr/include
58 $(CP) $(PKG_INSTALL_DIR)/usr/include/fastcgi.h $(1)/usr/include/
59 $(CP) $(PKG_INSTALL_DIR)/usr/include/fcgi{app,_config,misc,o,os,_stdio}.h $(1)/usr/include/
60 $(INSTALL_DIR) $(1)/usr/lib
61 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi{,++}.{a,so*} $(1)/usr/lib/
62 endef
63
64 define Package/fcgi/install
65 $(INSTALL_DIR) $(1)/usr/bin
66 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cgi-fcgi $(1)/usr/bin/
67 $(INSTALL_DIR) $(1)/usr/lib
68 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi.so.* $(1)/usr/lib/
69 endef
70
71 define Package/fcgixx/install
72 $(INSTALL_DIR) $(1)/usr/lib
73 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi++.so.* $(1)/usr/lib/
74 endef
75
76 $(eval $(call BuildPackage,fcgi))
77 $(eval $(call BuildPackage,fcgixx))