~ubuntu-branches/ubuntu/lucid/read-edid/lucid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): LIU Qi
  • Date: 2009-05-11 13:14:40 UTC
  • mfrom: (3.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090511131440-1l046wvoparqqukn
Tags: 2.0.0-1
* new upstream version and maintainer (Closes: #502125)
  - the new version uses libx86 instead of LRMI (Closes: #495131)
  - libx86 will build on new kernel (Closes: #502126)
* add missing binary-indep in debian/rules (Closes: #395741)
* new version is modified to build on any architecture 
  - fixed the powerpc build problem (Closes: #406736)
  - fixed the rebuild problem (Closes: #433713)
* install the read-edid in usr/sbin directory (Closes: #231307)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# Debian package build rules file for read-edid
3
3
# Copyright (C) 2000 Progeny Linux Systems, Inc.
4
4
# Author: Branden Robinson <branden@progeny.com>
 
5
#         LIU Qi <liuqi82@gmail.com>
5
6
# Licensed under the GNU General Public License, version 2.  See the file
6
7
# /usr/share/common-licenses/GPL or <http://www.gnu.org/copyleft/gpl.txt>.
7
8
 
8
9
# Uncomment this to turn on verbose mode.
9
10
#export DH_VERBOSE=1
10
11
 
11
 
# This is the debhelper compatability version to use.
12
 
export DH_COMPAT=4
13
 
 
14
12
CFLAGS=-g -Wall
15
13
# Does DEB_BUILD_OPTIONS contain the "noopt" flag?
16
14
ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
25
23
build: configure build-stamp
26
24
build-stamp:
27
25
        dh_testdir
28
 
ifeq ($(DEB_HOST_ARCH),powerpc)
 
26
ifeq ($(DEB_HOST_ARCH),i386)
 
27
        $(MAKE)
 
28
else ifeq ($(DEB_HOST_ARCH),powerpc)
29
29
        $(MAKE) parse-edid
30
30
        cp -a get-edid-powerpc get-edid
31
31
else
32
 
        $(MAKE)
 
32
        $(MAKE) parse-edid
33
33
endif
34
34
        touch $@
35
35
 
36
36
configure: configure-stamp
37
37
configure-stamp:
38
38
        dh_testdir
 
39
        aclocal-1.10
 
40
        automake-1.10 --foreign --add-missing --copy
 
41
        autoconf
39
42
        ./configure
40
43
        touch $@
41
44
 
44
47
        dh_testroot
45
48
        rm -f build-stamp configure-stamp
46
49
        $(MAKE) distclean
 
50
        rm -f Makefile.in aclocal.m4 configure
47
51
        dh_clean
48
52
 
49
53
install: build configure
50
54
        dh_testdir
51
55
        dh_testroot
52
 
        dh_clean -k
 
56
        dh_prep
53
57
        dh_installdirs
54
58
        install -m 755 -d debian/read-edid/usr/bin
 
59
ifeq ($(DEB_HOST_ARCH),i386)
 
60
        install -m 755 -d debian/read-edid/usr/sbin
 
61
        install -m 755 get-edid debian/read-edid/usr/sbin
 
62
else ifeq ($(DEB_HOST_ARCH),powerpc)
55
63
        install -m 755 get-edid debian/read-edid/usr/bin
 
64
endif
56
65
        install -m 755 parse-edid debian/read-edid/usr/bin
57
66
        install -m 755 -d debian/read-edid/usr/share/man/man1
58
67
        install -m 644 get-edid.man debian/read-edid/usr/share/man/man1/get-edid.1
62
71
        dh_testdir
63
72
        dh_testroot
64
73
        dh_installdocs
65
 
        dh_undocumented
66
74
        dh_installchangelogs ChangeLog
67
75
        dh_strip
68
76
        dh_compress
73
81
        dh_md5sums
74
82
        dh_builddeb
75
83
 
76
 
binary: binary-arch
77
 
.PHONY: build clean install binary-arch binary
 
84
binary-indep:
 
85
 
 
86
binary: binary-arch binary-indep
 
87
.PHONY: build clean install binary-arch binary-indep binary