mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -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.
16 lines
884 B
Bash
Executable file
16 lines
884 B
Bash
Executable file
#!/usr/bin/env -S bash ../.port_include.sh
|
|
port=libvorbis
|
|
version=1.3.7
|
|
useconfigure=true
|
|
files="https://github.com/xiph/vorbis/releases/download/v${version}/libvorbis-${version}.tar.gz libvorbis-${version}.tar.gz"
|
|
depends=libogg
|
|
|
|
install() {
|
|
run make DESTDIR=$DESTDIR $installopts install
|
|
${CC} -shared -o $DESTDIR/usr/local/lib/libvorbis.so -Wl,--whole-archive $DESTDIR/usr/local/lib/libvorbis.a -Wl,--no-whole-archive -logg
|
|
rm -f $DESTDIR/usr/local/lib/libvorbis.la
|
|
${CC} -shared -o $DESTDIR/usr/local/lib/libvorbisenc.so -Wl,--whole-archive $DESTDIR/usr/local/lib/libvorbisenc.a -Wl,--no-whole-archive -lvorbis
|
|
rm -f $DESTDIR/usr/local/lib/libvorbisenc.la
|
|
${CC} -shared -o $DESTDIR/usr/local/lib/libvorbisfile.so -Wl,--whole-archive $DESTDIR/usr/local/lib/libvorbisfile.a -Wl,--no-whole-archive -lvorbis
|
|
rm -f $DESTDIR/usr/local/lib/libvorbisfile.la
|
|
}
|