Skip to content

Commit

Permalink
textproc/gdome2: Fix build with llvm16
Browse files Browse the repository at this point in the history
- Add LICENSE GPLv2 LGPL21
- Pet portclippy
- Refresh patches
- Adopt port

Sponsored by:	The FreeBSD Foundation
  • Loading branch information
5u623l20 committed Jun 24, 2023
1 parent 9819041 commit 8a4ae08
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 10 deletions.
28 changes: 21 additions & 7 deletions textproc/gdome2/Makefile
@@ -1,26 +1,40 @@
PORTNAME= gdome2
PORTVERSION= 0.8.1
PORTREVISION= 13
PORTREVISION= 14
CATEGORIES= textproc
MASTER_SITES= http://gdome2.cs.unibo.it/tarball/

MAINTAINER= ports@FreeBSD.org
MAINTAINER= bofh@FreeBSD.org
COMMENT= Gnome DOM Engine
WWW= http://gdome2.cs.unibo.it/

USES= gnome libtool pathfix pkgconfig
LICENSE= GPLv2 LGPL21
LICENSE_COMB= dual
LICENSE_FILE_GPLv2= ${WRKSRC}/COPYING
LICENSE_FILE_LGPL21= ${WRKSRC}/COPYING.LIB

USES= gnome libtool localbase pathfix pkgconfig
USE_GNOME= glib20 libxml2
USE_LDCONFIG= yes

GNU_CONFIGURE= yes
CONFIGURE_ENV= GLIB_CONFIG="${LOCALBASE}/bin/pkg-config glib-2.0"

INSTALL_TARGET= install-strip

CFLAGS+= -fcommon
CPPFLAGS+= -I${LOCALBASE}/include

DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
USE_LDCONFIG= yes
INSTALL_TARGET= install-strip

PORTDOCS= *

OPTIONS_DEFINE= DOCS

PORTDOCS= *
.include <bsd.port.options.mk>

.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
CFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif

post-patch:
@${FIND} ${WRKSRC} -type f -and \
Expand Down
Expand Up @@ -4,9 +4,9 @@ Patch by Harris Landgarten.

The patch was submitted on bug 448236, following the announcement on
https://mail.gnome.org/archives/xml/2012-August/msg00005.html
--- libgdome/gdomecore/gdome-xml-documentt.c.orig 2003-07-13 06:47:54.000000000 -0400
+++ libgdome/gdomecore/gdome-xml-documentt.c 2012-12-23 08:57:23.000000000 -0500
@@ -342,7 +342,11 @@
--- libgdome/gdomecore/gdome-xml-documentt.c.orig 2003-07-13 10:47:54 UTC
+++ libgdome/gdomecore/gdome-xml-documentt.c
@@ -342,7 +342,11 @@ gdome_xml_dt_internalSubset (GdomeDocumentType *self,
}
xmlNodeDumpOutput (out_buff, NULL, (xmlNode *)is, 0, 0, NULL);
xmlOutputBufferFlush(out_buff);
Expand Down

0 comments on commit 8a4ae08

Please sign in to comment.