-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Peter Marquardt
committed
Jan 21, 2025
1 parent
969b73f
commit ec4cb92
Showing
13 changed files
with
164 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#!/bin/bash | ||
{ | ||
set -x | ||
set -e | ||
set -u | ||
|
||
. build.profile | ||
|
||
# . ${PREFIX}/${BUILD_libjpegturbo}/profile | ||
. ${PREFIX}/${BUILD_libtiff}/profile | ||
|
||
function B_LIBWEBP { | ||
|
||
SRCURL="${BUILD_libwebp_SRCURL}" | ||
|
||
BUILD_PKG=${BUILD_libwebp} | ||
|
||
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 | ||
|
||
|
||
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}" | ||
|
||
|
||
|
||
local _conf=( | ||
--prefix="${PREFIX}" | ||
--enable-libwebpmux | ||
--enable-libwebpdemux | ||
--enable-libwebpdecoder | ||
--enable-libwebpextras | ||
--enable-swap-16bit-csp | ||
--disable-shared | ||
--with-pic | ||
--with-jpegincludedir=${PROJECT}/${BUILD_libjpegturbo}/include | ||
--with-jpeglibdir=${PROJECT}/${BUILD_libjpegturbo}/lib | ||
--with-tiffincludedir=${PROJECT}/${BUILD_libtiff}/include | ||
--with-tifflibdir=${PROJECT}/${BUILD_libtiff}/lib | ||
) | ||
|
||
./configure "${_conf[@]}" | ||
|
||
make -j "${NPROC}" install | ||
|
||
} | ||
|
||
pushd "${BUILD_DIR}" | ||
|
||
B_LIBWEBP | ||
|
||
popd | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters