On Fri, Feb 18, 2005 at 09:49:14PM +0100, Kurt Roeckx wrote: > I attached a patch with gets the latest version from the > autotools-dev package at build time, so it should always have a > version for the arch it's building on.
I attached an updated patch which also sets the configure options correctly so it's actually build for the right arch. Kurt
--- debian/control.orig 2005-02-18 21:43:40.601154195 +0100 +++ debian/control 2005-02-18 21:43:49.404534671 +0100 @@ -3,7 +3,7 @@ Priority: optional Maintainer: Joop Stakenborg <[EMAIL PROTECTED]> Standards-Version: 3.6.1 -Build-Depends: debmake, libgtk1.2-dev, libncurses5-dev, libasound2-dev +Build-Depends: debmake, libgtk1.2-dev, libncurses5-dev, libasound2-dev, autotools-dev Package: hf Architecture: any --- debian/rules.orig 2005-02-19 18:30:43.788709123 +0100 +++ debian/rules 2005-02-19 18:32:28.628257084 +0100 @@ -4,15 +4,25 @@ package=hf +# FOR AUTOCONF 2.52 AND NEWER ONLY +ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) + confflags += --build $(DEB_HOST_GNU_TYPE) +else + confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) +endif + build: $(checkdir) - ./configure --prefix=/usr --enable-call=N0CALL + -rm config.sub config.guess + ln -s /usr/share/misc/config.sub config.sub + ln -s /usr/share/misc/config.guess config.guess + ./configure $(confflags) --prefix=/usr --enable-call=N0CALL $(MAKE) CFLAGS="-O2 -g -Wall" touch build clean: $(checkdir) - rm -f build config.log config.cache + rm -f build config.log config.cache config.sub config.guess -$(MAKE) distclean rm -f `find . -name "*~"` rm -rf debian/tmp debian/files* core debian/substvars