Skip to content

Commit

Permalink
Merge pull request TritonDataCenter#15 from hadfl/libpng_r34
Browse files Browse the repository at this point in the history
update libpng to 1.6.37 (r151034)
  • Loading branch information
oetiker authored Feb 19, 2021
2 parents 3227bee + 851e9ad commit f9c72d4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ for dir in seabios vgabios kvm/test; do
cp roms/${dir}/config.mak.tmpl roms/${dir}/config.mak
done

PNGDIR="${PWD}/libpng-1.5.4"
PNGVER="1.6.37"
PNGDIR="${PWD}/libpng-${PNGVER}"
PNGINC="${PNGDIR}/proto/usr/local/include"
PNGLIB="${PNGDIR}/proto/usr/local/lib"
PREFIX="${PREFIX:-/smartdc}"

if [[ ! -d ${PNGDIR} ]]; then
(curl -k https://download.joyent.com/pub/kvm-cmd/libpng-1.5.4.tar.gz | \
gtar -zxf -)
(curl -L https://mirrors.omnios.org/libpng/libpng-${PNGVER}.tar.xz | \
gtar -Jxf -)
if [[ $? != "0" || ! -d ${PNGDIR} ]]; then
echo "Failed to get libpng."
rm -rf ${PNGDIR}
Expand Down

0 comments on commit f9c72d4

Please sign in to comment.