[PATCH] multimedia/libtheora: don't link with -lcompat

Dmitry Marakasov amdmi3 at amdmi3.ru
Sat Dec 26 13:39:25 UTC 2009


>Submitter-Id:	current-users
>Originator:	Dmitry Marakasov
>Organization:	
>Confidential:	no 
>Synopsis:	[PATCH] multimedia/libtheora: don't link with -lcompat
>Severity:	non-critical
>Priority:	low
>Category:	ports 
>Class:		change-request
>Release:	FreeBSD 8.0-RELEASE i386
>Environment:
System: FreeBSD hades.panopticon 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Tue Nov 24 22:31:59 MSK 2009
>Description:
After latest update to 1.1.1, libtheora links with -lcompat
(configure.ac claims that's needed for OpenBSD). However on FreeBSD
it's not needed, and also breaks dependent ports, at least
gmerlin-avdecoder:

http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/e.8.20091222210227/gmerlin-avdecoder-1.0.1_1.log

thus, patch configure to not detect libcompat.

Port maintainer (multimedia at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- libtheora-1.1.1_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/amdmi3/projects/freebsd/FreeBSD.cvs/ports/multimedia/libtheora/Makefile,v
retrieving revision 1.26
diff -u -u -r1.26 Makefile
--- Makefile	21 Dec 2009 03:00:51 -0000	1.26
+++ Makefile	26 Dec 2009 12:49:31 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	libtheora
 PORTVERSION=	1.1.1
+PORTREVISION=	1
 CATEGORIES=	multimedia
 MASTER_SITES=	http://downloads.xiph.org/releases/theora/ \
 		http://distfiles.master.finkmirrors.net/
@@ -32,7 +33,8 @@
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|doc||g' ${WRKSRC}/Makefile.in
-	@${REINPLACE_CMD} -e 's,  x86_64),  x86_64|amd64),' ${WRKSRC}/configure
+	@${REINPLACE_CMD} -e 's,  x86_64),  x86_64|amd64),; \
+		/ac_lib/ s,compat,,' ${WRKSRC}/configure
 .if ${ARCH}=="amd64"
 	@${REINPLACE_CMD} -e 's|#define OC_X86_ASM|#undef OC_X86_ASM|' ${WRKSRC}/configure
 .endif
--- libtheora-1.1.1_1.patch ends here ---



More information about the freebsd-multimedia mailing list