summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2020-01-02 12:41:32 +0100
committerLars Wendler <polynomial-c@gentoo.org>2020-01-02 12:49:08 +0100
commitf8e41acbb5a2e605480755ca14abc9fdadebb392 (patch)
tree4b6618119c47592dcb345fcce342824a66b7185f /games-engines/devilutionx
parentdev-libs/qtkeychain: Version bump 0.10.0 (diff)
downloadgentoo-f8e41acbb5a2e605480755ca14abc9fdadebb392.tar.gz
gentoo-f8e41acbb5a2e605480755ca14abc9fdadebb392.tar.bz2
gentoo-f8e41acbb5a2e605480755ca14abc9fdadebb392.zip
games-engines/devilutionx: Revbump to handle build options better
Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'games-engines/devilutionx')
-rw-r--r--games-engines/devilutionx/devilutionx-1.0.0-r1.ebuild (renamed from games-engines/devilutionx/devilutionx-1.0.0.ebuild)13
-rw-r--r--games-engines/devilutionx/metadata.xml3
2 files changed, 14 insertions, 2 deletions
diff --git a/games-engines/devilutionx/devilutionx-1.0.0.ebuild b/games-engines/devilutionx/devilutionx-1.0.0-r1.ebuild
index 6d3bda7a2fb8..fb3f84ae0c42 100644
--- a/games-engines/devilutionx/devilutionx-1.0.0.ebuild
+++ b/games-engines/devilutionx/devilutionx-1.0.0-r1.ebuild
@@ -25,7 +25,7 @@ fi
LICENSE="public-domain"
SLOT="0"
-IUSE="debug"
+IUSE="debug lto"
RDEPEND="
dev-libs/libsodium
@@ -38,10 +38,19 @@ BDEPEND="
virtual/pkgconfig
"
+src_prepare() {
+ sed "/PROJECT_VERSION/s|@PROJECT_VERSION@|${PV}|" -i SourceS/config.h.in || die
+ cmake_src_prepare
+}
+
src_configure() {
local mycmakeargs=(
- -DBINARY_RELEASE=ON
+ -DASAN="OFF"
-DDEBUG="$(usex debug)"
+ -DDIST="ON"
+ -DFASTER="OFF"
+ -DLTO="$(usex lto)"
+ -DUBSAN="OFF"
)
cmake_src_configure
}
diff --git a/games-engines/devilutionx/metadata.xml b/games-engines/devilutionx/metadata.xml
index 81aca5b1e557..6f7209b5d36d 100644
--- a/games-engines/devilutionx/metadata.xml
+++ b/games-engines/devilutionx/metadata.xml
@@ -5,6 +5,9 @@
<email>polynomial-c@gentoo.org</email>
<name>Lars Wendler</name>
</maintainer>
+ <use>
+ <flag name="lto">Build with link time optimization enabled</flag>
+ </use>
<upstream>
<remote-id type="github">diasurgical/devilutionX</remote-id>
</upstream>