diff options
author | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2023-08-05 17:08:19 +0200 |
---|---|---|
committer | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2023-08-05 20:01:11 +0200 |
commit | 54fb1ff1321110d95b825e7f2d15b3557d08574e (patch) | |
tree | f7d63bd00d2d70bc2814b58bad8ce00c51348394 /misc | |
parent | 3f16fbd4465771abd1151ead1d3f3777b5a260e3 (diff) | |
download | freebsd-ports-54fb1ff1321110d95b825e7f2d15b3557d08574e.zip |
misc/hotkeys: Fix build with llvm16
- Pet portclippy
Approved by: portmgr (blanket)
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'misc')
-rw-r--r-- | misc/hotkeys/Makefile | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/misc/hotkeys/Makefile b/misc/hotkeys/Makefile index b0556e23f46f..fe7a5b2c2193 100644 --- a/misc/hotkeys/Makefile +++ b/misc/hotkeys/Makefile @@ -14,14 +14,15 @@ LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libxml2.so:textproc/libxml2 -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} +USES= bdb gmake xorg +USE_XORG= x11 xft xkbfile xmu + +GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-db3-inc=${BDB_INCLUDE_DIR} \ --with-db3-lib=${BDB_LIB_DIR} \ --with-db-name=${BDB_LIB_NAME} -USES= bdb gmake xorg -USE_XORG= x11 xft xkbfile xmu -GNU_CONFIGURE= yes +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} OPTIONS_DEFINE= OSD OPTIONS_DEFAULT= OSD @@ -29,6 +30,12 @@ OPTIONS_DEFAULT= OSD OSD_LIB_DEPENDS= libxosd.so:misc/xosd OSD_CONFIGURE_WITH= xosd +.include <bsd.port.options.mk> + +.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 )) +CFLAGS+= -Wno-error=incompatible-function-pointer-types +.endif + post-extract: @${CP} ${PATCHDIR}/error.h ${WRKSRC}/src @${CP} ${PATCHDIR}/eliteduo.def ${WRKSRC}/def @@ -37,6 +44,7 @@ post-extract: post-patch: @${REINPLACE_CMD} -e '/^install-exec-am/s/install-sysconfDATA//' \ ${WRKSRC}/src/Makefile.in + post-configure: ${REINPLACE_CMD} -e 's,-lXinerama,-lXinerama `pkgconf --libs pangoxft`,g' ${WRKSRC}/src/Makefile |