PATCH_LIST=disable-nghttpx.diff FILE_LIST= SRC_FETCH_PATH=https://github.com/nghttp2/nghttp2/releases/download/v$PKGVER/nghttp2-$PKGVER.tar.xz SRC_FETCH_METHOD=http MAKEDEPENDS=( "openssl-*:::*.so *.so.* *.h" "jemalloc-*:::*.h *.so *.so.*" "libev-*:::*.a *.h" "zlib-*:::*.so *.h *.so.*" "jansson-*:::*.a *.h" "nghttp3-*:::*.a *.h" "ngtcp2-*:::*.a *.h" ) function do_config { # makefile.am and configure.ac were patched to remove nghttpx # which depends on c-ares. We just want h2load from the apps. autoreconf -fi CC="$CC" CXX="$CXX" LD="$LD" \ RANLIB="$RANLIB" AR="$AR" AS="$AS" NM="$NM" OBJDUMP="$OBJDUMP" \ CFLAGS="$GCC_ARCH_SMALL $GCC_CPU_SMALL $GCC_OPT_SMALL" \ PKG_CONFIG=/bin/true \ OPENSSL_LIBS="-lssl -lcrypto" \ JEMALLOC_LIBS="-ljemalloc" \ LIBEV_LIBS="-lev" \ ZLIB_LIBS="-lz" \ JANSSON_LIBS="-ljansson" \ LIBNGHTTP3_LIBS="-lnghttp3" \ ./configure \ --build=${FLXHOST} --host=${FLXTARG} \ --prefix=/usr --sysconfdir=/etc \ --disable-nls --disable-locale \ --without-libxml2 --with-jemalloc \ --with-openssl --without-spdylay \ --without-libevent --without-libevent-openssl \ --without-libcares --without-systemd --without-cunit \ --disable-hpack-tools --disable-examples --enable-app } function do_compile_only { # parallel make $FLXPMAKE } function do_prepack { $FLXMAKE install DESTDIR=$ROOTDIR set_default_perm $ROOTDIR }