# Created by: Akinori MUSHA aka knu # $FreeBSD$ PORTNAME= gdome2 PORTVERSION= 0.8.1 PORTREVISION= 10 CATEGORIES= textproc MASTER_SITES= http://gdome2.cs.unibo.it/tarball/ MAINTAINER= ports@FreeBSD.org COMMENT= Gnome DOM Engine USES= pathfix pkgconfig libtool USE_GNOME= glib20 libxml2 GNU_CONFIGURE= yes CONFIGURE_ENV= GLIB_CONFIG="${LOCALBASE}/bin/pkg-config glib-2.0" CPPFLAGS+= -I${LOCALBASE}/include DOCSDIR= ${PREFIX}/share/doc/${DISTNAME} USE_LDCONFIG= yes INSTALL_TARGET= install-strip OPTIONS_DEFINE= DOCS PORTDOCS= * .include post-patch: .if ${PORT_OPTIONS:MDOCS} @${REINPLACE_CMD} -E -e \ 's,^(HTML_DIR *= *).*,\1\$$(DESTDIR)$$(prefix)/share/doc,' \ ${WRKSRC}/gtk-doc/Makefile.in .else @${REINPLACE_CMD} '/gtk-doc/d' ${WRKSRC}/Makefile.in .endif @${FIND} ${WRKSRC} -type f -and \ '(' -name '*.[ch]' -or -name '*.xml' ')' | \ ${XARGS} ${REINPLACE_CMD} -e ' \ s,,,; \ s,,,; \ s,,,; \ s,,,; \ s,,,; \ s,,,; \ s,,,; \ s,,,' post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgdome.so .include