Index: debian_gen/gen.sh =================================================================== --- debian_gen/gen.sh (revision 28312) +++ debian_gen/gen.sh (revision 28313) @@ -108,7 +108,17 @@ done } +gen_rules() +{ + ( + cat rules.in + sed 's/^/\t\t/;s/$/ \\/;' < $auto/Configure.args + ) > $debian/rules +} + +### main ### + gen_control > $debian/control gen_installs +gen_rules - Index: debian_gen/rules.in =================================================================== --- debian_gen/rules.in (nonexistent) +++ debian_gen/rules.in (revision 28313) @@ -0,0 +1,30 @@ +#!/usr/bin/make -f + +DH_VERBOSE = 1 +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/buildflags.mk +DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) + +%: +ifeq (mipsel,$(findstring mipsel,$(DEB_HOST_ARCH))) + dh $@ --no-parallel +else ifeq (mips64el,$(findstring mips64el,$(DEB_HOST_ARCH))) + dh $@ --no-parallel +else + dh $@ +endif + +override_dh_auto_clean: + # only try to run dh_auto_clean if configure has been run + test -f Makefile.conf && dh_auto_clean || true + +override_dh_auto_configure: + ./configure \ + --LDFLAGS='$(LDFLAGS)' \ + --CFLAGS='$(CFLAGS) $(CPPFLAGS)' \ + \ + --symbols \ + --prefix=/usr \ + --confdir=/etc/pcb-rnd \ + --prefix/libs/script/fungw=/dev/null \ + \