diff options
author | Gunnar Beutner <gunnar@beutner.name> | 2021-04-15 15:46:40 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-16 19:04:24 +0200 |
commit | da92c0e1ca2be53df4a7889090656b428869d140 (patch) | |
tree | 024477eb4190eade300d754d952764aca4902ad0 /Ports/libpng | |
parent | c9d535868506dfede9e79ff2af01435e9bdea420 (diff) | |
download | serenity-da92c0e1ca2be53df4a7889090656b428869d140.zip |
Ports: Build shared libraries for a few more ports
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.
Diffstat (limited to 'Ports/libpng')
-rwxr-xr-x | Ports/libpng/package.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Ports/libpng/package.sh b/Ports/libpng/package.sh index c8c5902d44..1bad108b31 100755 --- a/Ports/libpng/package.sh +++ b/Ports/libpng/package.sh @@ -4,3 +4,10 @@ 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 +} |