Skip to content
Permalink
main
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 56 lines (37 sloc) 1022 Bytes
#!/bin/bash
{
set -x
set -e
set -u
. build.profile
. ${PREFIX}/${BUILD_libjpegturbo}/profile
. ${PREFIX}/${BUILD_libtiff}/profile
. ${PREFIX}/${BUILD_libwebp}/profile
. ${PREFIX}/${BUILD_imagemagick}/profile
function B_LEPTONICA {
SRCURL=${BUILD_leptonica_SRCURL}
BUILD_PKG=${BUILD_leptonica}
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:-}
LD_LIBRARY_PATH=${PROJECT}/${BUILD_PKG}/lib\${LD_LIBRARY_PATH:+:}\${LD_LIBRARY_PATH:-}
EOF
test -e ${BUILD_PKG}.tar.gz || wget -nv ${SRCURL} -O ${BUILD_PKG}.tar.gz
test -d ${BUILD_PKG} || mkdir -pv ${BUILD_PKG} && tar -xf ${BUILD_PKG}.tar.gz --strip-components=1 -C ${BUILD_PKG}
cd ${BUILD_PKG}
export PKG_CONFIG_PATH
local _conf=(
--prefix ${PREFIX}
--without-libopenjpeg
--disable-shared
--with-pic
)
./configure "${_conf[@]}"
make -j ${NPROC} install
}
pushd "${BUILD_DIR}"
B_LEPTONICA
popd
}