aboutsummaryrefslogtreecommitdiffstats
path: root/converters/fribidi/files
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2009-08-24 01:17:33 +0800
committermarcus <marcus@FreeBSD.org>2009-08-24 01:17:33 +0800
commit2a2b1f48d1570331e9dccb2207636e166fc8f748 (patch)
tree1ca4fd4f35c5def4f0f99d04546c9aca80876f53 /converters/fribidi/files
parentc4d228e708a8e145ed5455041d9f23c6071c2d88 (diff)
downloadfreebsd-ports-gnome-2a2b1f48d1570331e9dccb2207636e166fc8f748.tar.gz
freebsd-ports-gnome-2a2b1f48d1570331e9dccb2207636e166fc8f748.tar.zst
freebsd-ports-gnome-2a2b1f48d1570331e9dccb2207636e166fc8f748.zip
Add a fribidi-config wrapper script around pkg-config to fix some older
port builds.
Diffstat (limited to 'converters/fribidi/files')
-rw-r--r--converters/fribidi/files/fribidi-config19
-rw-r--r--converters/fribidi/files/patch-fribidi.pc.in8
2 files changed, 27 insertions, 0 deletions
diff --git a/converters/fribidi/files/fribidi-config b/converters/fribidi/files/fribidi-config
new file mode 100644
index 000000000000..808c913aaffb
--- /dev/null
+++ b/converters/fribidi/files/fribidi-config
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+pkgconfig="%%LOCALBASE%%/bin/pkg-config"
+args=""
+
+while [ $# -gt 0 ]; do
+ case "x$1" in
+ x--version)
+ ${pkgconfig} --modversion fribidi
+ exit 0
+ ;;
+ x*)
+ args="${args} $1"
+ shift
+ ;;
+ esac
+done
+
+${pkgconfig} fribidi ${args}
diff --git a/converters/fribidi/files/patch-fribidi.pc.in b/converters/fribidi/files/patch-fribidi.pc.in
new file mode 100644
index 000000000000..4a0b3169ac0d
--- /dev/null
+++ b/converters/fribidi/files/patch-fribidi.pc.in
@@ -0,0 +1,8 @@
+--- fribidi.pc.in.orig 2009-08-23 12:40:41.000000000 -0400
++++ fribidi.pc.in 2009-08-23 12:40:50.000000000 -0400
+@@ -10,4 +10,4 @@ Description: Unicode Bidirectional Algor
+ Requires: @MISC_PACKAGES@
+ Version: @VERSION@
+ Libs: -L${libdir} -lfribidi
+-Cflags: -I${includedir}/@PACKAGE@
++Cflags: -I${includedir}/@PACKAGE@ -I${includedir}