diff options
Diffstat (limited to 'games-engines')
-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.xml | 3 |
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> |