1PORTNAME= gdome2 2PORTVERSION= 0.8.1 3PORTREVISION= 11 4CATEGORIES= textproc 5MASTER_SITES= http://gdome2.cs.unibo.it/tarball/ 6 7MAINTAINER= ports@MidnightBSD.org 8COMMENT= Gnome DOM Engine 9WWW= http://gdome2.cs.unibo.it/ 10 11LICENSE= gpl2 12 13USES= gnome libtool pathfix pkgconfig 14USE_GNOME= glib20 libxml2 15GNU_CONFIGURE= yes 16CONFIGURE_ENV= GLIB_CONFIG="${LOCALBASE}/bin/pkg-config glib-2.0" 17CFLAGS+= -fcommon 18CPPFLAGS+= -I${LOCALBASE}/include 19DOCSDIR= ${PREFIX}/share/doc/${DISTNAME} 20USE_LDCONFIG= yes 21INSTALL_TARGET= install-strip 22 23OPTIONS_DEFINE= DOCS 24 25PORTDOCS= * 26 27CFLAGS+= -Wno-error=incompatible-function-pointer-types 28post-patch: 29 @${FIND} ${WRKSRC} -type f -and \ 30 '(' -name '*.[ch]' -or -name '*.xml' ')' | \ 31 ${XARGS} ${REINPLACE_CMD} -e ' \ 32 s,<parser\.h>,<libxml/parser.h>,; \ 33 s,<hash\.h>,<libxml/hash.h>,; \ 34 s,<xmlmemory\.h>,<libxml/xmlmemory.h>,; \ 35 s,<tree\.h>,<libxml/tree.h>,; \ 36 s,<xmlerror\.h>,<libxml/xmlerror.h>,; \ 37 s,<xmlIO\.h>,<libxml/xmlIO.h>,; \ 38 s,<parserInternals\.h>,<libxml/parserInternals.h>,; \ 39 s,<entities\.h>,<libxml/entities.h>,' 40 41post-patch-DOCS-on: 42 @${REINPLACE_CMD} -E -e \ 43 's,^(HTML_DIR *= *).*,\1\$$(DESTDIR)$$(prefix)/share/doc,' \ 44 ${WRKSRC}/gtk-doc/Makefile.in 45 46post-patch-DOCS-off: 47 @${REINPLACE_CMD} '/gtk-doc/d' ${WRKSRC}/Makefile.in 48 49post-install: 50 ${STRIP_CMD} ${PREFIX}/lib/libgdome.so 51 52.include <bsd.port.mk> 53