Skip to content

Commit

Permalink
Working linux packager
Browse files Browse the repository at this point in the history
  • Loading branch information
Srikanth Kotagiri committed Jul 11, 2024
1 parent 7006bc0 commit 5691d9c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 8 additions & 4 deletions build-ffmpeg
Original file line number Diff line number Diff line change
Expand Up @@ -1215,13 +1215,17 @@ if $SHARED_LIBRARIES; then
CONFIGURE_OPTIONS+=("--enable-libsnappy")


if build "xz" "5.2.5"; then
download "https://tukaani.org/xz/xz-5.2.5.tar.gz"
if build "xz" "5.4.5"; then
download "https://tukaani.org/xz/xz-5.4.5.tar.gz"
if $SHARED_LIBRARIES; then
execute ./configure --prefix="${WORKSPACE}" --enable-shared --disable-static
else
execute ./configure --prefix="${WORKSPACE}" --disable-shared --enable-static
fi
execute make -j $MJOBS
execute make install

build_done "xz" "5.2.5"
build_done "xz" "5.4.5"
fi

fi
Expand Down Expand Up @@ -1329,4 +1333,4 @@ elif [[ ! "$SKIPINSTALL" == "yes" ]]; then
esac
fi

exit 0
exit 0
4 changes: 2 additions & 2 deletions descript/build-ffmpeg-linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,9 +415,9 @@ def main():

# bundle up the build artifacts
os.chdir(temp_dir)
shared_zip_name = base_artifact_name + '.zip'
shared_zip_name = base_artifact_name + '.tar.gz'
dest_file = os.path.join(output_dir, shared_zip_name)
args = ['/usr/bin/zip', '--symlinks', '-r', os.path.join('..', shared_zip_name), '.']
args = ['/usr/bin/tar', 'cvzf', os.path.join('..', shared_zip_name), '.']
log(' '.join(args))
subprocess.check_output(args)

Expand Down

0 comments on commit 5691d9c

Please sign in to comment.