Skip to content

Commit

Permalink
fix debian/rules to compile with correct -DPIONEER_DATA_DIR flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Longrin Wischnewski authored and Webster Sheets committed Feb 17, 2023
1 parent 092f419 commit d255332
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,10 @@
#export DH_VERBOSE=1

PIONEER_DATA_DIR = /usr/share/games/pioneer/data
CFLAGS = $(shell dpkg-buildflags --get CFLAGS)
CXXFLAGS = $(shell dpkg-buildflags --get CXXFLAGS)
CFLAGSMORE =
CXXFLAGSMORE =

%:
dh $@ --with autoreconf --parallel
dh $@

override_dh_auto_configure:
dh_auto_configure -- \
--with-external-liblua \
PIONEER_DATA_DIR="$(PIONEER_DATA_DIR)" \
CFLAGS="$(CFLAGS) $(CFLAGSMORE)" \
CXXFLAGS="$(CXXFLAGS) $(CXXFLAGSMORE)"

override_dh_auto_test:;
-DPIONEER_DATA_DIR="$(PIONEER_DATA_DIR)"

0 comments on commit d255332

Please sign in to comment.