Skip to content

Commit

Permalink
Update libpng from 1.6.43 to 1.6.44 (#1325)
Browse files Browse the repository at this point in the history
* Update libpng from 1.6.43 to 1.6.44

* Add alternate url

* Update build instructions

---------

Co-authored-by: emscripten-forge-bot <[email protected]>
Co-authored-by: Isabel Paredes <[email protected]>
  • Loading branch information
3 people authored Nov 26, 2024
1 parent 8083886 commit 081ac6d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 8 deletions.
23 changes: 18 additions & 5 deletions recipes/recipes_emscripten/libpng/build.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
# FIXME: libz.so has the wrong magic bytes
rm $PREFIX/lib/libz.so*

# Get an updated config.sub and config.guess
cp $BUILD_PREFIX/share/libtool/build-aux/config.* .

export CFLAGS="$CFLAGS -I$PREFIX/include -L$PREFIX/lib"
export CPPFLAGS="$CPPFLAGS -I$PREFIX/include"
# atomics and bulk-memory are required for cairo
export CFLAGS="-I$PREFIX/include -matomics -mbulk-memory"
export CPPFLAGS="-I$PREFIX/include"
export LDFLAGS="$LDFLAGS -L$PREFIX/lib"

mkdir -p build
cd build

emconfigure ./configure --prefix=$PREFIX \
--with-zlib-prefix=$PREFIX
emconfigure ../configure --prefix=$PREFIX \
--with-zlib-prefix=$PREFIX \
--disable-shared
# NOTE: to enable shared, the -shared flag needs to be replaced with SIDE_MODULE

emmake make -j${CPU_COUNT} ${VERBOSE_AT}
emmake make -j${CPU_COUNT}
emmake make install

# Not packaging any shared libraries
rm $PREFIX/lib/libpng*.la
9 changes: 6 additions & 3 deletions recipes/recipes_emscripten/libpng/recipe.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
context:
name: libpng
version: 1.6.43
version: 1.6.44

package:
name: ${{ name }}
version: ${{ version }}

source:
url: http://download.sourceforge.net/libpng/libpng-${{ version }}.tar.gz
sha256: e804e465d4b109b5ad285a8fb71f0dd3f74f0068f91ce3cdfde618180c174925
url: http://downloads.sourceforge.net/project/${{ name }}/libpng16/${{ version }}/${{ name }}-${{ version }}.tar.gz
sha256: 8c25a7792099a0089fa1cc76c94260d0bb3f1ec52b93671b572f8bb61577b732

build:
number: 0
Expand All @@ -25,6 +25,7 @@ tests:
- test -f ${PREFIX}/lib/libpng.a
- test -f ${PREFIX}/include/png.h
- libpng-config --version

about:
license: zlib-acknowledgement
license_file: LICENSE
Expand All @@ -34,6 +35,8 @@ about:
libpng is the official PNG reference library. It supports almost all PNG
features, is extensible, and has been extensively tested for over 20 years.
homepage: http://www.libpng.org/pub/png/libpng.html

extra:
recipe-maintainers:
- martinRenou
- IsabelParedes

0 comments on commit 081ac6d

Please sign in to comment.