games-fps/assaultcube: add debug USE flag

Signed-off-by: Duje Mihanović <duje.mihanovic@skole.hr>
This commit is contained in:
Duje Mihanović
2022-04-07 10:14:00 +02:00
parent 50e63d61ee
commit 94f0d4472f

View File

@@ -25,6 +25,7 @@ PATCHES=(
"${FILESDIR}/assaultcube-1.3.0.2-respect-ldflags.patch
${FILESDIR}/assaultcube-1.3.0.2-fix-checkinstall.patch" # a script which checks for required libs and certain parts of the game
)
IUSE="debug"
src_prepare() {
eapply ${PATCHES}
@@ -34,7 +35,11 @@ src_prepare() {
src_compile() {
cd "${S}/source/src"
emake
if use debug; then
DEBUGBUILD=1 emake
else
emake
fi
}
src_install() {