~ubuntu-branches/debian/stretch/clalsadrv/stretch

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2010-03-17 20:29:56 UTC
  • mfrom: (2.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100317202956-jakg8sfos4sjl9dx
* Switch to debhelper 7.
* Replace dpatch with quilt, convert all patches to the quilt format.
* debian/control:
  - Set maintainer to Debian Multimedia Maintainers.
  - Add myself to the Uploaders list.
  - Set DM-Upload-Allowed to yes.
  - Bump Standards-Version.
  - Add missing  macro to libclalsadrv-dev Depends field.
  - Add Homepage field.
  - Adjust Section fields properly.
  - Replace deprecated Source-Version substvar with binary:Version.
  - Improve long description.
* debian/patches/01-makefile.patch:
  - Create /usr/include, otherwise doesn't install the headers.
  - Add comments as per DEP-3.
* Remove unnecessary .dirs files, update .install files.
* Update debian/copyright as per DEP-5 spec.
* debian/README.source: Document how to patch the sources.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
# -*- makefile -*-
3
 
# Sample debian/rules that uses debhelper.
4
 
# GNU copyright 1997 to 1999 by Joey Hess.
5
 
 
6
 
# Uncomment this to turn on verbose mode.
7
 
#export DH_VERBOSE=1
8
 
 
9
 
include /usr/share/dpatch/dpatch.make
10
 
 
11
 
CFLAGS = -Wall -g
12
 
 
13
 
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
14
 
        CFLAGS += -O0
15
 
else
16
 
        CFLAGS += -O2
17
 
endif
18
 
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
19
 
        INSTALL_PROGRAM += -s
20
 
endif
21
 
 
22
 
# shared library versions, option 1
23
 
version=2.0.5
24
 
major=2
25
 
# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
26
 
#version=`ls src/.libs/lib*.so.* | \
27
 
# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
28
 
#major=`ls src/.libs/lib*.so.* | \
29
 
# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
30
 
 
31
 
configure: configure-stamp
32
 
configure-stamp:
33
 
        dh_testdir
34
 
        # Add here commands to configure the package.
35
 
 
36
 
        touch configure-stamp
37
 
 
38
 
 
39
 
build: build-stamp
40
 
build-stamp: patch-stamp configure-stamp 
41
 
        dh_testdir
42
 
 
43
 
        # Add here commands to compile the package.
44
 
        $(MAKE)
45
 
 
46
 
        touch build-stamp
47
 
 
48
 
clean: unpatch
49
 
        dh_testdir
50
 
        dh_testroot
51
 
        rm -f build-stamp configure-stamp
52
 
 
53
 
        # Add here commands to clean up after the build process.
54
 
        -$(MAKE) clean
55
 
 
56
 
        dh_clean 
57
 
 
58
 
install: build
59
 
        dh_testdir
60
 
        dh_testroot
61
 
        dh_clean -k 
62
 
        dh_installdirs
63
 
 
64
 
        # Add here commands to install the package into debian/tmp
65
 
        mkdir -p $(CURDIR)/debian/tmp/usr/lib
66
 
        mkdir -p $(CURDIR)/debian/tmp/usr/include
67
 
        $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
68
 
 
69
 
 
70
 
# Build architecture-independent files here.
71
 
binary-indep: build install
72
 
# We have nothing to do by default.
73
 
 
74
 
# Build architecture-dependent files here.
75
 
binary-arch: build install
76
 
        dh_testdir
77
 
        dh_testroot
78
 
        dh_installchangelogs 
79
 
        dh_installdocs
80
 
        dh_installexamples
81
 
        dh_install --sourcedir=debian/tmp
82
 
#       dh_installmenu
83
 
#       dh_installdebconf       
84
 
#       dh_installlogrotate
85
 
#       dh_installemacsen
86
 
#       dh_installpam
87
 
#       dh_installmime
88
 
#       dh_installinit
89
 
#       dh_installcron
90
 
#       dh_installinfo
91
 
        dh_installman
92
 
        dh_link
93
 
        dh_strip
94
 
        dh_compress
95
 
        dh_fixperms
96
 
#       dh_perl
97
 
#       dh_python
98
 
        dh_makeshlibs
99
 
        dh_installdeb
100
 
        dh_shlibdeps
101
 
        dh_gencontrol
102
 
        dh_md5sums
103
 
        dh_builddeb
104
 
 
105
 
binary: binary-indep binary-arch
106
 
.PHONY: build clean binary-indep binary-arch binary install configure
 
2
 
 
3
%:
 
4
        dh --with quilt $@