X-Git-Url: https://git.tokkee.org/?p=pkg-ncmpc.git;a=blobdiff_plain;f=debian%2Frules;h=9296d1515d69ec46b4f40a81b853f5fca5c2c0e1;hp=b26cb650d03597615b626f11b41e0e0ced97eef9;hb=9e68beef95164a2b369186aa10f3f9342f85235f;hpb=0785719cac6d6f0c4e1f7431c4bb6feef5a9dd1f diff --git a/debian/rules b/debian/rules index b26cb65..9296d15 100755 --- a/debian/rules +++ b/debian/rules @@ -1,7 +1,7 @@ #!/usr/bin/make -f # debian/rules for ncmpc # -# Written by Sebastian Harl +# Written by Sebastian Harl # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 @@ -11,7 +11,7 @@ DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) -CFLAGS = -Wall -g -I/usr/include/ncursesw +CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 @@ -21,10 +21,26 @@ endif config.status: configure dh_testdir - CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) \ + ./configure --host=$(DEB_HOST_GNU_TYPE) \ --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr \ --mandir=\$${prefix}/share/man \ - --enable-search-screen --enable-artist-screen + --disable-mini \ + --enable-wide \ + --enable-multibyte \ + --enable-locale \ + --enable-nls \ + --enable-colors \ + --enable-lirc \ + --enable-help-screen \ + --enable-mouse \ + --enable-artist-screen \ + --enable-search-screen \ + --enable-song-screen \ + --enable-key-screen \ + --enable-lyrics-screen \ + --enable-outputs-screen \ + --with-ncursesw \ + CFLAGS="$(CFLAGS)" build: build-stamp @@ -42,27 +58,49 @@ clean: [ ! -f Makefile ] || $(MAKE) distclean - dh_clean + dh_clean -install: build +install-indep: dh_testdir dh_testroot - dh_clean -k + dh_prep + dh_installdirs -i + + mkdir -p debian/ncmpc-lyrics/usr/lib/ncmpc/lyrics/ + cp lyrics/* debian/ncmpc-lyrics/usr/lib/ncmpc/lyrics/ + +install-arch: build + dh_testdir + dh_testroot + dh_prep dh_installdirs -a $(MAKE) install DESTDIR=$(CURDIR)/debian/ncmpc - mkdir $(CURDIR)/debian/ncmpc/usr/share/doc/ncmpc/examples - mv $(CURDIR)/debian/ncmpc/usr/share/doc/ncmpc/*.sample \ - $(CURDIR)/debian/ncmpc/usr/share/doc/ncmpc/examples - mv $(CURDIR)/debian/ncmpc/usr/share/doc/ncmpc/ncmpc.lirc \ - $(CURDIR)/debian/ncmpc/usr/share/doc/ncmpc/examples - rm $(CURDIR)/debian/ncmpc/usr/share/doc/ncmpc/AUTHORS + rm -rf debian/ncmpc/usr/lib/ncmpc/lyrics/ + # fail if any of these directories is not empty + rmdir debian/ncmpc/usr/lib/ncmpc/ + rmdir debian/ncmpc/usr/lib/ -binary-indep: - # nothing to do here + mkdir debian/ncmpc/usr/share/doc/ncmpc/examples + mv debian/ncmpc/usr/share/doc/ncmpc/*.sample \ + debian/ncmpc/usr/share/doc/ncmpc/examples + mv debian/ncmpc/usr/share/doc/ncmpc/ncmpc.lirc \ + debian/ncmpc/usr/share/doc/ncmpc/examples + +binary-indep: install-indep + dh_testdir + dh_testroot + dh_installchangelogs -i + dh_installdocs -A -i NEWS README AUTHORS + dh_compress -i + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i -binary-arch: build install +binary-arch: build install-arch dh_testdir dh_testroot dh_installchangelogs -a @@ -79,5 +117,5 @@ binary-arch: build install dh_builddeb -a binary: binary-arch binary-indep -.PHONY: build clean binary-indep binary-arch binary install +.PHONY: build clean binary-indep binary-arch binary install-indep install-arch