Hi,

The intent of these 2 patches is to get Wt running on openwrt.  (It's a c++ web
framework).

It worked out really well for the application I wrote, although it requires
a bit of space when built as shared libraries.  (Of course, static builds and
aggressive linking can reduce the size for a specific application, but the
included makefile will require some modification.)

This first patch is to fix a typo when building c++ support for fcgi.  It also
puts fcgixx in a separate package.

The second patch is the bits to build Wt.

Wade

---
 libs/fcgi/Makefile |   27 ++++++++++++++++++++++-----
 1 files changed, 22 insertions(+), 5 deletions(-)

diff --git a/libs/fcgi/Makefile b/libs/fcgi/Makefile
index fcb1f64..f6eebae 100644
--- a/libs/fcgi/Makefile
+++ b/libs/fcgi/Makefile
@@ -21,14 +21,25 @@ PKG_INSTALL:=1
 
 include $(INCLUDE_DIR)/package.mk
 
-define Package/fcgi
+define Package/fcgi/Default
   SECTION:=libs
   CATEGORY:=Libraries
-  TITLE:=Shared library of FastCGI
-  DEPENDS:=+uclibcxx
   URL:=http://www.fastcgi.com/
 endef
 
+define Package/fcgi
+  $(call Package/fcgi/Default)
+  MENU:=1
+  DEPENDS:= +libpthread
+  TITLE:=Shared library of FastCGI
+endef
+
+define Package/fcgixx
+  $(call Package/fcgi/Default)
+  DEPENDS:=fcgi +uclibcxx
+  TITLE:=Shared library of FastCGI++
+endef
+
 define Package/fcgi/description
  FastCGI is a language independent, scalable, open extension to 
  CGI that provides high performance without the limitations of 
@@ -42,7 +53,7 @@ CONFIGURE_ARGS += \
        --enable-static \
 
 CONFIGURE_VARS += \
-       CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClic++" \
+       CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++" \
        CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++"  \
        LIBS="-nodefaultlibs -luClibc++ -lm" \
 
@@ -51,7 +62,7 @@ define Build/InstallDev
        $(CP) $(PKG_INSTALL_DIR)/usr/include/fastcgi.h $(1)/usr/include/
        $(CP) 
$(PKG_INSTALL_DIR)/usr/include/fcgi{app,_config,misc,o,os,_stdio}.h 
$(1)/usr/include/
        $(INSTALL_DIR) $(1)/usr/lib
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi.{a,so*} $(1)/usr/lib/
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi{,++}.{a,so*} $(1)/usr/lib/
 endef
 
 define Package/fcgi/install
@@ -61,4 +72,10 @@ define Package/fcgi/install
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi.so.* $(1)/usr/lib/
 endef
 
+define Package/fcgixx/install
+       $(INSTALL_DIR) $(1)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi++.so.* $(1)/usr/lib/
+endef
+
 $(eval $(call BuildPackage,fcgi))
+$(eval $(call BuildPackage,fcgixx))
-- 
1.7.0.4

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to