mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 12:18:25 +00:00
All of these patches did the same thing, which is already in upstream config.sub. With this change, we need only add `use_fresh_config_sub=true` to the package.sh file. Note that this is not done automatically in case the port has a modified config.sub file.
18 lines
803 B
Bash
Executable File
18 lines
803 B
Bash
Executable File
#!/usr/bin/env -S bash ../.port_include.sh
|
|
port=libmodplug
|
|
version=0.8.8.5
|
|
useconfigure=true
|
|
use_fresh_config_sub=true
|
|
configopts=("ac_cv_c_bigendian=no")
|
|
files="https://download.sourceforge.net/modplug-xmms/libmodplug-${version}.tar.gz libmodplug-${version}.tar.gz 77462d12ee99476c8645cb5511363e3906b88b33a6b54362b4dbc0f39aa2daad"
|
|
auth_type=sha256
|
|
workdir="libmodplug-$version"
|
|
|
|
install() {
|
|
run make DESTDIR=${SERENITY_INSTALL_ROOT} "${installopts[@]}" install
|
|
MODPLUG_LIBDIR="${SERENITY_INSTALL_ROOT}/usr/local/lib"
|
|
${CC} -shared -o ${MODPLUG_LIBDIR}/libmodplug.so.1 -Wl,-soname,libmodplug.so -Wl,--whole-archive ${MODPLUG_LIBDIR}/libmodplug.a -Wl,--no-whole-archive
|
|
ln -rsf ${MODPLUG_LIBDIR}/libmodplug.so.1 ${MODPLUG_LIBDIR}/libmodplug.so
|
|
rm -f ${MODPLUG_LIBDIR}/libmodplug.la
|
|
}
|