svn commit: r323895 - head/textproc/sablotron
Mathieu Arnold
mat at FreeBSD.org
Mon Jul 29 16:58:23 UTC 2013
Author: mat
Date: Mon Jul 29 16:58:22 2013
New Revision: 323895
URL: http://svnweb.freebsd.org/changeset/ports/323895
Log:
Make fetchable again.
Use new bsd.options.mk opts_CONFIGURE_foo.
Modified:
head/textproc/sablotron/Makefile
Modified: head/textproc/sablotron/Makefile
==============================================================================
--- head/textproc/sablotron/Makefile Mon Jul 29 16:54:35 2013 (r323894)
+++ head/textproc/sablotron/Makefile Mon Jul 29 16:58:22 2013 (r323895)
@@ -4,7 +4,7 @@
PORTNAME= Sablot
PORTVERSION= 1.0.3
CATEGORIES= textproc
-MASTER_SITES= http://download-1.gingerall.cz/download/sablot/
+MASTER_SITES= SF/sablotron/sablotron-${PORTVERSION}
MAINTAINER= ports at FreeBSD.org
COMMENT= XML toolkit implementing XSLT 1.0, XPath 1.0 and DOM Level2
@@ -20,6 +20,15 @@ CHECK_LEAKS_DESC= Enable memory leaks ch
DEBUGGER_DESC= Enable debugger
OPTIONS_DEFAULT= DOM DOCUMENT_ERRORS
+DISABLE_META_CONFIGURE_ON= --disable-adding-meta
+ICONV_TYPECAST_CONFIGURE_ENABLE= iconv-typecast
+DOM_CONFIGURE_ENABLE= dom
+DOCUMENT_ERRORS_CONFIGURE_ENABLE= document-errors
+CHECK_LEAKS_CONFIGURE_ENABLE= check-leaks
+DEBUGGER_CONFIGURE_ENABLE= debugger
+DOCS_BUILD_DEPENDS= p5-XML-Parser>=0:${PORTSDIR}/textproc/p5-XML-Parser
+DOCS_CONFIGURE_ON= --with-html-dir=${DOCSDIR}
+
USE_LDCONFIG= yes
SHLIB_MAJOR= 70 # API changes counter
@@ -37,36 +46,6 @@ USE_PERL5_BUILD= yes
MAN1= sabcmd.1
.include <bsd.port.pre.mk>
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MDISABLE_META}
-CONFIGURE_ARGS+= --disable-adding-meta
-.endif
-
-.if ${PORT_OPTIONS:MICONV_TYPECAST}
-CONFIGURE_ARGS+= --enable-iconv-typecast
-.endif
-
-.if ! ${PORT_OPTIONS:MDOM}
-CONFIGURE_ARGS+= --disable-dom
-.endif
-
-.if ! ${PORT_OPTIONS:MDOCUMENT_ERRORS}
-CONFIGURE_ARGS+= --disable-document-errors
-.endif
-
-.if ${PORT_OPTIONS:MCHECK_LEAKS}
-CONFIGURE_ARGS+= --enable-check-leaks
-.endif
-
-.if ${PORT_OPTIONS:MDEBUGGER}
-CONFIGURE_ARGS+= --enable-debugger
-.endif
-
-.if ${PORT_OPTIONS:MDOCS}
-BUILD_DEPENDS+= p5-XML-Parser>=0:${PORTSDIR}/textproc/p5-XML-Parser
-CONFIGURE_ARGS+= --with-html-dir=${DOCSDIR}
-.endif
DOCSLIST= README README_JS RELEASE doc/misc/DEBUGGER doc/misc/NOTES
@@ -75,7 +54,7 @@ post-patch:
's!(?<=libsablot_la_LDFLAGS = -version-info )(\d+):(\d+):\1!${SHLIB_MAJOR}:$$1:${SHLIB_MAJOR}!;' \
${WRKSRC}/src/engine/Makefile.in
@${PERL} -pi -e 's!se // !! if $$. = 407' ${WRKSRC}/src/engine/base.h
-.if defined(NOPORTDOCS)
+.if ! ${PORT_OPTIONS:MDOCS}
@${PERL} -pi -e 's!(?<=SUBDIRS = )(.*)!man!' ${WRKSRC}/doc/Makefile.in
.endif
More information about the svn-ports-head
mailing list