From owner-svn-ports-head@FreeBSD.ORG Tue Sep 25 14:55:50 2012 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 65174106566B; Tue, 25 Sep 2012 14:55:50 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 360E08FC0A; Tue, 25 Sep 2012 14:55:50 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q8PEtoo1048036; Tue, 25 Sep 2012 14:55:50 GMT (envelope-from swills@svn.freebsd.org) Received: (from swills@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q8PEtn61048033; Tue, 25 Sep 2012 14:55:49 GMT (envelope-from swills@svn.freebsd.org) Message-Id: <201209251455.q8PEtn61048033@svn.freebsd.org> From: Steve Wills Date: Tue, 25 Sep 2012 14:55:49 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r304839 - in head/textproc/libxml2: . files X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Sep 2012 14:55:50 -0000 Author: swills Date: Tue Sep 25 14:55:49 2012 New Revision: 304839 URL: http://svn.freebsd.org/changeset/ports/304839 Log: - Build with -pthread and include -pthread in xml2-config --libs output when threads are enabled PR: ports/171353 Discussed with: marcus, kwm Approved by: marcus Added: head/textproc/libxml2/files/extra-patch-threads (contents, props changed) Modified: head/textproc/libxml2/Makefile (contents, props changed) Modified: head/textproc/libxml2/Makefile ============================================================================== --- head/textproc/libxml2/Makefile Tue Sep 25 14:47:21 2012 (r304838) +++ head/textproc/libxml2/Makefile Tue Sep 25 14:55:49 2012 (r304839) @@ -13,7 +13,7 @@ PORTNAME= libxml2 PORTVERSION= 2.7.8 -PORTREVISION?= 3 +PORTREVISION?= 4 CATEGORIES?= textproc gnome MASTER_SITES= ftp://gd.tuwien.ac.at/pub/libxml/ \ ftp://xmlsoft.org/libxml2/ @@ -54,6 +54,11 @@ CONFIGURE_ARGS+= --without-schemas .if defined(WITHOUT_THREADS) CONFIGURE_ARGS+= --without-threads +.else +CPPFLAGS+= ${PTHREAD_CFLAGS} +CFLAGS+= ${PTHREAD_CFLAGS} +LDFLAGS+= ${PTHREAD_LIBS} +EXTRA_PATCHES+= ${FILESDIR}/extra-patch-threads .endif .if defined(WITH_MEM_DEBUG) @@ -69,6 +74,10 @@ CONFIGURE_ARGS+= --with-thread-alloc .endif post-patch: +.if !defined(WITHOUT_THREADS) + @${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|' \ + ${WRKSRC}/xml2-config.in +.endif .for d in . doc doc/devhelp doc/examples @${REINPLACE_CMD} -e '/^install-data-am:/ s|install-data-local||' \ ${WRKSRC}/${d}/Makefile.in Added: head/textproc/libxml2/files/extra-patch-threads ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/libxml2/files/extra-patch-threads Tue Sep 25 14:55:49 2012 (r304839) @@ -0,0 +1,11 @@ +--- xml2-config.in.orig 2012-09-08 17:23:54.000000000 +0000 ++++ xml2-config.in 2012-09-08 17:26:22.000000000 +0000 +@@ -91,7 +91,7 @@ + echo @XML_LIBDIR@ @XML_LIBS@ + fi + else +- echo @XML_LIBDIR@ @XML_LIBS@ @WIN32_EXTRA_LIBADD@ ++ echo @XML_LIBDIR@ @XML_LIBS@ @WIN32_EXTRA_LIBADD@ %%PTHREAD_LIBS%% + fi + ;; +