PATCH_LIST= FILE_LIST= SRC_FETCH_METHOD=http # retrieval method : # can be svn, git, http, ftp, filesystem # SRC_FETCH_METHOD=http # SRC_FETCH_PATH=https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz # # Use FLXHOSTOS, FLXHOSTARCH, HOSTCC, HOSTCXX for the machine used to build. # Use FLXTARGOS, FLXTARGARCH, CC, CXX, LD, for the target machine. # FLXMAKE usually is 'make', FLXPMAKE usually is 'make -j 2' # Build tools are in /$FLXTOOLDIR, toolchain root dir is /$FLXROOTDIR. # Current dir is /$CURDIR, package dir is /$PKGDIR, dest root dir is /$ROOTDIR. # Package name is $PKGRADIX-$PKGVER-$DISTVER MAKEDEPENDS= # format : # MAKEDEPENDS='packagename:versfx:architecture:globbing' function do_config { # Sometimes, broken packages will need LD="$CC" CC="$CC" CXX="$CXX" LD="$LD" \ RANLIB="$RANLIB" AR="$AR" AS="$AS" NM="$NM" OBJDUMP="$OBJDUMP" \ CFLAGS="$GCC_ARCH_CURRENT $GCC_CPU_CURRENT $GCC_OPT_FAST" \ CPPFLAGS="-I$FLXROOTDIR/usr/include" \ LDFLAGS="-I$FLXROOTDIR/usr/lib" \ ./configure --prefix=/usr --enable-shared=yes --enable-static=no --disable-libevent-regress --disable-debug-mode --disable-openssl --disable-samples --enable-gcc-hardening # ./configure --prefix=$ROOTDIR/usr --enable-shared=no --enable-static=yes --disable-libevent-regress --disable-debug-mode --disable-openssl --disable-samples --enable-gcc-hardening } function do_compile_only { # parallel make $FLXPMAKE } function do_prepack { $FLXMAKE install prefix=$ROOTDIR/usr rm -f $ROOTDIR/usr/bin/*.py set_default_perm $ROOTDIR }