~ubuntu-branches/ubuntu/quantal/unzip/quantal-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Logan Rosen
  • Date: 2012-08-05 21:31:45 UTC
  • mfrom: (2.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20120805213145-yjn97p3843amjk91
Tags: 6.0-7ubuntu1
* Merge from Debian unstable. Remaining change:
  - Added patch from archlinux which adds the -O option allowing a charset
  to be specified for the proper unzipping of non-latin and non-unicode
  filenames.
* Merge adds Multi-Arch: foreign. (LP: #1010450)

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
history = History.600
6
6
 
7
7
CC = gcc
8
 
CFLAGS = -g -Wall
 
8
export DEB_BUILD_MAINT_OPTIONS=hardening=-format
 
9
CFLAGS := `dpkg-buildflags --get CFLAGS` -Wall
 
10
LDFLAGS := `dpkg-buildflags --get LDFLAGS`
 
11
CPPFLAGS := `dpkg-buildflags --get CPPFLAGS`
9
12
DEFINES = -DACORN_FTYPE_NFS -DWILD_STOP_AT_DIR -DLARGE_FILE_SUPPORT \
10
13
 -DUNICODE_SUPPORT -DUNICODE_WCHAR -DUTF8_MAYBE_NATIVE -DNO_LCHMOD \
11
14
 -DDATE_FORMAT=DF_YMD -DUSE_BZIP2
19
22
  CC=$(DEB_HOST_GNU_TYPE)-gcc
20
23
endif
21
24
 
22
 
ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
23
 
  CFLAGS += -O2
24
 
endif
25
25
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
26
26
  STRIP = strip --remove-section=.comment --remove-section=.note
27
27
endif
28
28
 
29
29
build:
30
 
        $(MAKE) -f unix/Makefile LF2="" D_USE_BZ2=-DUSE_BZIP2 L_BZ2=-lbz2 \
31
 
                CC="$(CC)" CF="$(CFLAGS) -I. $(DEFINES)" unzips
 
30
        $(MAKE) -f unix/Makefile D_USE_BZ2=-DUSE_BZIP2 L_BZ2=-lbz2 \
 
31
                CC="$(CC)" LF2="$(LDFLAGS)" \
 
32
                CF="$(CFLAGS) $(CPPFLAGS) -I. $(DEFINES)" unzips
32
33
        touch build
33
34
 
34
35
clean:
57
58
        dpkg-gencontrol
58
59
        cd debian/tmp && \
59
60
                md5sum `find * -type f ! -regex "DEBIAN/.*"` > DEBIAN/md5sums
60
 
        chown -R root:root debian/tmp
 
61
        chown -R 0:0 debian/tmp
61
62
        chmod -R go=rX debian/tmp
62
63
        dpkg --build debian/tmp ..
63
64