mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 18:24:45 -05:00
da92c0e1ca
This manually builds shared libraries for a bunch of ports. Using libtool would be preferable but that's currently broken so I'm linking the shared libraries manually.
13 lines
538 B
Bash
Executable file
13 lines
538 B
Bash
Executable file
#!/usr/bin/env -S bash ../.port_include.sh
|
|
port=libpng
|
|
version=1.6.37
|
|
useconfigure=true
|
|
files="https://download.sourceforge.net/libpng/libpng-${version}.tar.gz libpng-${version}.tar.gz"
|
|
depends="zlib"
|
|
|
|
install() {
|
|
run make DESTDIR=$DESTDIR $installopts install
|
|
${CC} -shared -o $DESTDIR/usr/local/lib/libpng16.so -Wl,--whole-archive $DESTDIR/usr/local/lib/libpng16.a -Wl,--no-whole-archive -lz
|
|
ln -sf libpng16.so $DESTDIR/usr/local/lib/libpng.so
|
|
rm -f $DESTDIR/usr/local/lib/libpng16.la $DESTDIR/usr/local/lib/libpng.la
|
|
}
|