Changeset 8610


Ignore:
Timestamp:
2007-09-04T19:25:28+02:00 (9 years ago)
Author:
nico
Message:

fix build against uClibc++, add libtool fixes, cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/libs/fcgi/Makefile

    r8019 r8610  
    2323  CATEGORY:=Libraries 
    2424  TITLE:=Shared library of FastCGI 
    25   DESCRIPTION:=\ 
    26         FastCGI is a language independent, scalable, open extension to \\\ 
    27         CGI that provides high performance without the limitations of \\\ 
    28         server specific APIs. 
    2925  URL:=http://www.fastcgi.com/ 
     26endef 
     27 
     28define Package/fcgi/description 
     29 FastCGI is a language independent, scalable, open extension to  
     30 CGI that provides high performance without the limitations of  
     31 server specific APIs. 
    3032endef 
    3133 
    3234CONFIGURE_ARGS += \ 
    3335        --enable-shared \ 
    34         --enable-static 
     36        --enable-static \ 
    3537 
    36 MAKE_FLAGS += \ 
    37         CCOPT="$(TARGET_CFLAGS) -I$(BUILD_DIR)/linux/include" \ 
    38         DESTDIR="$(PKG_INSTALL_DIR)" \ 
    39         LDFLAGS="$(LDFLAGS) -lm" \ 
    40         all install 
     38CONFIGURE_VARS += \ 
     39        CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClic++" \ 
     40        CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++"  \ 
     41        LIBS="-nodefaultlibs -luClibc++ -lm" \ 
     42 
     43 
     44define Build/Configure 
     45        $(call Build/Configure/Default) 
     46        $(call libtool_disable_rpath) 
     47endef 
     48 
     49define Build/Compile 
     50        $(MAKE) -C $(PKG_BUILD_DIR) all 
     51        $(call libtool_fixup_libdir,$(PKG_INSTALL_DIR)) 
     52        $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all install 
     53endef 
    4154 
    4255define Build/InstallDev 
    4356        $(INSTALL_DIR) $(STAGING_DIR)/usr/include 
    44         $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(STAGING_DIR)/usr/include/ 
     57        $(CP) $(PKG_INSTALL_DIR)/usr/include/fastcgi.h $(STAGING_DIR)/usr/include/ 
     58        $(CP) $(PKG_INSTALL_DIR)/usr/include/fcgi{app,_config,misc,o,os,_stdio}.h $(STAGING_DIR)/usr/include/ 
    4559        $(INSTALL_DIR) $(STAGING_DIR)/usr/lib 
    4660        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi.{a,so*} $(STAGING_DIR)/usr/lib/ 
     
    4862 
    4963define Build/UninstallDev 
    50         rm -rf \ 
    51                 $(STAGING_DIR)/usr/include/f*cgi*.h \ 
     64        rm -rf  $(STAGING_DIR)/usr/include/fastcgi.h \ 
     65                $(STAGING_DIR)/usr/include/fcgi{app,_config,misc,io,ios,_stdio}.h \ 
    5266                $(STAGING_DIR)/usr/lib/libfcgi.{a,so*} 
    5367endef 
    5468 
    5569define Package/fcgi/install 
     70        $(INSTALL_DIR) $(1)/usr/bin 
     71        $(CP) $(PKG_INSTALL_DIR)/usr/bin/cgi-fcgi $(1)/usr/bin/ 
    5672        $(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/ 
     73        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfcgi.so.* $(1)/usr/lib/ 
    6074endef 
    6175 
Note: See TracChangeset for help on using the changeset viewer.