2 # Copyright (C) 2007-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://downloads.sourceforge.net
/project
/witty
/wt
/$(PKG_VERSION
)
16 PKG_MD5SUM
:=ee9490d5f24a47766e54f630ba0da2bb
18 include $(INCLUDE_DIR
)/package.mk
19 include $(INCLUDE_DIR
)/cmake.mk
23 define Package
/wt
/Default
26 URL
:=http
://www.webtoolkit.eu
/wt
30 $(call Package
/wt
/Default
)
32 DEPENDS
:= +libstdcpp
+boost-date_time
+boost-system
+boost-filesystem
+boost-thread
+boost-program_options
+boost-signals
+boost-regex
+libpthread
33 TITLE
:=C
++ Web Toolkit
36 define Package
/wt-resources
37 $(call Package
/wt
/Default
)
39 TITLE
:=Optional Resource Files
42 define Package
/wt-fcgi
43 $(call Package
/wt
/Default
)
45 TITLE
:=FastCGI Connector
48 define Package
/wt-http
49 $(call Package
/wt
/Default
)
50 DEPENDS
:=wt
+PACKAGE_wt_http_zlib
:zlib
+PACKAGE_wt_http_ssl
:libopenssl
51 TITLE
:=Built in HTTP Server
54 define Package
/wt-http
/config
55 config PACKAGE_wt_http_zlib
56 bool
"Enable zlib compression option"
57 depends on PACKAGE_wt-http
59 config PACKAGE_wt_http_ssl
60 bool
"Enable ssl option"
61 depends on PACKAGE_wt-http
66 $(call Package
/wt
/Default
)
68 TITLE
:=Object Relational Mapping
71 define Package
/wt-dbosqlite3
72 $(call Package
/wt
/Default
)
74 TITLE
:=Sqlite3 Dbo Backend
77 define Package
/wt-resources
/conffiles
81 # TODO: some parts of the code show that -DHAVE_GNU_REGEX can be defined to avoid dependence or boost-regex
82 # But that's turning out not to be the case (some portions still depend on boost-regex)
83 TARGET_CFLAGS
+= $(FPIC
)
85 -DCMAKE_BUILD_TYPE
=MinSizeRel \
86 -DCMAKE_CXX_FLAGS_MINSIZEREL
:STRING
="-DNDEBUG -DWT_NO_SPIRIT -DWT_NO_XSS_FILTER" \
87 -DSHARED_LIBS
:BOOL
=ON \
89 -DBUILD_EXAMPLES
=OFF \
90 -DINSTALL_RESOURCES
=ON \
95 -DENABLE_POSTGRES
=OFF \
97 -DWT_NO_STD_LOCALE
=ON \
98 -DWT_NO_STD_WSTRING
=ON
100 ifndef CONFIG_PACKAGE_wt-http
105 ifndef CONFIG_PACKAGE_wt_http_zlib
110 ifndef CONFIG_PACKAGE_wt_http_ssl
115 ifndef CONFIG_PACKAGE_wt-fcgi
120 define Build
/InstallDev
121 $(INSTALL_DIR
) $(1)/usr
/include
122 $(CP
) -a
$(PKG_INSTALL_DIR
)/usr
/include/Wt
$(1)/usr
/include
124 $(INSTALL_DIR
) $(1)/usr
/share
/cmake-2.4
/Modules
125 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/cmake-2.4
/Modules
/FindWt.cmake
$(1)/usr
/share
/cmake-2.4
/Modules
127 $(INSTALL_DIR
) $(1)/usr
/lib
128 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libwt
*.so
* $(1)/usr
/lib
132 define Package
/$(1)/install
133 $(INSTALL_DIR
) $$(1)/usr
/lib
135 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libwt
$$$$$$$${m}.so
* $$(1)/usr
/lib
/ ; \
139 $$(eval
$$(call BuildPackage
,$(1)))
142 define Package
/wt
/install
143 $(INSTALL_DIR
) $(1)/etc
/wt
144 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/wt_config.xml
$(1)/etc
/wt
146 $(INSTALL_DIR
) $(1)/usr
/lib
147 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libwt.so
* $(1)/usr
/lib
150 define Package
/wt
/conffiles
154 define Package
/wt-resources
/install
155 $(INSTALL_DIR
) $(1)/usr
/share
156 $(CP
) -a
$(PKG_INSTALL_DIR
)/usr
/share
/Wt
$(1)/usr
/share
159 $(eval
$(call BuildPackage
,wt
))
160 $(eval
$(call BuildPackage
,wt-resources
))
161 $(eval
$(call BuildPlugin
,wt-http
,http
))
162 $(eval
$(call BuildPlugin
,wt-fcgi
,fcgi
))
163 $(eval
$(call BuildPlugin
,wt-dbo
,dbo
))
164 $(eval
$(call BuildPlugin
,wt-dbosqlite3
,dbosqlite3
))