diff --git a/Ports/file/package.sh b/Ports/file/package.sh index 20b03b6cc4..106b1aaff8 100755 --- a/Ports/file/package.sh +++ b/Ports/file/package.sh @@ -6,3 +6,18 @@ use_fresh_config_sub='true' files=( "http://ftp.astron.com/pub/file/file-${version}.tar.gz#fc97f51029bb0e2c9f4e3bffefdaf678f0e039ee872b9de5c002a6d09c784d82" ) + +function pre_configure() { + host_env + mkdir -p "host-build" + ( + cd host-build + "../${workdir}/configure" + make + ) +} + +function build() { + export PATH="${PORT_BUILD_DIR}/host-build/src/.libs/:$PATH" + run make +}