Skip to content

Commit

Permalink
Merge pull request #621 from jingjingxyk/build_native_php
Browse files Browse the repository at this point in the history
Build native php
  • Loading branch information
jingjingxyk committed Apr 30, 2024
2 parents d68ee62 + f69eba4 commit e3c18b2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sapi/quickstart/macos/macos-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,3 @@ brew uninstall --ignore-dependencies --force snappy
brew uninstall --ignore-dependencies --force capstone

which libtool


16 changes: 16 additions & 0 deletions sapi/src/builder/library/libpng.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,21 @@
->withUrl('https://sourceforge.net/projects/libpng/files/libpng16/1.6.37/libpng-1.6.37.tar.gz')
->withMd5sum('6c7519f6c75939efa0ed3053197abd54')
->withPrefix($libpng_prefix)
->withConfigure(
<<<EOF
./configure --help
CPPFLAGS="$(pkg-config --cflags-only-I --static zlib )" \
LDFLAGS="$(pkg-config --libs-only-L --static zlib )" \
LIBS="$(pkg-config --libs-only-l --static zlib )" \
./configure \
--prefix={$libpng_prefix} \
--enable-static=yes \
--enable-shared=no \
--with-zlib-prefix={$libzlib_prefix} \
--with-binconfigs
EOF
)
/*
->withBuildScript(<<<EOF
mkdir -p build
cd build
Expand All @@ -31,6 +46,7 @@
EOF
)
*/
->withPkgName('libpng')
->withPkgName('libpng16')
->withBinPath($libpng_prefix . '/bin')
Expand Down

0 comments on commit e3c18b2

Please sign in to comment.