games/dxx-rebirth: enable LTO

This commit is contained in:
Piotr Kubaj 2022-02-17 00:50:37 +00:00
commit 285cd01158

View file

@ -1,5 +1,6 @@
PORTNAME= dxx-rebirth
PORTVERSION= 20220121
PORTREVISION= 1
DISTVERSIONSUFFIX= -src
CATEGORIES= games
MASTER_SITES= https://www.dxx-rebirth.com/download/dxx/rebirth/
@ -29,6 +30,12 @@ MAKE_ARGS= ignore_unknown_variables=1 sdl2=1
PLIST_FILES= bin/d1x-rebirth \
bin/d2x-rebirth
.include <bsd.port.options.mk>
.if ${ARCH} != powerpc64 && ${ARCH} != riscv64
MAKE_ARGS+= lto=1
.endif
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/d1x-rebirth \
${STAGEDIR}${PREFIX}/bin/d2x-rebirth