Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhance: refurbished bzip2 build script #93

Merged
merged 1 commit into from
Nov 7, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 14 additions & 9 deletions scripts/build.d/bzip2
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,22 @@
set -e

pkgname=bzip2
pkgbranch=${VERSION:-master}
pkgfull=$pkgname-$pkgbranch

git clone git://sourceware.org/git/bzip2.git ${DEVENVFLAVORROOT}/${DEVENVFLAVOR}/src/${pkgname}
syncgit https://gitlab.com/bzip2 ${pkgname} ${pkgbranch} ${pkgfull}

pushd ${DEVENVFLAVORROOT}/${DEVENVFLAVOR}/src/${pkgname} > /dev/null

INSTALL_PREFIX=${DEVENVPREFIX}
buildcmd make.log make -f Makefile-libbz2_so
buildcmd make.log make clean
buildcmd make.log make install PREFIX=${INSTALL_PREFIX} -j ${NP}
cp libbz2.so.1.0.8 ${DEVENVPREFIX}/lib
ln -s ${DEVENVPREFIX}/lib/libbz2.so.1.0.8 ${DEVENVPREFIX}/lib/libbz2.so
pushd ${DEVENVFLAVORROOT}/${DEVENVFLAVOR}/src/${pkgfull} > /dev/null
mkdir -p build
pushd build > /dev/null
cmakecmd=("cmake")
cmakecmd+=("-DCMAKE_INSTALL_PREFIX=${DEVENVPREFIX}")
cmakecmd+=("-DENABLE_SHARED_LIB=ON")
cmakecmd+=("../")

buildcmd cmake.log "${cmakecmd[@]}"
buildcmd make.log make -j ${NP}
buildcmd install.log make install
popd > /dev/null
popd > /dev/null
# vim: set et nobomb ft=bash ff=unix fenc=utf8: