Changeset 28373


Ignore:
Timestamp:
2011-10-06T18:17:30+02:00 (6 years ago)
Author:
florian
Message:

[package] fcgi: fix fcgi++ build and put it in a separate package

Patch from Wade Berrier.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/libs/fcgi/Makefile

    r24461 r28373  
    11# 
    2 # Copyright (C) 2007 OpenWrt.org 
     2# Copyright (C) 2007-2011 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    2222include $(INCLUDE_DIR)/package.mk 
    2323 
    24 define Package/fcgi 
     24define Package/fcgi/Default 
    2525  SECTION:=libs 
    2626  CATEGORY:=Libraries 
    27   TITLE:=Shared library of FastCGI 
    28   DEPENDS:=+uclibcxx 
    2927  URL:=http://www.fastcgi.com/ 
    3028endef 
    3129 
     30define Package/fcgi 
     31  $(call Package/fcgi/Default) 
     32  MENU:=1 
     33  DEPENDS:= +libpthread 
     34  TITLE:=Shared library of FastCGI 
     35endef 
     36 
     37define Package/fcgixx 
     38  $(call Package/fcgi/Default) 
     39  DEPENDS:=fcgi +USE_UCLIBC:uclibcxx 
     40  TITLE:=Shared library of FastCGI++ 
     41endef 
     42 
    3243define Package/fcgi/description 
    33  FastCGI is a language independent, scalable, open extension to  
    34  CGI that provides high performance without the limitations of  
     44 FastCGI is a language independent, scalable, open extension to 
     45 CGI that provides high performance without the limitations of 
    3546 server specific APIs. 
    3647endef 
     
    4354 
    4455CONFIGURE_VARS += \ 
    45         CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClic++" \ 
     56        CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++" \ 
    4657        CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++"  \ 
    4758        LIBS="-nodefaultlibs -luClibc++ -lm" \ 
     
    5263        $(CP) $(PKG_INSTALL_DIR)/usr/include/fcgi{app,_config,misc,o,os,_stdio}.h $(1)/usr/include/ 
    5364        $(INSTALL_DIR) $(1)/usr/lib 
    54         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi.{a,so*} $(1)/usr/lib/ 
     65        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi{,++}.{a,so*} $(1)/usr/lib/ 
    5566endef 
    5667 
     
    6273endef 
    6374 
     75define Package/fcgixx/install 
     76        $(INSTALL_DIR) $(1)/usr/lib 
     77        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi++.so.* $(1)/usr/lib/ 
     78endef 
     79 
    6480$(eval $(call BuildPackage,fcgi)) 
     81$(eval $(call BuildPackage,fcgixx)) 
Note: See TracChangeset for help on using the changeset viewer.