diff --git a/games/dxx-rebirth/Makefile b/games/dxx-rebirth/Makefile index 2998713ea9c2..dfc6bb839161 100644 --- a/games/dxx-rebirth/Makefile +++ b/games/dxx-rebirth/Makefile @@ -1,48 +1,52 @@ PORTNAME= dxx-rebirth PORTVERSION= 20220929 DISTVERSIONSUFFIX= -src PORTREVISION= 1 CATEGORIES= games MASTER_SITES= https://www.dxx-rebirth.com/download/dxx/rebirth/ DISTNAME= ${PORTNAME}_${PORTVERSION}${DISTVERSIONSUFFIX} PATCH_SITES= https://github.com/dxx-rebirth/dxx-rebirth/commit/ PATCHFILES= fc4157f56f6acd5e63367974dd4249b88f3a2535.patch:-p1 \ 2dd538eb4d51835ad4c93b96edd374548b0eef67.patch:-p1 MAINTAINER= pkubaj@FreeBSD.org COMMENT= Open source port of Descent and Descent 2 WWW= https://www.dxx-rebirth.com/ LICENSE= GPLv3 PARALLAX LICENSE_COMB= multi LICENSE_NAME_PARALLAX= original Parallax license LICENSE_FILE_GPLv3= ${WRKSRC}/GPL-3.txt LICENSE_FILE_PARALLAX= ${WRKSRC}/COPYING.txt LICENSE_PERMS_PARALLAX= dist-mirror pkg-mirror auto-accept BUILD_DEPENDS= as:devel/binutils LIB_DEPENDS= libphysfs.so:devel/physfs \ libpng.so:graphics/png USES= compiler:c++17-lang gl localbase:ldflags pkgconfig scons sdl \ tar:xz USE_GL= gl glu USE_SDL= image2 mixer2 sdl2 MAKE_ARGS= ignore_unknown_variables=1 sdl2=1 PLIST_FILES= bin/d1x-rebirth \ bin/d2x-rebirth .include .if ${ARCH} != powerpc64 && ${ARCH} != riscv64 MAKE_ARGS+= lto=1 .endif +.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 )) +CPPFLAGS+= -Wno-error=unused-but-set-parameter -Wno-error=unused-but-set-variable +.endif + post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/d1x-rebirth \ ${STAGEDIR}${PREFIX}/bin/d2x-rebirth .include