X-Git-Url: https://git.tokkee.org/?p=pkg-ncmpc.git;a=blobdiff_plain;f=debian%2Frules;h=02ed5ce9431b4330975d5a5edf5051849edb593a;hp=40eb22713145d0dc0e3c99cd23c44e5451a8e96c;hb=21f2c616acb545e892a4ee55b19410d085da285a;hpb=c3b70b709c4fb6ae1419abbf23c7d9256cdbeecb diff --git a/debian/rules b/debian/rules index 40eb227..02ed5ce 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 @@ -19,9 +19,15 @@ else CFLAGS += -O2 endif +CHECK = check + +ifneq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) + CHECK = +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 \ --disable-mini \ @@ -34,12 +40,15 @@ config.status: configure --enable-help-screen \ --enable-mouse \ --enable-artist-screen \ + --enable-chat-screen \ --enable-search-screen \ --enable-song-screen \ --enable-key-screen \ --enable-lyrics-screen \ --enable-outputs-screen \ - --with-ncursesw + --enable-documentation \ + --with-ncursesw \ + CFLAGS="$(CFLAGS)" build: build-stamp @@ -47,6 +56,7 @@ build-stamp: config.status dh_testdir $(MAKE) + test -z '$(CHECK)' || make $(CHECK) touch build-stamp @@ -62,7 +72,7 @@ clean: install-indep: dh_testdir dh_testroot - dh_clean -k + dh_prep dh_installdirs -i mkdir -p debian/ncmpc-lyrics/usr/lib/ncmpc/lyrics/ @@ -71,7 +81,7 @@ install-indep: install-arch: build dh_testdir dh_testroot - dh_clean -k + dh_prep dh_installdirs -a $(MAKE) install DESTDIR=$(CURDIR)/debian/ncmpc