#!/usr/bin/make -f ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) MAKEFLAGS += -j$(NUMJOBS) endif %: dh $@ --parallel override_dh_auto_build: $(MAKE) -C src $(MAKE) -C src pasl override_dh_auto_clean: [ ! -f src/Makefile ] || $(MAKE) -C src clean rm -f src/sandbox_client src/sandbox_server rm -f bin/* rm -rf bin rm -f sandboxgamemaker_glauncher src/launch src/launcher/pasl.o src/launcher/paslapp.o dh_auto_clean override_dh_install: dh_install -Xlicense ORIG_TARBALL=PlatinumArtsSandbox2.8.2Linux.tar.gz ORIG_DIRECTORY=PlatinumArtsSandbox2.8.2 ORIG_DFSG_NAME=sandboxgamemaker-2.8.2+dfsg ORIG_MD5=0586cc7ba87faa82b3ef4a451f56f492 MD5_TARBALL := `md5sum $(ORIG_TARBALL) | sed -e 's/ .*//'` get-orig-source: dh_testdir #rm -rf ../sandboxgamemaker_2.7+dfsg.orig.tar.gz $(ORIG_DFSG_NAME) test -f $(ORIG_TARBALL) || wget http://media1.gamefront.com/moddb/2014/04/21/PlatinumArtsSandbox2.8.2Linux.tar.gz;\ if ! [ "$(MD5_TARBALL)" != "$(ORIG_MD5)" ]; then \ echo "BAD MD5";\ false;\ else\ echo "MD5 MATCH";\ fi rm -rf $(ORIG_DIRECTORY);\ tar xzf $(ORIG_TARBALL);\ find $(ORIG_DIRECTORY)/ -iname "*.exe" -delete;\ find $(ORIG_DIRECTORY)/ -iname "*.bat" -delete;\ find $(ORIG_DIRECTORY)/ -iname "*.dll" -delete;\ find $(ORIG_DIRECTORY)/ -iname "*.lib" -delete;\ find $(ORIG_DIRECTORY)/ -iname "*.a" -delete;\ rm -f $(ORIG_DIRECTORY)/bin/*;\ rm -r $(ORIG_DIRECTORY)/src/enet;\ rm -r $(ORIG_DIRECTORY)/schoolversionbranch;\ rm -r $(ORIG_DIRECTORY)/src/xcode;\ rm -r $(ORIG_DIRECTORY)/src/windows;\ rm -r $(ORIG_DIRECTORY)/src/include;\ rm -r $(ORIG_DIRECTORY)/src/lib;\ rm -r $(ORIG_DIRECTORY)/packages;\ rm -r $(ORIG_DIRECTORY)/data;\ rm -f $(ORIG_DIRECTORY)/LICENSE.txt;\ rm -f $(ORIG_DIRECTORY)/_SandBoxLauncher;\ rm -f $(ORIG_DIRECTORY)/launcher;\ rm -f $(ORIG_DIRECTORY)/launcher_new;\ mv $(ORIG_DIRECTORY) $(ORIG_DFSG_NAME);\ GZIP=-9 tar cvfz ../sandboxgamemaker_2.8.2+dfsg.orig.tar.gz $(ORIG_DFSG_NAME);\ rm -rf $(ORIG_DFSG_NAME) $(ORIG_TARBALL) #.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure get-orig-source