~gnu-psychosynth-team/psychosynth/maverick.packaging

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Aleksander Morgado
  • Date: 2011-03-16 14:09:27 UTC
  • Revision ID: aleksander@gnu.org-20110316140927-u43gacoljuyfjpi9
Switch to dpkg-source 3.0 (quilt) format

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
 
# This file was originally written by Joey Hess and Craig Small.
5
 
# As a special exception, when this file is copied by dh-make into a
6
 
# dh-make output file, you may use that output file without restriction.
7
 
# This special exception was added by Craig Small in version 0.37 of dh-make.
8
 
 
9
 
# Uncomment this to turn on verbose mode.
10
 
#export DH_VERBOSE=1
11
 
 
12
 
 
13
 
# These are used for cross-compiling and for saving the configure script
14
 
# from having to guess our platform (since we know it already)
15
 
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
16
 
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
17
 
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
18
 
CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
19
 
else
20
 
CROSS= --build $(DEB_BUILD_GNU_TYPE)
21
 
endif
22
 
 
23
 
 
24
 
 
25
 
 
26
 
# shared library versions, option 1
27
 
version=2.0.5
28
 
major=2
29
 
# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
30
 
#version=`ls src/.libs/lib*.so.* | \
31
 
# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
32
 
#major=`ls src/.libs/lib*.so.* | \
33
 
# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
34
 
 
35
 
config.status: configure
36
 
        dh_testdir
37
 
        # Add here commands to configure the package.
38
 
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
39
 
        cp -f /usr/share/misc/config.sub config.sub
40
 
endif
41
 
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
42
 
        cp -f /usr/share/misc/config.guess config.guess
43
 
endif
44
 
        ./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS=""
45
 
 
46
 
 
47
 
build: build-stamp
48
 
build-stamp:  config.status
49
 
        dh_testdir
50
 
 
51
 
        # Add here commands to compile the package.
52
 
        $(MAKE)
53
 
 
54
 
        touch $@
55
 
 
56
 
clean:
57
 
        dh_testdir
58
 
        dh_testroot
59
 
        rm -f build-stamp
60
 
 
61
 
        # Add here commands to clean up after the build process.
62
 
        [ ! -f Makefile ] || $(MAKE) distclean
63
 
        rm -f config.sub config.guess
64
 
 
65
 
        dh_clean
66
 
 
67
 
install: build
68
 
        dh_testdir
69
 
        dh_testroot
70
 
        dh_prep
71
 
        dh_installdirs
72
 
 
73
 
        # Add here commands to install the package into debian/tmp
74
 
        $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
75
 
 
76
 
 
77
 
# Build architecture-independent files here.
78
 
binary-indep: install
79
 
# We have nothing to do by default.
80
 
 
81
 
# Build architecture-dependent files here.
82
 
binary-arch: install
83
 
        dh_testdir
84
 
        dh_testroot
85
 
        dh_installchangelogs ChangeLog
86
 
        dh_installdocs
87
 
        dh_installexamples
88
 
        dh_install
89
 
        dh_installmenu
90
 
        dh_installman
91
 
        dh_link
92
 
        dh_strip
93
 
        dh_compress
94
 
        dh_fixperms
95
 
        dh_makeshlibs
96
 
        dh_installdeb
97
 
        dh_shlibdeps
98
 
        dh_gencontrol
99
 
        dh_md5sums
100
 
        dh_builddeb
101
 
 
102
 
binary: binary-indep binary-arch
103
 
.PHONY: build clean binary-indep binary-arch binary install
 
2
 
 
3
include /usr/share/cdbs/1/rules/debhelper.mk
 
4
include /usr/share/cdbs/1/class/autotools.mk
 
5
 
 
6
DEB_CONFIGURE_EXTRA_FLAGS :=
 
7
 
 
8
LDFLAGS += -Wl,--as-needed -Wl,-Bsymbolic
 
9
 
 
10
# Enforce tight shlibs dependencies
 
11
DEB_DH_MAKESHLIBS_ARGS_ALL := -V