PATCH_LIST="db-4.8.30-aarch64.diff db-4.8.30-riscv64.diff" FILE_LIST= SRC_FETCH_METHOD=http SRC_FETCH_PATH=http://download.oracle.com/berkeley-db/db-${PKGVER}.tar.gz MAKEDEPENDS= PREFIX=/usr function do_config { cd build_unix 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" \ LDFLAGS="-Wl,-gc-sections" \ ../dist/configure \ --build=${FLXHOST} --host=${FLXTARG} \ --prefix=$PREFIX --bindir=$PREFIX/bin --mandir=$PREFIX/man \ --libdir=$PREFIX/lib --includedir=$PREFIX/include --datadir=$PREFIX/share } function do_compile_only { cd build_unix $FLXPMAKE prefix=$PREFIX bindir=$PREFIX/bin mandir=$PREFIX/man libdir=$PREFIX/lib includedir=$PREFIX/include datadir=$PREFIX/share } function do_prepack { cd build_unix # do not use make install, it install huge amounts of developer's docs! $FLXMAKE install_setup install_include install_lib install_utilities \ DESTDIR=$ROOTDIR prefix=$PREFIX bindir=$PREFIX/bin mandir=$PREFIX/man \ libdir=$PREFIX/lib includedir=$PREFIX/include datadir=$PREFIX/share set_default_perm $ROOTDIR } function post_clean { cd build_unix $FLXMAKE distclean return 0 }