~ubuntu-branches/ubuntu/lucid/xf86-input-evtouch/lucid-proposed

« back to all changes in this revision

Viewing changes to debian/xsfbs/xsfbs.mk

  • Committer: Bazaar Package Importer
  • Author(s): Bryce Harrington
  • Date: 2010-03-23 12:32:10 UTC
  • mfrom: (6.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100323123210-tbigv48eub4e2wwh
Tags: 0.8.8-2build1
* Fakesync with Debian unstable (different .orig.tar.gz)
  + Drop fdi files since we no longer use HAL.
  + Fix to calibration code was taken upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
# Pass $(DH_OPTIONS) into the environment for debhelper's benefit.
22
22
export DH_OPTIONS
23
23
 
24
 
# force quilt to not use ~/.quiltrc
25
 
QUILT = quilt --quiltrc /dev/null
26
 
# force QUILT_PATCHES to the default in case it is exported in the environment
27
 
QUILT_PATCHES = patches/
 
24
# force quilt to not use ~/.quiltrc and to use debian/patches
 
25
QUILT = QUILT_PATCHES=debian/patches quilt --quiltrc /dev/null
28
26
 
29
27
# Set up parameters for the upstream build environment.
30
28
 
46
44
BUILDER:=$(shell echo $${DEBEMAIL:-$${EMAIL:-$$(echo $$LOGNAME@$$(cat /etc/mailname 2>/dev/null))}})
47
45
 
48
46
# Find out if this is an official build; an official build has nothing but
49
 
# digits, dots, and/or the strings "woody" or "sarge" in the Debian part of the
 
47
# digits, dots, and/or the codename of a release in the Debian part of the
50
48
# version number.  Anything else indicates an unofficial build.
51
 
OFFICIAL_BUILD:=$(shell VERSION=$(SOURCE_VERSION); if ! expr "$$(echo $${VERSION\#\#*-} | sed 's/\(woody\|sarge\)//g')" : ".*[^0-9.].*" >/dev/null 2>&1; then echo yes; fi)
 
49
OFFICIAL_BUILD:=$(shell VERSION=$(SOURCE_VERSION); if ! expr "$$(echo $${VERSION\#\#*-} | sed 's/\(woody\|sarge\|etch\|lenny\)//g')" : ".*[^0-9.].*" >/dev/null 2>&1; then echo yes; fi)
52
50
 
53
51
# Set up parameters for the Debian build environment.
54
52
 
71
69
# $(STAMP_DIR) houses stamp files for complex targets.
72
70
STAMP_DIR:=stampdir
73
71
 
74
 
# $(SOURCE_DIR) houses one or more source trees.
75
 
SOURCE_DIR:=build-tree
76
 
 
77
 
# $(SOURCE_TREE) is the location of the source tree to be compiled.  If there
78
 
# is more than one, others are found using this name plus a suffix to indicate
79
 
# the purpose of the additional tree (e.g., $(SOURCE_TREE)-custom).  The
80
 
# "setup" target is responsible for creating such trees.
81
 
#SOURCE_TREE:=$(SOURCE_DIR)/xc
82
 
#FIXME We need to define this in our debian/rules file
83
 
 
84
72
# $(DEBTREEDIR) is where all install rules are told (via $(DESTDIR)) to place
85
73
# their files.
86
74
DEBTREEDIR:=$(CURDIR)/debian/tmp
121
109
# Set up the package build directory as quilt expects to find it.
122
110
.PHONY: prepare
123
111
stampdir_targets+=prepare
124
 
prepare: $(STAMP_DIR)/genscripts $(STAMP_DIR)/prepare $(STAMP_DIR)/patches $(STAMP_DIR)/log
125
 
$(STAMP_DIR)/prepare: $(STAMP_DIR)/stampdir
126
 
        if [ ! -e $(STAMP_DIR)/patches ]; then \
127
 
                mkdir $(STAMP_DIR)/patches; \
128
 
                ln -s $(STAMP_DIR)/patches .pc; \
129
 
                echo 2 >$(STAMP_DIR)/patches/.version; \
130
 
        fi; \
131
 
        if [ ! -e $(STAMP_DIR)/log ]; then \
132
 
                mkdir $(STAMP_DIR)/log; \
133
 
        fi; \
134
 
        if [ -e debian/patches ] && [ ! -e patches ]; then \
135
 
                ln -s debian/patches patches; \
136
 
        fi; \
 
112
prepare: $(STAMP_DIR)/prepare
 
113
$(STAMP_DIR)/prepare: $(STAMP_DIR)/log $(STAMP_DIR)/genscripts
137
114
        >$@
138
115
 
 
116
.PHONY: log
 
117
stampdir_targets+=log
 
118
log: $(STAMP_DIR)/log
 
119
$(STAMP_DIR)/log: $(STAMP_DIR)/stampdir
 
120
        mkdir -p $(STAMP_DIR)/log
 
121
 
139
122
# Apply all patches to the upstream source.
140
123
.PHONY: patch
141
124
stampdir_targets+=patch
162
145
 
163
146
# Revert all patches to the upstream source.
164
147
.PHONY: unpatch
165
 
unpatch:
 
148
unpatch: $(STAMP_DIR)/log
166
149
        rm -f $(STAMP_DIR)/patch
167
150
        @echo -n "Unapplying patches..."; \
168
 
        if [ -e $(STAMP_DIR)/patches/applied-patches ]; then \
 
151
        if $(QUILT) applied >/dev/null 2>/dev/null; then \
169
152
          if $(QUILT) pop -a -v >$(STAMP_DIR)/log/unpatch 2>&1; then \
170
153
            cat $(STAMP_DIR)/log/unpatch; \
171
154
            echo "successful."; \
192
175
.PHONY: xsfclean
193
176
xsfclean: cleanscripts unpatch
194
177
        dh_testdir
195
 
        rm -f .pc patches
 
178
        rm -rf .pc
196
179
        rm -rf $(STAMP_DIR) $(SOURCE_DIR)
197
180
        rm -rf imports
198
181
        dh_clean debian/shlibs.local \
297
280
endif
298
281
 
299
282
.PHONY: serverabi
300
 
serverabi:
 
283
serverabi: install
301
284
ifeq ($(SERVERMINVERS),)
302
285
        @echo error: xserver-xorg-dev needs to be installed
303
286
        @exit 1
307
290
        echo "xinpdriver:Provides=$(INPDRIVER_PROVIDES)" >> debian/$(PACKAGE).substvars
308
291
endif
309
292
 
310
 
include debian/xsfbs/xsfbs-autoreconf.mk
311
 
 
312
293
# vim:set noet ai sts=8 sw=8 tw=0: