~ubuntu-branches/ubuntu/maverick/libxxf86dga/maverick

« back to all changes in this revision

Viewing changes to debian/xsfbs/xsfbs.mk

  • Committer: Bazaar Package Importer
  • Author(s): Julien Cristau
  • Date: 2007-09-06 00:55:13 UTC
  • mfrom: (2.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20070906005513-70r02fv61321sax9
Tags: 2:1.0.2-1
* Remove outdated cvs information from the package descriptions, and add
  XS-Vcs-* headers.
* New upstream release.
  + require x11proto-xf86dga-dev >= 2.0.3 to fix a sign-extension bug on
    64bit systems
* Install the upstream changelog.
* Remove Branden and Fabio from Uploaders with their permission; add myself.
* Use ${binary:Version} instead of ${Source-Version}.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
# $Id: xsfbs.mk 2284 2006-06-06 18:02:50Z branden $
3
2
 
4
 
# Debian rules file for xorg-x11 source package
 
3
# Debian X Strike Force Build System (XSFBS): Make portion
5
4
 
6
5
# Copyright 1996 Stephen Early
7
6
# Copyright 1997 Mark Eichin
8
 
# Copyright 1998-2005 Branden Robinson
 
7
# Copyright 1998-2005, 2007 Branden Robinson
9
8
# Copyright 2005 David Nusinow
10
9
#
11
10
# Licensed under the GNU General Public License, version 2.  See the file
22
21
# Pass $(DH_OPTIONS) into the environment for debhelper's benefit.
23
22
export DH_OPTIONS
24
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/
 
28
 
25
29
# Set up parameters for the upstream build environment.
26
30
 
27
31
# Determine (source) package name from Debian changelog.
127
131
        if [ ! -e $(STAMP_DIR)/log ]; then \
128
132
                mkdir $(STAMP_DIR)/log; \
129
133
        fi; \
130
 
        if [ ! -e patches ]; then \
 
134
        if [ -e debian/patches ] && [ ! -e patches ]; then \
131
135
                ln -s debian/patches patches; \
132
136
        fi; \
133
137
        >$@
141
145
                echo "Couldn't find quilt. Please install it or add it to the build-depends for this package."; \
142
146
                exit 1; \
143
147
        fi; \
144
 
        if quilt next; then \
 
148
        if $(QUILT) next >/dev/null 2>&1; then \
145
149
          echo -n "Applying patches..."; \
146
 
          if quilt push -a -v >$(STAMP_DIR)/log/patch 2>&1; then \
 
150
          if $(QUILT) push -a -v >$(STAMP_DIR)/log/patch 2>&1; then \
 
151
            cat $(STAMP_DIR)/log/patch; \
147
152
            echo "successful."; \
148
153
          else \
 
154
            cat $(STAMP_DIR)/log/patch; \
149
155
            echo "failed! (check $(STAMP_DIR)/log/patch for details)"; \
150
156
            exit 1; \
151
157
          fi; \
160
166
        rm -f $(STAMP_DIR)/patch
161
167
        @echo -n "Unapplying patches..."; \
162
168
        if [ -e $(STAMP_DIR)/patches/applied-patches ]; then \
163
 
          if quilt pop -a -v >$(STAMP_DIR)/log/unpatch 2>&1; then \
 
169
          if $(QUILT) pop -a -v >$(STAMP_DIR)/log/unpatch 2>&1; then \
 
170
            cat $(STAMP_DIR)/log/unpatch; \
164
171
            echo "successful."; \
165
172
          else \
 
173
            cat $(STAMP_DIR)/log/unpatch; \
166
174
            echo "failed! (check $(STAMP_DIR)/log/unpatch for details)"; \
167
175
            exit 1; \
168
176
          fi; \
296
304
        @echo -n "Auditing patches..."; \
297
305
        >$(STAMP_DIR)/log/patch; \
298
306
        FUZZY=; \
299
 
        while [ -n "$$(quilt next)" ]; do \
300
 
          RESULT=$$(quilt push -v | tee -a $(STAMP_DIR)/log/patch | grep ^Hunk | sed 's/^Hunk.*\(succeeded\|FAILED\).*/\1/');\
 
307
        while [ -n "$$($(QUILT) next)" ]; do \
 
308
          RESULT=$$($(QUILT) push -v | tee -a $(STAMP_DIR)/log/patch | grep ^Hunk | sed 's/^Hunk.*\(succeeded\|FAILED\).*/\1/');\
301
309
          case "$$RESULT" in \
302
310
            succeeded) \
303
 
              echo "fuzzy patch: $$(quilt top)" \
304
 
                | tee -a $(STAMP_DIR)/log/$$(quilt top); \
 
311
              echo "fuzzy patch: $$($(QUILT) top)" \
 
312
                | tee -a $(STAMP_DIR)/log/$$($(QUILT) top); \
305
313
              FUZZY=yes; \
306
314
              ;; \
307
315
            FAILED) \
308
 
              echo "broken patch: $$(quilt next)" \
309
 
                | tee -a $(STAMP_DIR)/log/$$(quilt next); \
 
316
              echo "broken patch: $$($(QUILT) next)" \
 
317
                | tee -a $(STAMP_DIR)/log/$$($(QUILT) next); \
310
318
              exit 1; \
311
319
              ;; \
312
320
          esac; \
354
362
debian/shlibs.local:
355
363
        cat debian/*.shlibs >$@
356
364
 
 
365
SERVERMINVERS = $(shell cat /usr/share/xserver-xorg/serverminver 2>/dev/null)
 
366
VIDEOABI = $(shell cat /usr/share/xserver-xorg/videoabiver 2>/dev/null)
 
367
INPUTABI = $(shell cat /usr/share/xserver-xorg/inputabiver 2>/dev/null)
 
368
SERVER_DEPENDS = xserver-xorg-core (>= $(SERVERMINVERS))
 
369
VIDDRIVER_PROVIDES = xserver-xorg-video-$(VIDEOABI)
 
370
INPDRIVER_PROVIDES = xserver-xorg-input-$(INPUTABI)
 
371
ifeq ($(PACKAGE),)
 
372
PACKAGE=$(shell awk '/^Package:/ { print $$2; exit }' < debian/control)
 
373
endif
 
374
 
 
375
.PHONY: serverabi
 
376
serverabi:
 
377
ifeq ($(SERVERMINVERS),)
 
378
        @echo error: xserver-xorg-dev needs to be installed
 
379
        @exit 1
 
380
else
 
381
        echo "xserver:Depends=$(SERVER_DEPENDS)" >> debian/$(PACKAGE).substvars
 
382
        echo "xviddriver:Provides=$(VIDDRIVER_PROVIDES)" >> debian/$(PACKAGE).substvars
 
383
        echo "xinpdriver:Provides=$(INPDRIVER_PROVIDES)" >> debian/$(PACKAGE).substvars
 
384
endif
 
385
 
357
386
include debian/xsfbs/xsfbs-autoreconf.mk
358
387
 
359
388
# vim:set noet ai sts=8 sw=8 tw=0: