Skip to content

Commit

Permalink
x11/gromit: Fix build on llvm15
Browse files Browse the repository at this point in the history
- Add missing DEPENDS
- Refresh patches
  • Loading branch information
5u623l20 committed Jun 5, 2023
1 parent cf36cf6 commit 363f2d5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
14 changes: 12 additions & 2 deletions x11/gromit/Makefile
Expand Up @@ -11,14 +11,24 @@ WWW= https://www.home.unix-ag.org/simon/gromit/
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING

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

USES= gnome pkgconfig xorg
USE_GNOME= gtk20
USE_GNOME= cairo gdkpixbuf2 gtk20
USE_XORG= x11

DOCS= AUTHORS ChangeLog README

OPTIONS_DEFINE= DOCS

.include <bsd.port.pre.mk>

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

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gromit ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
Expand All @@ -28,4 +38,4 @@ do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>
.include <bsd.port.post.mk>
4 changes: 2 additions & 2 deletions x11/gromit/files/patch-Makefile
@@ -1,6 +1,6 @@
--- Makefile.orig
--- Makefile.orig 2004-10-13 22:04:27 UTC
+++ Makefile
@@ -7,4 +7,4 @@
@@ -7,4 +7,4 @@ propertywatch: propertywatch.c
gcc -o propertywatch propertywatch.c `gtk-config --libs --cflags`

gromit: gromit.c Makefile
Expand Down

0 comments on commit 363f2d5

Please sign in to comment.