summaryrefslogtreecommitdiff
path: root/Ports
diff options
context:
space:
mode:
authorStephen Gregoratto <dev@sgregoratto.me>2020-10-13 11:53:17 +0000
committerGitHub <noreply@github.com>2020-10-13 13:53:17 +0200
commitb82da6b78bfc557c69f19d380ea355f62f022bda (patch)
tree9fcc336c73f45bdd9f3d44d61920892ed9153127 /Ports
parent5d5c32cec1e4e59329ab96bbd1f371c7b9d70d75 (diff)
downloadserenity-b82da6b78bfc557c69f19d380ea355f62f022bda.zip
Ports: Add pkgconf (#3757)
Diffstat (limited to 'Ports')
-rwxr-xr-xPorts/pkgconf/package.sh12
-rw-r--r--Ports/pkgconf/patches/build-system.patch12
2 files changed, 24 insertions, 0 deletions
diff --git a/Ports/pkgconf/package.sh b/Ports/pkgconf/package.sh
new file mode 100755
index 0000000000..b1373763ab
--- /dev/null
+++ b/Ports/pkgconf/package.sh
@@ -0,0 +1,12 @@
+#!/bin/bash ../.port_include.sh
+port=pkgconf
+version=1.7.3
+files="https://distfiles.dereferenced.org/pkgconf/pkgconf-1.7.3.tar.xz pkgconf-1.7.3.tar.xz"
+useconfigure=true
+usr_local=$SERENITY_ROOT/Build/Root/usr/local/
+configopts="--prefix=/usr/local --with-pkg-config-dir=/usr/local/lib/pkgconfig"
+
+post_install() {
+ mkdir -p $SERENITY_ROOT/Build/Root/bin
+ ln -sf /usr/local/bin/pkgconf $SERENITY_ROOT/Build/Root/usr/local/bin/pkg-config
+}
diff --git a/Ports/pkgconf/patches/build-system.patch b/Ports/pkgconf/patches/build-system.patch
new file mode 100644
index 0000000000..4600074d1a
--- /dev/null
+++ b/Ports/pkgconf/patches/build-system.patch
@@ -0,0 +1,12 @@
+--- pkgconf-1.7.3/config.sub.orig 2020-10-13 18:51:42.736398026 +1100
++++ pkgconf-1.7.3/config.sub 2020-10-13 18:51:45.953064825 +1100
+@@ -1393,7 +1393,8 @@
+ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
+ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
+ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
+- | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*)
++ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos* \
++ | -serenity*)
+ # Remember, each alternative MUST END IN *, to match a version number.
+ ;;
+ -qnx*)