PATCH_LIST=fix-c_symbol_name.patch FILE_LIST= SRC_FETCH_PATH="https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-${PKGVER}.tar.bz2" SRC_FETCH_METHOD=http # 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='libgpg-error-*:::*.a *.h usr/bin/gpg-error usr/bin/gpg-error-config' 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_SMALL $GCC_CPU_SMALL $GCC_OPT_SMALL -fPIC" LDFLAGS="-fPIC" \ CPPFLAGS="-I$FLXROOTDIR/usr/include" \ CXXCPP="$CC -E -x c" \ SYSROOT=$FLXROOTDIR \ LDFLAGS="-L$FLXROOTDIR/usr/lib"\ ./configure --build=${FLXHOST} --host=${FLXTARG} \ --with-sysroot=$FLXROOTDIR \ --prefix=/usr --sysconfdir=/etc \ --with-gpg-error-prefix=$FLXROOTDIR/usr \ --enable-static=yes --enable-random=linux } function do_compile_only { # parallel make $FLXMAKE } function do_prepack { $FLXMAKE install DESTDIR=$ROOTDIR set_default_perm $ROOTDIR }