1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
#!/usr/bin/make -f
#export DH_VERBOSE=1
export CCACHE_DIR=$(CURDIR)/ccache
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
MAX := 2
TYPE := RelWithDebInfo
ifeq (32,$(DEB_HOST_ARCH_BITS))
MAX := 1
TYPE := Release
export DEB_CFLAGS_MAINT_APPEND = -g1 -O2
export DEB_CXXFLAGS_MAINT_APPEND = -g1 -O2
endif
%:
dh $@ --max-parallel=$(MAX) --with python3
override_dh_auto_configure:
dh_auto_configure -- \
-DBUILD_DOCUMENTATION=off \
-DBUILD_TUTORIALS=off \
-DLIB_SUFFIX=/freeorion \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_BUILD_TYPE=$(TYPE)
#workaround for 'dpkg-shlibdeps: error: couldn't find library libGiGi*.so'
override_dh_shlibdeps:
LD_LIBRARY_PATH="$(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/freeorion:$(LD_LIBRARY_PATH)" dh_shlibdeps
override_dh_installchangelogs:
dh_installchangelogs ChangeLog.md
override_dh_install:
dh_install
find debian -type d -empty -delete -printf 'removed %p\n'
$(RM) -v debian/freeorion-data/usr/share/games/freeorion/default/LICENSE* \
debian/freeorion-data/usr/share/games/freeorion/default/COPYING \
debian/freeorion-data/usr/share/games/freeorion/default/data/fonts/LICENSE.*
override_dh_python3:
dh_python3 -pfreeorion-data /usr/share/games
|