Skip to content

Commit

Permalink
misc/hotkeys: Fix build with llvm16
Browse files Browse the repository at this point in the history
- Pet portclippy

Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
  • Loading branch information
5u623l20 committed Aug 5, 2023
1 parent 3f16fbd commit 54fb1ff
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions misc/hotkeys/Makefile
Expand Up @@ -14,21 +14,28 @@ 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

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
Expand All @@ -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

Expand Down

0 comments on commit 54fb1ff

Please sign in to comment.