X-Git-Url: https://git.tokkee.org/?p=pkg-ncmpc.git;a=blobdiff_plain;f=debian%2Frules;h=042e001a95056c29fe03b619e3bc9ac79d91178e;hp=7399bd58eef8986c0ff3165c31538ed2e5abf0ae;hb=99e33724f588f462d16a26f20af2d80a8cf4af18;hpb=1bfd7106366ac60a77f3029865a57bc168abb414 diff --git a/debian/rules b/debian/rules index 7399bd5..042e001 100755 --- a/debian/rules +++ b/debian/rules @@ -11,17 +11,20 @@ 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 +CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS) +CFLAGS = $(shell dpkg-buildflags --get CFLAGS) +CFLAGS += -Wall +LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS) -ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) - CFLAGS += -O0 -else - CFLAGS += -O2 +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,19 +37,27 @@ 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 \ + CPPFLAGS="$(CPPFLAGS)" \ + CFLAGS="$(CFLAGS)" \ + LDFLAGS="$(LDFLAGS)" -build: build-stamp +build: build-arch build-indep +build-indep: +build-arch: build-stamp build-stamp: config.status dh_testdir $(MAKE) + test -z '$(CHECK)' || make $(CHECK) touch build-stamp @@ -62,7 +73,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/