x11/gromit: Fix build on llvm15

- Add missing DEPENDS
- Refresh patches
This commit is contained in:
Muhammad Moinur Rahman 2023-06-05 17:36:41 +02:00
parent cf36cf6227
commit 363f2d5681
2 changed files with 14 additions and 4 deletions

View file

@ -11,14 +11,24 @@ WWW= https://www.home.unix-ag.org/simon/gromit/
LICENSE= GPLv2+ LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2 \
libharfbuzz.so:print/harfbuzz
USES= gnome pkgconfig xorg USES= gnome pkgconfig xorg
USE_GNOME= gtk20 USE_GNOME= cairo gdkpixbuf2 gtk20
USE_XORG= x11 USE_XORG= x11
DOCS= AUTHORS ChangeLog README DOCS= AUTHORS ChangeLog README
OPTIONS_DEFINE= DOCS 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: do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gromit ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/gromit ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@ -28,4 +38,4 @@ do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR} @${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk> .include <bsd.port.post.mk>

View file

@ -1,6 +1,6 @@
--- Makefile.orig --- Makefile.orig 2004-10-13 22:04:27 UTC
+++ Makefile +++ Makefile
@@ -7,4 +7,4 @@ @@ -7,4 +7,4 @@ propertywatch: propertywatch.c
gcc -o propertywatch propertywatch.c `gtk-config --libs --cflags` gcc -o propertywatch propertywatch.c `gtk-config --libs --cflags`
gromit: gromit.c Makefile gromit: gromit.c Makefile