[ports/multimedia/libdv] Respect PTHREAD_LIBS

Norikatsu Shigemura nork at FreeBSD.org
Sat Dec 9 11:39:37 PST 2006


Hi lioux!

	I found a issue of not respect PTHREAD_LIBS.  Please commit
	following patch.

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/multimedia/libdv/Makefile,v
retrieving revision 1.33
diff -u -r1.33 Makefile
--- Makefile	20 Sep 2006 11:21:51 -0000	1.33
+++ Makefile	9 Dec 2006 19:27:53 -0000
@@ -88,6 +88,10 @@
 	@${REINPLACE_CMD} -E -e 's|(@REQUIRES_NOPKGCONFIG@)|-L${LOCALBASE}/include \1|' \
 		${WRKSRC}/libdv.pc.in
 
+pre-configure:
+	@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' \
+		${WRKSRC}/configure
+
 post-install:
 .if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCSDIR}
Index: files/patch-configure
===================================================================
RCS file: files/patch-configure
diff -N files/patch-configure
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-configure	9 Dec 2006 19:23:02 -0000
@@ -0,0 +1,11 @@
+--- configure.orig	Tue Nov 30 12:23:44 2004
++++ configure	Sun Dec 10 04:22:48 2006
+@@ -20393,8 +20393,6 @@
+ # FreeBSD and OpenBSD have neither -lpthread nor integrated pthreads in libc.
+ # Instead -pthread is used to the compiler/linker to get pthreads working right.
+ if test x$OS_ARCH = xFreeBSD -o x$OS_ARCH = xOpenBSD; then
+-   CFLAGS="$CFLAGS -pthread"
+-   CXXFLAGS="$CXXFLAGS -pthread"
+ fi
+ 
+ 


More information about the freebsd-ports mailing list