From 1d57658378012bffc66973a55aa40c35a4e0a1f5 Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Sat, 24 Feb 2024 08:10:19 +0100 Subject: [PATCH] games/ldmud: Moved man to share/man - Fix build with llvm16 and later Approved by: portmgr (blanket) --- games/ldmud/Makefile | 9 ++++++++- games/ldmud/pkg-plist | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/games/ldmud/Makefile b/games/ldmud/Makefile index 13430dea30da2..5b4d3f2cae751 100644 --- a/games/ldmud/Makefile +++ b/games/ldmud/Makefile @@ -1,6 +1,6 @@ PORTNAME= ldmud PORTVERSION= 3.3.720 -PORTREVISION= 6 +PORTREVISION= 7 PORTEPOCH= 1 CATEGORIES= games net MASTER_SITES= http://www.bearnip.com/ftp/mud/ \ @@ -20,6 +20,7 @@ USES= iconv pkgconfig ssl USE_RC_SUBR= ldmud GNU_CONFIGURE= yes +GNU_CONFIGURE_MANPREFIX=${PREFIX}/share CONFIGURE_ARGS+=--libdir=${DATADIR} \ --bindir=${PREFIX}/sbin \ --enable-use-pcre \ @@ -47,6 +48,12 @@ PGSQL_CONFIGURE_ENABLE= use-pgsql SQLITE_USES= sqlite SQLITE_CONFIGURE_ENABLE=use-sqlite +.include + +.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 )) +CFLAGS+= -Wno-error=incompatible-function-pointer-types +.endif + post-install: @${MKDIR} ${STAGEDIR}${DATADIR} ${STAGEDIR}/var/log/${PORTNAME} \ ${STAGEDIR}/var/run/${PORTNAME} diff --git a/games/ldmud/pkg-plist b/games/ldmud/pkg-plist index 3eef5328d8cb3..fd6e6d00dccdc 100644 --- a/games/ldmud/pkg-plist +++ b/games/ldmud/pkg-plist @@ -1,5 +1,5 @@ sbin/ldmud -man/man1/ldmud.1.gz +share/man/man1/ldmud.1.gz @owner mud @group mud %%LPMUD%%%%DATADIR%%/ACCESS.ALLOW