aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2013-07-30 00:58:22 +0800
committermat <mat@FreeBSD.org>2013-07-30 00:58:22 +0800
commit057be78109ea1ac2111cd527bd1d24b84450ff2b (patch)
tree7987d38ba160eeef0160adb3811cd90fab4d96aa /textproc
parent106d3f7676d04ee7662d03316f39892d9bdb0bb6 (diff)
downloadfreebsd-ports-gnome-057be78109ea1ac2111cd527bd1d24b84450ff2b.tar.gz
freebsd-ports-gnome-057be78109ea1ac2111cd527bd1d24b84450ff2b.tar.zst
freebsd-ports-gnome-057be78109ea1ac2111cd527bd1d24b84450ff2b.zip
Make fetchable again.
Use new bsd.options.mk opts_CONFIGURE_foo.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/sablotron/Makefile43
1 files changed, 11 insertions, 32 deletions
diff --git a/textproc/sablotron/Makefile b/textproc/sablotron/Makefile
index 50f65a007287..c66e682e5dec 100644
--- a/textproc/sablotron/Makefile
+++ b/textproc/sablotron/Makefile
@@ -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@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 checking
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