~ubuntu-branches/ubuntu/saucy/xterm/saucy-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Ryan Kavanagh
  • Date: 2008-11-23 17:15:10 UTC
  • mfrom: (1.1.10 upstream) (11.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20081123171510-fdwvfr4ytnfvjwjl
Tags: 237-1ubuntu1
* Merge from Debian unstable. Remaining Ubuntu changes:
  - Enabled URL hilighting
  - Maintainer field
  - rm -rf for .pc patches
* Closes (LP: #301451)

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
        confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
26
26
endif
27
27
 
28
 
CFLAGS = -g -Wall -DDEF_POINTER_MODE=pNever
29
 
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
28
CFLAGS = -g -Wall
 
29
ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
30
30
        CFLAGS += -O0
31
31
else
32
32
        CFLAGS += -O2
33
33
endif
 
34
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
 
35
        NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
 
36
        MAKEFLAGS += -j$(NUMJOBS)
 
37
endif
34
38
 
35
39
# Figure out who's building this package.
36
40
BUILDER:=$(shell echo $${DEBEMAIL:-$${EMAIL:-$$(echo $$LOGNAME@$$(cat /etc/mailname 2> /dev/null))}})
47
51
DESKTOP_FLAGS = --vendor debian \
48
52
                --dir=$(DEBINSTALLTREE)/usr/share/applications
49
53
 
 
54
# by default, never hide the cursor
 
55
CFLAGS += -DDEF_POINTER_MODE=pNever
 
56
 
50
57
# Set up the $(STAMP_DIR) directory.
51
58
.PHONY: stampdir
52
59
stampdir: $(STAMP_DIR)/stampdir
68
75
.PHONY: patch
69
76
patch: $(STAMP_DIR)/patch
70
77
$(STAMP_DIR)/patch: $(STAMP_DIR)/prepare
71
 
        @echo -n "Applying patches... "
72
 
        @if $(QUILT) push -a -v > $(STAMP_DIR)/log/patch 2>&1; then \
73
 
          cat $(STAMP_DIR)/log/patch; \
74
 
          echo "successful."; \
 
78
        if $(QUILT) next >/dev/null 2>&1; then \
 
79
          echo -n "Applying patches... "; \
 
80
          if $(QUILT) push -a -v > $(STAMP_DIR)/log/patch 2>&1; then \
 
81
            cat $(STAMP_DIR)/log/patch; \
 
82
            echo "successful."; \
 
83
          else \
 
84
            cat $(STAMP_DIR)/log/patch; \
 
85
            echo "failed! (Check $(STAMP_DIR)/log/patch for details)"; \
 
86
            exit 1; \
 
87
          fi; \
75
88
        else \
76
 
          cat $(STAMP_DIR)/log/patch; \
77
 
          echo "failed! (Check $(STAMP_DIR)/log/patch for details)"; \
78
 
          exit 1; \
79
 
        fi; \
80
 
 
81
 
        touch $@
 
89
          echo "No patches to apply"; \
 
90
        fi
 
91
        >$@
82
92
 
83
93
# Revert all patches to the upstream source.
84
94
.PHONY: unpatch
96
106
          fi; \
97
107
        fi
98
108
 
99
 
configure: $(STAMP_DIR)/patch $(STAMP_DIR)/configure
 
109
.PHONY: configure
 
110
configure: $(STAMP_DIR)/configure
100
111
$(STAMP_DIR)/configure: $(STAMP_DIR)/patch
101
112
        dh_testdir
102
113
        [ -d obj-$(DEB_BUILD_GNU_TYPE) ] || mkdir obj-$(DEB_BUILD_GNU_TYPE)
103
114
        cd obj-$(DEB_BUILD_GNU_TYPE) && \
104
 
        ../configure --enable-logging --enable-wide-chars --enable-luit \
105
 
                --with-tty-group=tty --enable-256-color \
106
 
                --prefix=/usr --exec-prefix=/usr --mandir=/usr/share/man \
 
115
        ../configure \
 
116
                --prefix=/usr \
 
117
                --exec-prefix=/usr \
 
118
                --mandir=/usr/share/man \
107
119
                --with-app-defaults=/etc/X11/app-defaults \
108
 
                --disable-imake --enable-narrowproto --enable-exec-xterm \
109
 
                $(confflags) DESKTOP_FLAGS="$(DESKTOP_FLAGS)" \
110
 
                CFLAGS="$(CFLAGS)" LUIT=/usr/bin/luit
 
120
                --with-tty-group=tty \
 
121
                --enable-logging \
 
122
                --enable-wide-chars \
 
123
                --enable-luit \
 
124
                --enable-256-color \
 
125
                --disable-imake \
 
126
                --enable-narrowproto \
 
127
                --enable-exec-xterm \
 
128
                --enable-dabbrev \
 
129
                $(confflags) \
 
130
                DESKTOP_FLAGS="$(DESKTOP_FLAGS)" \
 
131
                CFLAGS="$(CFLAGS)" \
 
132
                LUIT=/usr/bin/luit
111
133
        touch $@
112
134
 
113
135
 
171
193
        chown :utmp debian/xterm/usr/bin/xterm
172
194
        chmod g+s debian/xterm/usr/bin/xterm
173
195
        dh_installdeb
174
 
        dh_makeshlibs
175
196
        dh_shlibdeps
176
197
        dh_gencontrol
177
198
        dh_md5sums