~ubuntu-branches/ubuntu/vivid/fribidi/vivid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Lior Kaplan
  • Date: 2006-09-16 10:37:10 UTC
  • mfrom: (3.1.3 edgy)
  • Revision ID: james.westby@ubuntu.com-20060916103710-1ktngzyx9azkujhl
Tags: 0.10.7-4
* Fix manual page name section (Closes: #368632)
* debian/control: Upgrade standards version to 3.7.2 (no changes needed).
* debian/copyright: Update Dov Grobgeld's contact address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
# Uncomment this to turn on verbose mode. 
10
10
#export DH_VERBOSE=1
11
11
 
12
 
# This is the debhelper compatability version to use.
13
 
export DH_COMPAT=3
14
 
 
15
12
# This has to be exported to make some magic below work.
16
13
export DH_OPTIONS
17
14
 
18
15
FRIBIDI_UDEB=libfribidi0-udeb
19
 
DEBVERSION=$(shell dpkg-parsechangelog | grep '^Version: ' | sed -e 's/^Version: //')
20
 
UDEBNAME=$(FRIBIDI_UDEB)_$(DEBVERSION)_$(shell dpkg --print-architecture).udeb
21
16
 
22
17
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
23
18
OBJS += xmalloc.o
24
 
STRIP= /bin/true
25
19
else
26
 
STRIPTOOL=strip
27
 
STRIP= $(STRIPTOOL) --remove-section=.note --remove-section=.comment
 
20
DEB_CFLAGS=-Os -fomit-frame-pointer
28
21
endif
29
22
 
 
23
configure: configure-stamp
 
24
configure-stamp:
 
25
        dh_testdir
 
26
        CFLAGS="${DEB_CFLAGS}" ./configure --prefix=/usr --disable-dependency-tracking
 
27
        touch configure-stamp
 
28
 
 
29
 
30
30
build: build-stamp
31
 
build-stamp:
 
31
build-stamp: configure-stamp
32
32
        dh_testdir
33
33
 
34
34
        $(MAKE)
40
40
        dh_testdir
41
41
        dh_testroot
42
42
        rm -f build-stamp configure-stamp
 
43
        rm -rf $(CURDIR)/debian/tmp
43
44
 
44
45
        -$(MAKE) clean
45
46
 
46
 
        dh_clean
 
47
        dh_clean config.log config.status
47
48
 
48
49
install: DH_OPTIONS=
49
50
install: build
52
53
        dh_clean -k
53
54
        dh_installdirs
54
55
 
55
 
        $(MAKE) install
 
56
        $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
56
57
 
57
58
# Build architecture-independent files here.
58
59
# Pass -i to all debhelper commands in this target to reduce clutter.
62
63
# Pass -a to all debhelper commands in this target to reduce clutter.
63
64
binary-arch: DH_OPTIONS=-a
64
65
binary-arch: build install
65
 
        # Need this version of debhelper for DH_OPTIONS to work.
66
66
        dh_testdir
67
67
        dh_testroot
68
68
 
69
69
        dh_movefiles
70
70
 
71
 
        dh_installdocs -a -N$(FRIBIDI_UDEB)
72
 
        dh_installman -a -N$(FRIBIDI_UDEB)
73
 
        dh_installchangelogs fribidi-0.10.4/ChangeLog -a -N$(FRIBIDI_UDEB)
 
71
        dh_installdocs -a
 
72
        dh_installman -a
 
73
        dh_installchangelogs ChangeLog -a
74
74
        mkdir -p debian/$(FRIBIDI_UDEB)/lib
75
75
        cp -a debian/libfribidi0/usr/lib/* debian/$(FRIBIDI_UDEB)/lib
76
 
        $(STRIP) debian/$(FRIBIDI_UDEB)/lib/libfribidi.so.0.0.0
77
 
        dh_strip
 
76
        dh_strip -a
78
77
        dh_link
79
78
        dh_compress
80
79
        dh_fixperms
81
 
        dh_makeshlibs -N$(FRIBIDI_UDEB)
82
 
        dh_shlibdeps -Xusr/bin/fribidi -N$(FRIBIDI_UDEB)
83
 
        dh_installdeb -N$(FRIBIDI_UDEB)
84
 
        dh_gencontrol -a -N$(FRIBIDI_UDEB)
85
 
        dh_md5sums -a -N$(FRIBIDI_UDEB)
86
 
        dh_builddeb -a -N$(FRIBIDI_UDEB)
87
 
        dh_gencontrol -p$(FRIBIDI_UDEB) -- -fdebian/files~
88
 
        dpkg-distaddfile $(UDEBNAME) debian-installer extra
89
 
        dh_builddeb $(FRIBIDI_UDEB) --filename=$(UDEBNAME)
 
80
        dh_makeshlibs -V --add-udeb="$(FRIBIDI_UDEB)"
 
81
        dh_shlibdeps -Xusr/bin/fribidi
 
82
        dh_installdeb
 
83
        dh_gencontrol
 
84
        dh_md5sums
 
85
        dh_builddeb
90
86
 
91
87
binary: binary-indep binary-arch
92
 
.PHONY: build clean binary-indep binary-arch binary install
 
88
.PHONY: build clean binary-indep binary-arch binary install configure