diff options
author | marcus <marcus@FreeBSD.org> | 2009-08-24 01:17:33 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2009-08-24 01:17:33 +0800 |
commit | 2a2b1f48d1570331e9dccb2207636e166fc8f748 (patch) | |
tree | 1ca4fd4f35c5def4f0f99d04546c9aca80876f53 /converters | |
parent | c4d228e708a8e145ed5455041d9f23c6071c2d88 (diff) | |
download | freebsd-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')
-rw-r--r-- | converters/fribidi/Makefile | 8 | ||||
-rw-r--r-- | converters/fribidi/files/fribidi-config | 19 | ||||
-rw-r--r-- | converters/fribidi/files/patch-fribidi.pc.in | 8 | ||||
-rw-r--r-- | converters/fribidi/pkg-plist | 1 |
4 files changed, 36 insertions, 0 deletions
diff --git a/converters/fribidi/Makefile b/converters/fribidi/Makefile index 0c77828e5a5a..5678c2835096 100644 --- a/converters/fribidi/Makefile +++ b/converters/fribidi/Makefile @@ -8,6 +8,7 @@ PORTNAME= fribidi PORTVERSION= 0.19.2 +PORTREVISION= 1 CATEGORIES= converters MASTER_SITES= http://fribidi.org/download/ @@ -41,4 +42,11 @@ MAN3= fribidi_charset_to_unicode.3 fribidi_debug_status.3 \ CONFIGURE_ARGS= --disable-debug .endif +post-patch: + @${SED} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' < \ + ${FILESDIR}/fribidi-config > ${WRKDIR}/fribidi-config + +post-install: + ${INSTALL_SCRIPT} ${WRKDIR}/fribidi-config ${PREFIX}/bin + .include <bsd.port.post.mk> 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} diff --git a/converters/fribidi/pkg-plist b/converters/fribidi/pkg-plist index 7ad3cf542b21..cc7c8ec78081 100644 --- a/converters/fribidi/pkg-plist +++ b/converters/fribidi/pkg-plist @@ -1,4 +1,5 @@ bin/fribidi +bin/fribidi-config include/fribidi/fribidi-arabic.h include/fribidi/fribidi-begindecls.h include/fribidi/fribidi-bidi-types-list.h |