ports/96929: [PATCH] multimedia/avifile: Unbreak pkg-config
Ulrich Spoerlein
uspoerlein at gmail.com
Sun May 7 17:30:11 UTC 2006
>Number: 96929
>Category: ports
>Synopsis: [PATCH] multimedia/avifile: Unbreak pkg-config
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun May 07 17:30:09 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Ulrich Spoerlein
>Release: FreeBSD 6.1-RC i386
>Organization:
>Environment:
System: FreeBSD roadrunner 6.1-RC FreeBSD 6.1-RC #1: Tue Apr 25 15:39:00 CEST 2006
>Description:
multimedia/transcode failed, as it was looking for the avifile headers
in /usr/local/include/avifile-0.7. But the port installs them to .../avifile
In incorrect (?) pkg-config entry is to blame.
Port maintainer (holger at e-gitt.net) is cc'd.
Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
# portinstall multimedia/avifile
# pkg-config --cflags avifile
-I/usr/local/include/avifile-0.7
>Fix:
--- avifile-0.7.43_1,2.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/multimedia/avifile/Makefile,v
retrieving revision 1.61
diff -u -p -u -r1.61 Makefile
--- Makefile 2 May 2006 23:14:18 -0000 1.61
+++ Makefile 7 May 2006 16:55:03 -0000
@@ -7,6 +7,7 @@
PORTNAME= avifile
PORTVERSION= 0.7.43
+PORTREVISION= 1
PORTEPOCH= 2
CATEGORIES= multimedia
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
@@ -274,6 +275,9 @@ post-patch:
@${REINPLACE_CMD} -E \
-e 's|^(pkgconfigdir).*|\1=${PREFIX}/libdata/pkgconfig|' \
${WRKSRC}/Makefile.in
+# fix pkg-config DB entry, we don't version the include directory
+ @${REINPLACE_CMD} -E -e \
+ '/^includedir/s|-[0-9.]+$||' ${WRKSRC}/avifile.pc
# do not install man page for v4l
@${REINPLACE_CMD} -E \
-e 's|kv4lsetup.1||' ${WRKSRC}/doc/Makefile.in
--- avifile-0.7.43_1,2.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list