File tree 1 file changed +14
-9
lines changed
1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change 3
3
set -e
4
4
5
5
pkgname=bzip2
6
+ pkgbranch=${VERSION:- master}
7
+ pkgfull=$pkgname -$pkgbranch
6
8
7
- git clone git ://sourceware.org/git/ bzip2.git ${DEVENVFLAVORROOT} / ${DEVENVFLAVOR} /src/ ${pkgname }
9
+ syncgit https ://gitlab.com/ bzip2 ${pkgname} ${pkgbranch} ${pkgfull }
8
10
9
- pushd ${DEVENVFLAVORROOT} /${DEVENVFLAVOR} /src/${pkgname} > /dev/null
10
-
11
- INSTALL_PREFIX=${DEVENVPREFIX}
12
- buildcmd make.log make -f Makefile-libbz2_so
13
- buildcmd make.log make clean
14
- buildcmd make.log make install PREFIX=${INSTALL_PREFIX} -j ${NP}
15
- cp libbz2.so.1.0.8 ${DEVENVPREFIX} /lib
16
- ln -s ${DEVENVPREFIX} /lib/libbz2.so.1.0.8 ${DEVENVPREFIX} /lib/libbz2.so
11
+ pushd ${DEVENVFLAVORROOT} /${DEVENVFLAVOR} /src/${pkgfull} > /dev/null
12
+ mkdir -p build
13
+ pushd build > /dev/null
14
+ cmakecmd=(" cmake" )
15
+ cmakecmd+=(" -DCMAKE_INSTALL_PREFIX=${DEVENVPREFIX} " )
16
+ cmakecmd+=(" -DENABLE_SHARED_LIB=ON" )
17
+ cmakecmd+=(" ../" )
17
18
19
+ buildcmd cmake.log " ${cmakecmd[@]} "
20
+ buildcmd make.log make -j ${NP}
21
+ buildcmd install.log make install
22
+ popd > /dev/null
18
23
popd > /dev/null
19
24
# vim: set et nobomb ft=bash ff=unix fenc=utf8:
You can’t perform that action at this time.
0 commit comments