PATCH_LIST= FILE_LIST= SRC_FETCH_METHOD=http SRC_FETCH_PATH=http://web.mit.edu/kerberos/dist/krb5/1.15/krb5-1.15.2.tar.gz MAKEDEPENDS=( "openssl-1.1.*:::*.h *.so *.so.*" ) # patch 001 comes from https://github.com/openwrt/packages/blob/master/net/krb5/patches/001-fix-uninitialized-warning-errors.patch PATCH_LIST=' 001-fix-uninitialized-warning-errors.patch 002-disable-rpc-unit-tests.patch ' function do_config { cd src && \ # Sometimes, broken packages will need LD="$CC" CC="$CC" CXX="$CXX" LD="$LD" \ RANLIB="$RANLIB" AR="$AR" AS="$AS" NM="$NM" OBJDUMP="$OBJDUMP" \ XXCFLAGSXX="$GCC_ARCH_CURRENT $GCC_CPU_CURRENT $GCC_OPT_FAST" \ CFLAGS="$GCC_ARCH_SMALL $GCC_CPU_SMALL $GCC_OPT_SMALL" \ CPPFLAGS="" \ LDFLAGS="" \ ./configure --with-size-optimizations --enable-option-checking --prefix=/usr --without-ldap --without-libedit --without-readline --without-tcl --enable-dns-for-realm --disable-static --enable-shared # ./configure --enable-option-checking --prefix=/usr --without-ldap --without-libedit --without-readline --without-tcl --enable-dns-for-realm --enable-static --disable-shared } function do_compile_only { # without this, in unicode dir, ucdata.c and other files are searched in the current directory only cp src/lib/krb5/unicode/u*/*.{c,h} src/lib/krb5/unicode/ # parallel make $FLXPMAKE -C src } function do_prepack { $FLXMAKE -C src DESTDIR=$ROOTDIR install set_default_perm $ROOTDIR }