2023-01-04 15:33:52 -04:00

55 lines
1.4 KiB
Makefile
Executable File

#!/usr/bin/make -f
# build-hardening flags
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
override_dh_auto_configure:
dh_auto_configure -- \
-DCUSTOM_DOCDIR=/usr/share/doc/minetest-data \
-DCUSTOM_LOCALEDIR=/usr/share/locale \
-DCUSTOM_SHAREDIR=/usr/share/games/minetest \
-DBUILD_SERVER=ON \
-DBUILD_CLIENT=ON \
-DRUN_IN_PLACE=OFF \
-DENABLE_CURL=ON \
-DENABLE_SOUND=ON \
-DENABLE_LUAJIT=ON \
-DENABLE_GETTEXT=ON \
-DENABLE_FREETYPE=ON \
-DENABLE_SYSTEM_GMP=ON \
-DENABLE_SYSTEM_JSONCPP=ON \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DENABLE_SPATIAL=ON \
-DENABLE_LEVELDB=ON \
-DENABLE_REDIS=ON \
-DENABLE_POSTGRESQL=ON \
-DJSON_INCLUDE_DIR=/usr/include/jsoncpp \
-DFREETYPE_INCLUDE_DIR_freetype2=/usr/include/freetype2 \
-DFREETYPE_INCLUDE_DIR_ft2build=/usr/include \
-DLEVELDB_INCLUDE_DIR=/usr/include/leveldb \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=RelWithDebInfo
override_dh_install:
find . -iname "license.txt" -delete
find debian/ -name "optimize_textures.sh" -delete
dh_install --list-missing
override_dh_auto_test:
# HOME=$$(mktemp -d) bin/minetest --run-unittests
# dh_auto_test
override_dh_clean:
dh_clean
$(RM) -r bin
$(RM) -rf irrlicht/doctemp/
$(RM) -rf scripts/doc/irrlicht/tut.txt
$(RM) -rf src/unittest/test_world/world.mt
$(RM) -rf games/minetest_game/
override_dh_builddeb:
dh_builddeb -- -Zgzip
%:
dh ${@}