Skip to content
Permalink
836913c051
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 66 lines (46 sloc) 1.02 KB
#!/bin/bash
{
set -x
set -e
set -u
. build.profile
. ${PREFIX}/${BUILD_python}/profile
function B_LIBWEBP {
SRCURL=${BUILD_openjpeg_SRCURL}
BUILD_PKG=${BUILD_openjpeg}
PREFIX="${PREFIX}/${BUILD_PKG}"
mkdir -p "${PREFIX}"
cat >"${PREFIX}/profile" <<-EOF
PATH=${PREFIX}/bin:\$PATH
PKG_CONFIG_PATH=${PROJECT}/${BUILD_PKG}/lib/pkgconfig\${PKG_CONFIG_PATH:+:}\${PKG_CONFIG_PATH:-}
EOF
if [ ! -d "${BUILD_PKG}" ]; then
if [ ! -e ${BUILD_PKG}.tar ]; then
git clone "${SRCURL}" ${BUILD_PKG}
tar cf ${BUILD_PKG}.tar ${BUILD_PKG}
else
tar -xf ${BUILD_PKG}.tar
fi
fi
pushd ${BUILD_PKG}
local _conf=(
--prefix ${PREFIX}
)
#LDFLAGS=$(PKG_CONFIG_PATH=${PKG_CONFIG_PATH} pkg-config --libs-only-L lept)
#export LDFLAGS
#CPPFLAGS="-I${PROJECT}/${BUILD_leptonica}/include"
#export CPPFLAGS
local _cmake=(
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=${PREFIX}
)
mkdir -p builddir
cd builddir
cmake .. "${_cmake[@]}"
make -j ${NPROC} install
popd
}
pushd "${BUILD_DIR}"
B_LIBWEBP
popd
}