PATCH_LIST= FILE_LIST= SRC_FETCH_METHOD=http SRC_FETCH_PATH=ftp://ftp.cyrusimap.org/cyrus-sasl/cyrus-sasl-2.1.26.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 # optimize for size #FLXARCH=$FLX_ARCH_SMALL # format : # MAKEDEPENDS='packagename:versfx:architecture:globbing' # MAKEDEPENDS=( "openssl-1.0.*:::*.h *.so *.so.*" ) PATCH_LIST=' 0001-disable-building-samples-and-utils.patch 0011_CVE-2013-4122.patch ' 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="" \ LDFLAGS="" \ ./configure --prefix=/usr --enable-shared=yes --enable-static=no --disable-sample --disable-obsolete_cram_attr --enable-gssapi=yes # ./configure --prefix=$ROOTDIR/usr --enable-shared=no --enable-static=yes --disable-sample --disable-obsolete_cram_attr --enable-gssapi=yes } function do_compile_only { # parallel make $FLXPMAKE } function do_prepack { $FLXMAKE install DESTDIR=$ROOTDIR set_default_perm $ROOTDIR }