You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.3 KiB
31 lines
1.3 KiB
#!/usr/bin/make -f |
|
# -*- makefile -*- |
|
|
|
# Uncomment this to turn on verbose mode. |
|
export DH_VERBOSE=1 |
|
export COMPILE_FLAGS="-O0" |
|
|
|
#export DH_VERBOSE = 1 |
|
export DEB_BUILD_MAINT_OPTIONS = hardening=-all |
|
export DEB_CFLAGS_MAINT_APPEND = -Wno-error |
|
export DEB_LDFLAGS_MAINT_APPEND = -Wno-error |
|
|
|
|
|
%: |
|
dh $@ --buildsystem=cmake |
|
|
|
#override_dh_auto_clean: |
|
# dh_auto_clean |
|
#override_dh_auto_configure: |
|
# dh_auto_configure -O--buildsystem=cmake -- -DDESTDIR=/usr/games -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var |
|
|
|
override_dh_auto_install: |
|
mkdir -p debian/diablo-data/usr/share/games/diablo/ |
|
test -f "../diabdat.mpq" && cp ../diabdat.mpq debian/diablo-data/usr/share/games/diablo/ || true |
|
mkdir -p debian/diablo-data/usr/share/icons/hicolor/16x16/apps/ |
|
mkdir -p debian/diablo-data/usr/share/icons/hicolor/32x32/apps/ |
|
mkdir -p debian/diablo-data/usr/share/icons/hicolor/48x48/apps/ |
|
cp Packaging/resources/16.png debian/diablo-data/usr/share/icons/hicolor/16x16/apps/diablo.png |
|
cp Packaging/resources/Diablo_32.png debian/diablo-data/usr/share/icons/hicolor/32x32/apps/diablo.png |
|
cp Packaging/resources/Diablo_48.png debian/diablo-data/usr/share/icons/hicolor/48x48/apps/diablo.png |
|
dh_auto_install
|
|
|