2000-12-19 14:14:44 +01:00
|
|
|
# New ports collection makefile for: sablotron
|
|
|
|
# Date created: 13 Nov 2000
|
|
|
|
# Whom: Sergey Skvortsov <skv@protey.ru>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= Sablot
|
2003-02-27 13:20:51 +01:00
|
|
|
PORTVERSION= 0.97
|
2000-12-19 14:14:44 +01:00
|
|
|
CATEGORIES= textproc
|
2001-12-02 19:40:48 +01:00
|
|
|
MASTER_SITES= http://download-2.gingerall.cz/download/sablot/
|
2003-02-27 13:20:51 +01:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} sablot-docs-02.10.01${EXTRACT_SUFX}
|
2002-09-19 15:34:58 +02:00
|
|
|
|
2002-01-23 21:04:12 +01:00
|
|
|
MAINTAINER= skv@FreeBSD.org
|
2003-02-27 13:20:51 +01:00
|
|
|
COMMENT= XML toolkit implementing XSLT 1.0, XPath 1.0 and DOM Level2
|
2000-12-19 14:14:44 +01:00
|
|
|
|
2002-03-18 10:46:46 +01:00
|
|
|
LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv \
|
2002-09-17 23:02:01 +02:00
|
|
|
expat.4:${PORTSDIR}/textproc/expat2
|
2000-12-19 14:14:44 +01:00
|
|
|
|
2002-05-30 14:38:57 +02:00
|
|
|
# If WITH_DISABLE_META is defined sablot will not output the META html tag
|
|
|
|
#WITH_DISABLE_META= yes
|
|
|
|
|
|
|
|
# Define WITH_ICONV_TYPECAST to typecast the second parameter
|
|
|
|
# of iconv to char**
|
|
|
|
#WITH_ICONV_TYPECAST= yes
|
2001-12-02 19:40:48 +01:00
|
|
|
|
2002-05-30 14:38:57 +02:00
|
|
|
INSTALLS_SHLIB= yes
|
2001-12-02 19:40:48 +01:00
|
|
|
|
2003-02-27 13:20:51 +01:00
|
|
|
SHLIB_MAJOR= 70 # API changes counter
|
|
|
|
PLIST_SUB+= SHLIB_MAJOR="${SHLIB_MAJOR}"
|
2001-12-02 19:40:48 +01:00
|
|
|
|
2003-02-27 13:20:51 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS=-I${LOCALBASE}/include LIBTOOL=${LIBTOOL} \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -lstdc++"
|
2002-10-30 10:21:55 +01:00
|
|
|
USE_GMAKE= yes
|
2002-05-30 14:38:57 +02:00
|
|
|
USE_AUTOMAKE= yes
|
2001-12-02 19:40:48 +01:00
|
|
|
AUTOMAKE_ARGS= -a
|
2000-12-19 14:14:44 +01:00
|
|
|
USE_LIBTOOL= yes
|
|
|
|
|
2002-08-06 09:19:33 +02:00
|
|
|
MAN1= sabcmd.1
|
|
|
|
|
2002-05-30 14:38:57 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2002-09-08 15:47:27 +02:00
|
|
|
.if defined(WITHOUT_ADDING_META)
|
2002-05-30 14:38:57 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-adding-meta
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_ICONV_TYPECAST)
|
|
|
|
CONFIGURE_ARGS+= --enable-iconv-typecast
|
|
|
|
.endif
|
|
|
|
|
2002-09-08 15:47:27 +02:00
|
|
|
.if defined(WITHOUT_DOM)
|
|
|
|
CONFIGURE_ARGS+= --disable-dom
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITHOUT_DOCUMENT_ERRORS)
|
|
|
|
CONFIGURE_ARGS+= --disable-document-errors
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_CHECK_LEAKS)
|
|
|
|
CONFIGURE_ARGS+= --enable-check-leaks
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_DEBUGGER)
|
|
|
|
CONFIGURE_ARGS+= --enable-debugger
|
|
|
|
.endif
|
|
|
|
|
2002-05-30 14:38:57 +02:00
|
|
|
WRKSRCDOC= ${WRKDIR}/sablot-docs
|
|
|
|
DOCSLIST= README README_JS RELEASE
|
2003-02-27 13:20:51 +01:00
|
|
|
DOCSDIRLIST= jsdom-ref sablot sxp
|
2002-05-30 14:38:57 +02:00
|
|
|
|
2001-12-02 19:40:48 +01:00
|
|
|
pre-patch:
|
2002-05-30 14:38:57 +02:00
|
|
|
@${PERL} -pi -e \
|
|
|
|
's!(?<=libsablot_la_LDFLAGS = -version-info )(\d+):(\d+):\1!${SHLIB_MAJOR}:$$1:${SHLIB_MAJOR}!;' \
|
2001-12-02 19:40:48 +01:00
|
|
|
${WRKSRC}/src/engine/Makefile.am
|
2003-02-27 13:20:51 +01:00
|
|
|
@${ECHO} "SUBDIRS = man" > ${WRKSRC}/doc/Makefile.am
|
2001-11-06 13:40:46 +01:00
|
|
|
|
2002-05-30 14:38:57 +02:00
|
|
|
post-install:
|
|
|
|
.ifndef(NOPORTDOCS)
|
|
|
|
@${ECHO_MSG} "===> Installing documentation for ${PKGNAME}"
|
2003-02-27 13:20:51 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2002-05-30 14:38:57 +02:00
|
|
|
@${INSTALL_DATA} ${DOCSLIST:S!^!${WRKSRC}/!} ${DOCSDIR}
|
2003-02-27 13:20:51 +01:00
|
|
|
.for _DOCSDIR in ${DOCSDIRLIST}
|
|
|
|
@${MKDIR} ${DOCSDIR}/${_DOCSDIR}/apidocs
|
|
|
|
@${INSTALL_DATA} ${WRKSRCDOC}/${_DOCSDIR}/*.html ${DOCSDIR}/${_DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRCDOC}/${_DOCSDIR}/apidocs/*.css \
|
|
|
|
${WRKSRCDOC}/${_DOCSDIR}/apidocs/*.html \
|
|
|
|
${DOCSDIR}/${_DOCSDIR}/apidocs/
|
|
|
|
.endfor
|
2002-05-30 14:38:57 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|