git: 285cd0115827 - main - games/dxx-rebirth: enable LTO
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 17 Feb 2022 00:53:07 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=285cd01158271b30a1a4227dc812348f733aeb38
commit 285cd01158271b30a1a4227dc812348f733aeb38
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-02-17 00:50:37 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-02-17 00:50:37 +0000
games/dxx-rebirth: enable LTO
---
games/dxx-rebirth/Makefile | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/games/dxx-rebirth/Makefile b/games/dxx-rebirth/Makefile
index af445ec18ecf..d09740166a65 100644
--- a/games/dxx-rebirth/Makefile
+++ b/games/dxx-rebirth/Makefile
@@ -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