diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index b64ac43c2ae..ab438ca6242 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -49,6 +49,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^ | [`libpng`](libpng/) | libpng | 1.6.37 | https://libpng.org/ | | [`libpuffy`](libpuffy/) | libpuffy | 1.0 | https://github.com/ibara/libpuffy | | [`libtiff`](libtiff/) | libtiff | 4.2.0 | http://www.libtiff.org/ | +| [`libtool`](libtool/) | libtool | 2.4 | https://www.gnu.org/software/libtool/ | | [`libvorbis`](libvorbis/) | libvorbis | 1.3.7 | https://github.com/xiph/vorbis | | [`libzip`](libzip/) | libzip | 1.7.3 | https://libzip.org/ | | [`links`](links/) | Links web browser | 2.22 | http://links.twibright.com/ | diff --git a/Ports/libtool/package.sh b/Ports/libtool/package.sh new file mode 100755 index 00000000000..914e6632cbc --- /dev/null +++ b/Ports/libtool/package.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env -S bash ../.port_include.sh +port=libtool +version=2.4 +useconfigure="true" +depends="bash sed" +files="https://ftp.gnu.org/gnu/libtool/libtool-${version}.tar.xz libtool-${version}.tar.xz +https://ftp.gnu.org/gnu/libtool/libtool-${version}.tar.xz.sig libtool-${version}.tar.xz.sig +https://ftp.gnu.org/gnu/gnu-keyring.gpg gnu-keyring.gpg" +auth_type="sig" +auth_opts="--keyring ./gnu-keyring.gpg libtool-${version}.tar.xz.sig" +configopts="--prefix=/usr/local" + +post_install() { + mkdir -p "${SERENITY_BUILD_DIR}/Root/usr/bin" + ln -sf /usr/local/bin/sed "${SERENITY_BUILD_DIR}/Root/usr/bin/sed" +} diff --git a/Ports/libtool/patches/config.sub.patch b/Ports/libtool/patches/config.sub.patch new file mode 100644 index 00000000000..eaad493ff73 --- /dev/null +++ b/Ports/libtool/patches/config.sub.patch @@ -0,0 +1,10 @@ +--- libtool-2.4.6/libltdl/config/config.sub 2010-09-22 07:46:09.000000000 -0700 ++++ libtool-2.4.6/libltdl/config/config.sub 2021-04-11 18:46:03.374661972 -0700 +@@ -1301,6 +1301,7 @@ + # Each alternative MUST END IN A *, to match a version number. + # -sysv* is not here because it comes later, after sysvr4. + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ ++ | -serenity* \ + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ + | -sym* | -kopensolaris* \