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 66 lines (45 sloc) 1.1 KB
#!/bin/bash
{
set -x
set -e
set -u
. build.profile
. ${PREFIX}/${BUILD_libjpegturbo}/profile
. ${PREFIX}/${BUILD_imagemagick}/profile
function B_ZBAR {
SRCURL=${BUILD_zbar_SRCURL}
BUILD_PKG=${BUILD_zbar}
BUILD_EXT=${SRCURL/${SRCURL%.*.*}/}
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}${BUILD_EXT} || wget -nv ${SRCURL} -O ${BUILD_PKG}${BUILD_EXT}
test -d ${BUILD_PKG} || mkdir -pv ${BUILD_PKG} && tar -xf ${BUILD_PKG}${BUILD_EXT} --strip-components=1 -C ${BUILD_PKG}
cd ${BUILD_PKG}
autoreconf -vfi
local _conf=(
--prefix ${PREFIX}
--disable-video
--disable-nls
--disable-doc
--enable-introspection=no
--with-gir=no
--with-x=no
--with-qt=no
--with-gtk=no
--with-dbus=no
--with-python=no
--with-xshm=no
)
./configure "${_conf[@]}"
make -j $NPROC
make install
}
pushd "${BUILD_DIR}"
B_ZBAR
popd
}