X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=debian%2Frules;h=a6d19bf327526f370c46fe05fd63b3409d4b3d16;hb=0769cf77a953ca3d393b569e13a0c503f9fe7e44;hp=8a237ccdcbd2d82c4304abb5f3371b4343bee172;hpb=db00b4e39677b0dbf3ea6f7694e0eac7be4ef141;p=gzip diff --git a/debian/rules b/debian/rules index 8a237cc..a6d19bf 100755 --- a/debian/rules +++ b/debian/rules @@ -5,22 +5,24 @@ # Comment this to turn off debhelper verbose mode. export DH_VERBOSE=1 -# This is the debhelper compatibility version to use. -export DH_COMPAT=3 - DEB_BUILD_GNU_TYPE = $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) DEB_HOST_GNU_TYPE = $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) CONFARGS = --host=$(DEB_HOST_GNU_TYPE) endif +buildarch := $(shell dpkg-architecture -qDEB_BUILD_ARCH) +ifeq ($(buildarch),amd64) +CFLAGS="-g -O2 -Wall -DUNALIGNED_OK" +else CFLAGS="-g -O2 -Wall" +endif configure: configure-stamp configure-stamp: dh_testdir CFLAGS=$(CFLAGS) ./configure \ - --prefix=/usr \ + --prefix=/usr --bindir=/bin \ --infodir=`pwd`/debian/gzip/usr/share/info \ --mandir=`pwd`/debian/gzip/usr/share/man $(CONFARGS) touch configure-stamp @@ -44,9 +46,7 @@ install: build dh_clean -k dh_installdirs - make install prefix=debian/gzip/usr bindir=debian/gzip/bin \ - scriptdir=debian/gzip/usr/bin - ln debian/gzip/bin/gzip debian/gzip/bin/uncompress + make install prefix=debian/gzip/usr bindir=debian/gzip/bin install -o root -g root -m 0644 debian/gzip.lintian \ debian/gzip/usr/share/lintian/overrides/gzip @@ -57,8 +57,8 @@ binary-arch: build install dh_testroot dh_installdocs README* TODO dh_installmanpages - dh_installinfo gzip.info - dh_installchangelogs + dh_installinfo doc/gzip.info + dh_installchangelogs ChangeLog dh_link dh_strip dh_compress