PATCH_LIST= FILE_LIST= SRC_FETCH_METHOD=http # retrieval method : # can be svn, git, http, ftp, filesystem # SRC_FETCH_METHOD=http # SRC_FETCH_PATH="http://downloads.sourceforge.net/project/open-vm-tools/open-vm-tools/stable-10.0.x/open-vm-tools-10.0.0-3000743.tar.gz" # retrieval path : # SRC_FETCH_PATH=http://foo.com/test.tar.bz2 # # 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 MAKEDEPENDS= # format : # MAKEDEPENDS='packagename:versfx:architecture:globbing' # # exemple : MAKEDEPENDS=( 'glib-2.28*:::*.so.* *.so *.h' 'libdnet-1.*:::*.a *.h' ) # This package only builds on x86_64 and i[3456]86, and is never used on # other platforms, so silently avoid them. if [ -n "${FLXARCH##i?86*}" -a "${FLXARCH}" != x86_64 ]; then echo "Unsupported architecture, ignoring package $EXACTPKG." function do_compile { :; } return 0 fi function do_config { if [ ! -e "./configure" -o ! -e "./lib/hgfsUri/Makefile.in" ] ; then autoreconf -i automake fi for i in GCC_ARCH_SMALL GCC_CPU_SMALL GCC_OPT_SMAL; do if eval echo "x\$$i" | \grep -q "x-mtune=x86-64"; then eval $i="-mtune=k8" fi done # Sometimes, broken packages will need LD="$CC" CXXCPP="$CC -E -x c" 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 -Wno-implicit-function-declaration" \ HAVE_PKG_CONFIG="no" CUSTOM_DNET_LIBS="-L$FLXROOTDIR/usr/lib/" CUSTOM_GTHREAD_LIBS="-L$FLXROOTDIR/usr/lib/" CUSTOM_GMODULE_LIBS="-L$FLXROOTDIR/usr/lib/" CUSTOM_GOBJECT_LIBS="-L$FLXROOTDIR/usr/lib/" CUSTOM_GLIB2_LIBS="-L$FLXROOTDIR/usr/lib/" CUSTOM_GLIB2_CPPFLAGS="-I$FLXROOTDIR/usr/lib/glib-2.0/include/ -I$FLXROOTDIR/usr/include/glib-2.0/" \ CUSTOM_GOBJECT_CPPFLAGS=$CUSTOM_GLIB2_CPPFLAGS CUSTOM_GMODULE_CPPFLAGS=$CUSTOM_GLIB2_CPPFLAGS CUSTOM_GTHREAD_CPPFLAGS=$CUSTOM_GLIB2_CPPFLAGS \ ac_vmw_custom_libs="$CUSTOM_GLIB2_LIBS $CUSTOM_GMODULE_LIBS $CUSTOM_GOBJECT_LIBS $CUSTOM_GMODULE_LIBS $CUSTOM_DNET_LIBS" \ ./configure --build=${FLXHOST} --host=${FLXTARG} \ --prefix=/usr --sysconfdir=/etc \ --without-pam --without-x --without-icu --without-kernel-modules --without-gtkmm --without-gtk2 --disable-unity --disable-multimon --without-procps --disable-docs --disable-tests --disable-deploypkg --disable-grabbitmqproxy --disable-vgauth #--without-glib } function do_compile_only { # parallel make cause error $FLXMAKE } function do_prepack { $FLXMAKE install DESTDIR=$ROOTDIR set_default_perm $ROOTDIR }