Ticket #1356: ziproxy_01.patch

Datei ziproxy_01.patch, 4.7 KB (hinzugefügt von MaxMuster, vor 7 Jahren)

Nicht wirklich getestet, mehr "Copy&Paste", aber es gibt zumindest den Hilfetext aus ;-)

  • make/libs/giflib.mk

     
     1$(call PKG_INIT_LIB, 4.1.6) 
     2$(PKG)_LIB_VERSION:=4.1.6 
     3 
     4$(PKG)_SOURCE:=$(pkg)-$($(PKG)_VERSION).tar.bz2 
     5$(PKG)_SOURCE_MD5:=7125644155ae6ad33dbc9fc15a14735f 
     6$(PKG)_SITE:=@SF/$(pkg) 
     7 
     8$(PKG)_BINARY:=$($(PKG)_DIR)/lib/.libs/libgif.so.$($(PKG)_LIB_VERSION) 
     9$(PKG)_STAGING_BINARY:=$(TARGET_TOOLCHAIN_STAGING_DIR)/usr/lib/libgif.so.$($(PKG)_LIB_VERSION) 
     10$(PKG)_TARGET_BINARY:=$($(PKG)_TARGET_DIR)/libgif.so.$($(PKG)_LIB_VERSION) 
     11 
     12#$(PKG)_DEPENDS_ON := jpeg libpng freetype 
     13 
     14# fix libgd packaging errors (configure.ac has a later date than configure & aclocal.m4 has a later date than config.hin) 
     15# prevents configure & config.hin from being regenerated, which in turn allows PKG_PREVENT_RPATH_HARDCODING macro to do its job 
     16$(PKG)_CONFIGURE_PRE_CMDS += touch -t 200001010000.00 ./configure.ac ./aclocal.m4; touch ./config.hin ./configure; 
     17$(PKG)_CONFIGURE_PRE_CMDS += $(call PKG_PREVENT_RPATH_HARDCODING,./configure) 
     18 
     19$(PKG)_CONFIGURE_OPTIONS += --enable-shared 
     20$(PKG)_CONFIGURE_OPTIONS += --enable-static 
     21$(PKG)_CONFIGURE_OPTIONS += --disable-rpath 
     22$(PKG)_CONFIGURE_OPTIONS += --without-libiconv-prefix 
     23$(PKG)_CONFIGURE_OPTIONS += --with-x=no 
     24$(PKG)_CONFIGURE_OPTIONS += --with-xpm=no 
     25$(PKG)_CONFIGURE_OPTIONS += --with-fontconfig=no 
     26 
     27$(call REPLACE_LIBTOOL) 
     28 
     29$(PKG_SOURCE_DOWNLOAD) 
     30$(PKG_UNPACKED) 
     31$(PKG_CONFIGURED_CONFIGURE) 
     32 
     33$($(PKG)_BINARY): $($(PKG)_DIR)/.configured 
     34    $(SUBMAKE) -C $(GIFLIB_DIR) 
     35 
     36$($(PKG)_STAGING_BINARY): $($(PKG)_BINARY) 
     37    $(SUBMAKE) \ 
     38        DESTDIR="$(TARGET_TOOLCHAIN_STAGING_DIR)" \ 
     39        -C $(GIFLIB_DIR) install 
     40    $(PKG_FIX_LIBTOOL_LA) \ 
     41        $(TARGET_TOOLCHAIN_STAGING_DIR)/usr/lib/libgif.la \ 
     42 
     43$($(PKG)_TARGET_BINARY): $($(PKG)_STAGING_BINARY) 
     44    $(INSTALL_LIBRARY_STRIP) 
     45 
     46$(pkg): $($(PKG)_STAGING_BINARY) 
     47 
     48$(pkg)-precompiled: $($(PKG)_TARGET_BINARY) 
     49 
     50$(pkg)-clean: 
     51    -$(SUBMAKE) -C $(GIFLIB_DIR) clean 
     52    $(RM) $(LIBGIFLIB_FREETZ_CONFIG_FILE) 
     53    $(RM) -r $(TARGET_TOOLCHAIN_STAGING_DIR)/usr/lib/libgif.* \ 
     54        $(TARGET_TOOLCHAIN_STAGING_DIR)/include/gif_lib.*  
     55 
     56$(pkg)-uninstall: 
     57    $(RM) $(LIBGD_TARGET_DIR)/libgif*.so* 
     58 
     59$(PKG_FINISH) 
  • make/ziproxy/Makefile.in

     
     1ifeq ($(strip $(FREETZ_PACKAGE_ZIPROXY)),y) 
     2PACKAGES+=ziproxy 
     3endif 
  • make/ziproxy/ziproxy.mk

     
     1$(call PKG_INIT_BIN, 3.2.0) 
     2$(PKG)_SOURCE:=$(pkg)-$($(PKG)_VERSION).tar.bz2 
     3$(PKG)_SITE:=@SF/$(pkg) 
     4$(PKG)_BINARY:=$($(PKG)_DIR)/src/ziproxy 
     5$(PKG)_TARGET_BINARY:=$($(PKG)_DEST_DIR)/usr/bin/ziproxy 
     6 
     7$(PKG)_DEPENDS_ON += jpeg  
     8$(PKG)_DEPENDS_ON += libpng 
     9$(PKG)_DEPENDS_ON += giflib 
     10 
     11ifeq ($(strip $(FREETZ_PACKAGE_ZIPROXY_STATIC)),y) 
     12$(PKG)_LDFLAGS:= -static 
     13endif 
     14 
     15$(PKG)_REBUILD_SUBOPTS += FREETZ_PACKAGE_ZIPROXY_STATIC 
     16 
     17$(PKG)_CONFIGURE_OPTIONS += --with-jasper=no 
     18$(PKG)_CONFIGURE_OPTIONS += --with-sasl2=no 
     19$(PKG)_CONFIGURE_OPTIONS += --sysconfdir=/mod/etc/ziproxy 
     20 
     21$(PKG_SOURCE_DOWNLOAD) 
     22$(PKG_UNPACKED) 
     23$(PKG_CONFIGURED_CONFIGURE) 
     24 
     25$($(PKG)_BINARY): $($(PKG)_DIR)/.configured 
     26    $(SUBMAKE) -C $(ZIPROXY_DIR) \ 
     27        LDFLAGS="$(TARGET_LDFLAGS) $(ZIPROXY_LDFLAGS)" 
     28 
     29$($(PKG)_TARGET_BINARY): $($(PKG)_BINARY) 
     30    $(INSTALL_BINARY_STRIP) 
     31 
     32$(pkg): 
     33 
     34$(pkg)-precompiled: $($(PKG)_TARGET_BINARY) 
     35 
     36$(pkg)-clean: 
     37    -$(SUBMAKE) -C $(ZIPROXY_DIR) clean 
     38    $(RM) $(ZIPROXY_FREETZ_CONFIG_FILE) 
     39 
     40$(pkg)-uninstall: 
     41    $(RM) $(ZIPROXY_TARGET_BINARY) 
     42 
     43$(PKG_FINISH) 
  • make/ziproxy/Config.in

     
     1config FREETZ_PACKAGE_ZIPROXY 
     2    bool "ziproxy 3.2.0" 
     3    default n 
     4    help 
     5        Ziproxy is forwarding HTTP proxy server aimed to speed up low-bandwidth connections.  
     6        It does so by gzipping HTML and using lossy compression of GIF, PNG and JPEG pictures. 
     7 
     8config FREETZ_PACKAGE_ZIPROXY_STATIC 
     9    bool "Statically link libraries" 
     10    depends on FREETZ_PACKAGE_ZIPROXY 
     11    default n 
     12    help 
     13        Build statically linked binary of ZIPROXY 
     14 
     15 
  • make/Config.in

     
    183183source make/xpdf/Config.in 
    184184source make/xrelayd/Config.in 
    185185source make/xsltproc/Config.in 
     186source make/ziproxy/Config.in 
    186187endmenu 
    187188 
    188189menu "Web interfaces"