From 2c4db837e799878de95ee830c015aaeaed6a8c85 Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Sun, 14 Nov 2021 09:39:40 -0800 Subject: [PATCH] Ports: Add initial Pipe Viewer (pv) 1.6.20 port --- Ports/AvailablePorts.md | 1 + Ports/pv/package.sh | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100755 Ports/pv/package.sh diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index c1effa8d1b1..3369ed2171a 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -138,6 +138,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^ | [`SDLPoP`](SDLPoP/) | Prince of Persia game | | https://github.com/NagyD/SDLPoP | | [`printf`](printf/) | printf (OpenBSD) | 6.6 | https://github.com/ibara/libpuffy | | [`pt2-clone`](pt2-clone/) | ProTracker 2 clone | 1.28 | https://github.com/8bitbubsy/pt2-clone | +| [`pv`](pv/) | Pipe Viewer | 1.6.20 | http://www.ivarch.com/programs/pv.shtml | | [`python3`](python3/) | Python | 3.10.0 | https://www.python.org/ | | [`quake`](quake/) | Quake | 0.65 | https://github.com/SerenityOS/SerenityQuake | | [`quake2`](quake2/) | QuakeII | 0.1 | https://github.com/SerenityOS/SerenityQuakeII | diff --git a/Ports/pv/package.sh b/Ports/pv/package.sh new file mode 100755 index 00000000000..b87bd2d2531 --- /dev/null +++ b/Ports/pv/package.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env -S bash ../.port_include.sh +port=pv +version=1.6.20 +useconfigure=true +configopts=("--disable-nls") +files="http://www.ivarch.com/programs/sources/pv-${version}.tar.bz2 pv-${version}.tar.bz2 e831951eff0718fba9b1ef286128773b9d0e723e1fbfae88d5a3188814fdc603" +auth_type=sha256 + +export CFLAGS=-Wno-deprecated-declarations + +# Map LD to the serenity Toolchain, otherwise the host LD is used. +if [ "$SERENITY_TOOLCHAIN" = "Clang" ]; then + export LD=$(CC) +else + export LD="${SERENITY_ARCH}-pc-serenity-ld" +fi