Skip to content

Commit

Permalink
editors/gmanedit: Fix build with llvm15
Browse files Browse the repository at this point in the history
- Add LICENSE GPLv2
- Utilize USES=localbase
- Pet portclippy
- Adpot port
  • Loading branch information
5u623l20 committed Jun 9, 2023
1 parent b9164f1 commit 4ba71b5
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions editors/gmanedit/Makefile
@@ -1,20 +1,34 @@
PORTNAME= gmanedit
PORTVERSION= 0.4.2
PORTREVISION= 8
PORTREVISION= 9
CATEGORIES= editors gnome
MASTER_SITES= SF/${PORTNAME}2/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
MAINTAINER= bofh@FreeBSD.org
COMMENT= GNOME manpages editor
WWW= https://sourceforge.net/projects/gmanedit2/

USES= gettext gmake gnome pathfix pkgconfig
USE_GNOME= gtk20
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING

LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2 \
libharfbuzz.so:print/harfbuzz

USES= gettext gmake gnome localbase:ldflags pathfix pkgconfig
USE_GNOME= cairo gdkpixbuf2 gtk20

GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lz

LDFLAGS+= -lz

.include <bsd.port.pre.mk>

.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
CFLAGS+= -Wno-error=int-conversion
.endif

post-patch:
@${REINPLACE_CMD} -e '/<argz\.h>/d' ${WRKSRC}/src/callbacks.c

.include <bsd.port.mk>
.include <bsd.port.post.mk>

0 comments on commit 4ba71b5

Please sign in to comment.