Date: Sat, 6 Oct 2007 05:42:56 GMT From: "Cory R. King" <coryking@mozimedia.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/116968: [patch] textproc/libxml2 with options Message-ID: <200710060542.l965guf8048666@www.freebsd.org> Resent-Message-ID: <200710060550.l965o1Gp094013@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 116968 >Category: ports >Synopsis: [patch] textproc/libxml2 with options >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sat Oct 06 05:50:00 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Cory R. King >Release: FreeBSD 6.2-RELEASE-p3 >Organization: Mozi Media Group, LLC. >Environment: >Description: I've added options support for libxml2. Please make sure to keep that whole WITHOUT_THREADS business. It gets tricky trying to undefined WITH_THREADS in tinderbuild. I usually leave it defined and this port is the only that, as advertised, breaks other ports when built with threads. >How-To-Repeat: >Fix: --- Makefile.old Fri Oct 5 22:10:56 2007 +++ Makefile Fri Oct 5 22:30:00 2007 @@ -13,7 +13,7 @@ PORTNAME= libxml2 PORTVERSION= 2.6.30 -PORTREVISION?= 0 +PORTREVISION?= 1 CATEGORIES?= textproc gnome MASTER_SITES= ftp://xmlsoft.org/libxml2/ \ ftp://fr.rpmfind.net/pub/libxml/ @@ -36,12 +36,25 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" +OPTIONS= THREADS "Threadsafe (WILL BREAK PORTS LIKE PHP!)" off \ + SCHEMA "Add XML schema support" on \ + XMLLINT_HIST "Add history support xmllint tool" off \ + THREAD_ALLOC "Per-thread memory (DEVELOPERS ONLY!)" off \ + MEM_DEBUG "Memory debugging (DEVELOPERS ONLY!)" off + .if !defined(MASTERDIR) MAN1= xml2-config.1 xmllint.1 xmlcatalog.1 MAN3= libxml.3 .endif -.if defined(WITH_THREADS) + +.include <bsd.port.pre.mk> + + +# We go through this !defined() because some people +# add WITH_THREADS to make.conf (or tinderbuild, where +# this is the only port that breaks with it enabled...) +.if defined(WITH_THREADS) && !defined(WITHOUT_THREADS) CONFIGURE_ARGS+= --with-threads .else CONFIGURE_ARGS+= --without-threads @@ -74,6 +87,6 @@ s|/etc/sgml/catalog|${LOCALBASE}/share/sgml/catalog|g' ${WRKSRC}/${f} .endfor -.include <bsd.port.mk> +.include <bsd.port.post.mk> .endif >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710060542.l965guf8048666>