#1000302 warzone2100: datadir patch is a poor solution

Package:
warzone2100
Source:
warzone2100
Description:
3D real time strategy game
Submitter:
Russell Coker
Date:
2021-11-21 05:33:04 UTC
Severity:
minor
#1000302#5
Date:
2021-11-21 05:25:11 UTC
From:
To:
The patch datadir.patch makes warzone2100 use /usr/share/games/warzone2100/
as the directory for data files (base.wz etc).  I expect that there is some
way of passing a parameter to cmake to get this result without a code change.

I've tried setting -DWZ_DATADIR=/usr/share/games/warzone2100/ but that
resulted in "cmake install" failing due to lack of write access to /usr.

This is probably an easy problem to solve for someone who is good at cmake.