ports/65908: Update port: libxml2
skv at FreeBSD.org
skv at FreeBSD.org
Fri Apr 23 09:40:02 UTC 2004
>Number: 65908
>Category: ports
>Synopsis: Update port: libxml2
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Apr 23 02:40:02 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator: Sergey Skvortsov
>Release: FreeBSD 4.10-STABLE i386
>Organization:
<Organization of PR author (multiple lines)>
>Environment:
<Relevant environment information (multiple lines)>
>Description:
Update port: libxml2
Add new option WITH_PYTHON (and remove macro WITHOUT_PYTHON).
>How-To-Repeat:
<Code/input/activities to reproduce the problem (multiple lines)>
>Fix:
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/textproc/libxml2/Makefile,v
retrieving revision 1.116
diff -u -r1.116 Makefile
--- Makefile 19 Apr 2004 06:57:35 -0000 1.116
+++ Makefile 23 Apr 2004 09:37:37 -0000
@@ -35,9 +35,12 @@
SCHEMA "Enable XML schema support" on \
MEM_DEBUG "Enable memory debugging (DEVELOPERS ONLY!)" off \
XMLLINT_HIST "Enable history for xmllint" off \
+ WITH_PYTHON "Enable Python support" off \
THREAD_ALLOC "Enable per-thread memory (DEVELOPERS ONLY!)" off
-.if !defined(WITHOUT_PYTHON)
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_PYTHON)
USE_PYTHON= yes
PLIST_SUB+= PYTHON:=""
CONFIGURE_ARGS+= --with-python=${LOCALBASE}
@@ -47,8 +50,6 @@
PKGNAMESUFFIX= -nopython
.endif
-.include <bsd.port.pre.mk>
-
.if defined(WITH_THREADS)
CONFIGURE_ARGS+= --with-threads
.else
@@ -71,18 +72,11 @@
CONFIGURE_ARGS+= --with-thread-alloc
.endif
-pre-everything::
- @${ECHO_MSG} ""
- @${ECHO_MSG} "libxml2 has the following additional tunables:"
- @${ECHO_MSG} ""
- @${ECHO_MSG} " WITHOUT_PYTHON=yes Turns off Python support"
- @${ECHO_MSG} ""
-
post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
${WRKSRC}/catalog.c ${WRKSRC}/xmlcatalog.c
-.if !defined(WITHOUT_PYTHON)
+.if defined(WITH_PYTHON)
post-install:
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py -l ${PYTHON_SITELIBDIR}
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py -l ${PYTHON_SITELIBDIR}
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list