2021-04-01 00:12:26 +02:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
|
|
|
port=libvorbis
|
|
|
|
version=1.3.7
|
|
|
|
useconfigure=true
|
2021-04-25 12:20:15 +02:00
|
|
|
files="https://github.com/xiph/vorbis/releases/download/v${version}/libvorbis-${version}.tar.gz libvorbis-${version}.tar.gz 0e982409a9c3fc82ee06e08205b1355e5c6aa4c36bca58146ef399621b0ce5ab"
|
|
|
|
auth_type=sha256
|
2021-04-01 00:12:26 +02:00
|
|
|
depends=libogg
|
2021-04-15 15:46:40 +02:00
|
|
|
|
|
|
|
install() {
|
2021-04-20 18:42:04 +03:00
|
|
|
run make DESTDIR=${SERENITY_INSTALL_ROOT} $installopts install
|
2021-04-25 08:42:41 +02:00
|
|
|
${CC} -shared -o ${SERENITY_INSTALL_ROOT}/usr/local/lib/libvorbis.so -Wl,-soname,libvorbis.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/libvorbis.a -Wl,--no-whole-archive -logg
|
2021-04-20 18:42:04 +03:00
|
|
|
rm -f ${SERENITY_INSTALL_ROOT}/usr/local/lib/libvorbis.la
|
2021-04-25 08:42:41 +02:00
|
|
|
${CC} -shared -o ${SERENITY_INSTALL_ROOT}/usr/local/lib/libvorbisenc.so -Wl,-soname,libvorbisenc.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/libvorbisenc.a -Wl,--no-whole-archive -lvorbis
|
2021-04-20 18:42:04 +03:00
|
|
|
rm -f ${SERENITY_INSTALL_ROOT}/usr/local/lib/libvorbisenc.la
|
2021-04-25 08:42:41 +02:00
|
|
|
${CC} -shared -o ${SERENITY_INSTALL_ROOT}/usr/local/lib/libvorbisfile.so -Wl,-soname,libvorbisfile.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/libvorbisfile.a -Wl,--no-whole-archive -lvorbis
|
2021-04-20 18:42:04 +03:00
|
|
|
rm -f ${SERENITY_INSTALL_ROOT}/usr/local/lib/libvorbisfile.la
|
2021-04-15 15:46:40 +02:00
|
|
|
}
|