Skip to content

Commit

Permalink
graphics/dia: Fix build with llvm16
Browse files Browse the repository at this point in the history
- Add LICENSE GPLv2
- Pet portclippy

Sponsored by:	The FreeBSD Foundation
  • Loading branch information
5u623l20 committed Jul 25, 2023
1 parent 46a0958 commit 28c954a
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions graphics/dia/Makefile
@@ -1,6 +1,6 @@
PORTNAME= dia
PORTVERSION= 0.97.3
PORTREVISION= 4
PORTREVISION= 5
PORTEPOCH= 1
CATEGORIES= graphics gnome
MASTER_SITES= GNOME
Expand All @@ -10,22 +10,28 @@ MAINTAINER= gnome@FreeBSD.org
COMMENT= Diagram creation program, similar to Visio
WWW= https://live.gnome.org/Dia

OPTIONS_DEFINE= DOCS
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING

LIB_DEPENDS= libpng.so:graphics/png

USES= cpe desktop-file-utils gettext gmake gnome libtool pathfix \
pkgconfig tar:xz
USES= cpe desktop-file-utils gettext gmake gnome libtool \
localbase:ldflags pathfix pkgconfig tar:xz
CPE_VENDOR= gnome
USE_GNOME= gtk20 gnomeprefix libxslt libartlgpl2 intlhack

GNU_CONFIGURE= yes
CONFIGURE_ENV= LOCALBASE="${LOCALBASE}"
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib `pkg-config --libs gmodule-2.0`
CONFIGURE_ARGS= --disable-gnome
CONFIGURE_ENV= LOCALBASE="${LOCALBASE}"

INSTALL_TARGET= install-strip
CPE_VENDOR= gnome

LDFLAGS+= `pkg-config --libs gmodule-2.0`

OPTIONS_DEFINE= DOCS

DOCS_BUILD_DEPENDS= ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:textproc/docbook-xsl

.include <bsd.port.options.mk>

#.if ${ARCH} == "i386"
Expand All @@ -37,6 +43,10 @@ CONFIGURE_ARGS+= --disable-libemf
PLIST_SUB+= WMF="@comment "
#.endif

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

post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
${WRKSRC}/lib/intl.c
Expand Down

0 comments on commit 28c954a

Please sign in to comment.