1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00
freebsd-ports/textproc/gdome2/Makefile
Tobias Kortkamp 036a3a6b78 textproc/gdome2: Unbreak build with -fno-common
ld: error: duplicate symbol: gdome_xpath_xpnsresolv_vtab
>>> defined at gdome-xpath.c
>>>            gdome-xpath.lo:(gdome_xpath_xpnsresolv_vtab)
>>> defined at gdome-xpath-xpeval.c
>>>            gdome-xpath-xpeval.lo:(.rodata+0x0) in archive ../libgdome/xpath/.libs/libgdomexpath.al
ld: error: duplicate symbol: gdome_xpath_xpnsresolv_vtab
>>> defined at gdome-xpath.c
>>>            gdome-xpath.lo:(gdome_xpath_xpnsresolv_vtab)
>>> defined at gdome-xpath-xpnsresolv.c
>>>            gdome-xpath-xpnsresolv.lo:(.data.rel.ro+0x0) in archive ../libgdome/xpath/.libs/libgdomexpath.al
2020-07-10 16:18:56 +00:00

52 lines
1.3 KiB
Makefile

# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$
PORTNAME= gdome2
PORTVERSION= 0.8.1
PORTREVISION= 11
CATEGORIES= textproc
MASTER_SITES= http://gdome2.cs.unibo.it/tarball/
MAINTAINER= ports@FreeBSD.org
COMMENT= Gnome DOM Engine
USES= gnome libtool pathfix pkgconfig
USE_GNOME= glib20 libxml2
GNU_CONFIGURE= yes
CONFIGURE_ENV= GLIB_CONFIG="${LOCALBASE}/bin/pkg-config glib-2.0"
CFLAGS+= -fcommon
CPPFLAGS+= -I${LOCALBASE}/include
DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
USE_LDCONFIG= yes
INSTALL_TARGET= install-strip
OPTIONS_DEFINE= DOCS
PORTDOCS= *
post-patch:
@${FIND} ${WRKSRC} -type f -and \
'(' -name '*.[ch]' -or -name '*.xml' ')' | \
${XARGS} ${REINPLACE_CMD} -e ' \
s,<parser\.h>,<libxml/parser.h>,; \
s,<hash\.h>,<libxml/hash.h>,; \
s,<xmlmemory\.h>,<libxml/xmlmemory.h>,; \
s,<tree\.h>,<libxml/tree.h>,; \
s,<xmlerror\.h>,<libxml/xmlerror.h>,; \
s,<xmlIO\.h>,<libxml/xmlIO.h>,; \
s,<parserInternals\.h>,<libxml/parserInternals.h>,; \
s,<entities\.h>,<libxml/entities.h>,'
post-patch-DOCS-on:
@${REINPLACE_CMD} -E -e \
's,^(HTML_DIR *= *).*,\1\$$(DESTDIR)$$(prefix)/share/doc,' \
${WRKSRC}/gtk-doc/Makefile.in
post-patch-DOCS-off:
@${REINPLACE_CMD} '/gtk-doc/d' ${WRKSRC}/Makefile.in
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgdome.so
.include <bsd.port.mk>