diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-02-02 19:15:26 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-02-02 19:15:26 +0200 |
commit | 4b0caea6389ab789ff3ae3a267b9002f8a21e8c3 (patch) | |
tree | 3611d8f4648ba6fc323d70e828bff31f7c8e50ee /packaging/debian/rules | |
parent | e7bd167a8c5bd872cc39d832ea41433c9cdb38cf (diff) | |
download | mv-4b0caea6389ab789ff3ae3a267b9002f8a21e8c3.tar.gz mv-4b0caea6389ab789ff3ae3a267b9002f8a21e8c3.tar.bz2 mv-4b0caea6389ab789ff3ae3a267b9002f8a21e8c3.tar.xz mv-4b0caea6389ab789ff3ae3a267b9002f8a21e8c3.zip |
Add debian packaging files from manaplus and delete outdated mana files.
Diffstat (limited to 'packaging/debian/rules')
-rwxr-xr-x[-rw-r--r--] | packaging/debian/rules | 33 |
1 files changed, 21 insertions, 12 deletions
diff --git a/packaging/debian/rules b/packaging/debian/rules index df2e08d6f..1ede8e2c4 100644..100755 --- a/packaging/debian/rules +++ b/packaging/debian/rules @@ -3,18 +3,18 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 -include /usr/share/dpatch/dpatch.make - # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) -config.status: patch +config.status: dh_testdir - CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) \ + CFLAGS="$(CFLAGS) -Wall" ./configure --host=$(DEB_HOST_GNU_TYPE) \ --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr \ - --datadir=/usr/share/games --bindir=/usr/games --mandir=/usr/share/man + --datadir=/usr/share/games --bindir=/usr/games --mandir=/usr/share/man \ + --with-server=eathena +# --without-opengl build: build-stamp build-stamp: config.status @@ -22,25 +22,29 @@ build-stamp: config.status $(MAKE) touch build-stamp -clean: unpatch +clean: dh_testdir dh_testroot rm -f build-stamp [ ! -f Makefile ] || $(MAKE) distclean + rm -f debian/manaplus.menu + rm -rf debian/tmp dh_clean install: build dh_testdir dh_testroot - dh_clean -k - dh_installdirs + dh_prep + $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp + cp manaplus.menu debian/ binary-indep: build install dh_testdir -i dh_testroot -i - dh_installchangelogs -i ChangeLog + dh_installchangelogs -i NEWS dh_installdocs -i dh_install -i + dh_link -i dh_compress -i dh_fixperms -i dh_installdeb -i @@ -51,12 +55,12 @@ binary-indep: build install binary-arch: build install dh_testdir -a dh_testroot -a - dh_installchangelogs -a ChangeLog + dh_installchangelogs -a NEWS dh_installdocs -a dh_install -a - dh_desktop -a dh_installmenu -a - dh_strip -a --dbg-package=mana-dbg + dh_installman -a + dh_strip -a --dbg-package=mana-4144-dbg dh_compress -a dh_fixperms -a dh_installdeb -a @@ -65,5 +69,10 @@ binary-arch: build install dh_md5sums -a dh_builddeb -a +get-orig-source: + @@dh_testdir + @@[ -d ../tarballs/. ]||mkdir -p ../tarballs + @@uscan --force-download --destdir ../tarballs + binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure |