From owner-freebsd-ports@FreeBSD.ORG Sat Dec 9 19:39:37 2006 Return-Path: X-Original-To: ports@FreeBSD.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 24FC016A412; Sat, 9 Dec 2006 19:39:37 +0000 (UTC) (envelope-from nork@FreeBSD.org) Received: from sakura.ninth-nine.com (sakura.ninth-nine.com [219.127.74.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B25B43C9E; Sat, 9 Dec 2006 19:38:30 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from nadesico.ninth-nine.com (nadesico.ninth-nine.com [219.127.74.122]) by sakura.ninth-nine.com (8.13.8/8.13.8/NinthNine) with SMTP id kB9JdYAK041283; Sun, 10 Dec 2006 04:39:35 +0900 (JST) (envelope-from nork@FreeBSD.org) Date: Sun, 10 Dec 2006 04:39:34 +0900 From: Norikatsu Shigemura To: lioux@FreeBSD.org Message-Id: <20061210043934.fb641d46.nork@FreeBSD.org> X-Mailer: Sylpheed version 2.3.0beta5 (GTK+ 2.10.6; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (sakura.ninth-nine.com [219.127.74.121]); Sun, 10 Dec 2006 04:39:35 +0900 (JST) Cc: ports@FreeBSD.org Subject: [ports/multimedia/libdv] Respect PTHREAD_LIBS X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Dec 2006 19:39:37 -0000 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 + +