~ubuntu-branches/ubuntu/utopic/inkscape/utopic-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Mattia Rizzolo
  • Date: 2014-01-14 15:44:58 UTC
  • mfrom: (2.5.10 sid)
  • Revision ID: package-import@ubuntu.com-20140114154458-3283675h9vtv5ccc
Tags: 0.48.4-3ubuntu1
* Merge from Debian unstable (LP: #1225013).  Remaining changes:
  - debian/control:
    + Set Ubuntu Developer as maintainer,
    + build-depend on dh-translation to handle Ubuntu translation,
    + build against liblcsm2 instead of liblcsm1,
    + demote pstoedit from Recommends to Suggests (because it's on universe),
    + add a ${python:Depends}.
  - debian/patches/0006_add_unity_quicklist_support.patch: add.
  - debian/patches/series: update.
  - debian/rules:
    + add dh_translation to handle Ubuntu translation,
    + add python2 to dh addon.
* Debian changes:
  - debian/control: make description more user-friendly (LP: #811634)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
# -*- makefile -*-
3
 
# debian/rules  for inkscape derived from a sample 
4
 
# provided by Joey Hess via dh_make.
5
 
 
6
 
# Uncomment this to turn on verbose mode.
7
 
#export DH_VERBOSE=1
8
 
 
9
 
# use quilt for patches:
10
 
include /usr/share/quilt/quilt.make
11
 
 
12
 
# These are used for cross-compiling and for saving the configure script
13
 
# from having to guess our platform (since we know it already)
14
 
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
15
 
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
16
 
DEB_HOST_ARCH       ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
17
 
 
18
 
CFLAGS = -Wall -g
19
 
CXXFLAGS = -Wall -g
 
2
 
 
3
DESTDIR = $(CURDIR)/debian/inkscape
 
4
 
 
5
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
 
6
 
 
7
CFLAGS += -Wall
 
8
CXXFLAGS += -Wall
20
9
 
21
10
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
22
11
  CFLAGS += -O0
25
14
  CFLAGS += -O2
26
15
  CXXFLAGS += -O2
27
16
endif
28
 
ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
29
 
  INSTALL_PROGRAM += -s
30
 
endif
 
17
 
31
18
ifneq (,$(findstring $(DEB_HOST_ARCH),alpha))
32
 
  ALPHA_CXXFLAGS=-mieee
33
 
  ALPHA_CFLAGS=-mieee
34
 
  ALPHA_LDFLAGS=-Wl,--no-relax
35
 
endif
36
 
 
37
 
# Handle DEB_BUILD_OPTIONS=parallel=N
38
 
, := ,
39
 
ifneq (,$(filter parallel=%,$(subst $(,), ,$(DEB_BUILD_OPTIONS))))
40
 
  NUMJOBS := $(patsubst parallel=%,%,$(filter parallel=%,$(subst $(,), ,$(DEB_BUILD_OPTIONS))))
41
 
  MAKEFLAGS += -j$(NUMJOBS)
42
 
endif
43
 
 
44
 
 
45
 
config.status: configure patch
46
 
        dh_testdir
47
 
 
48
 
        CXXFLAGS="$(CXXFLAGS) $(MIPS_CXXFLAGS) $(ALPHA_CXXFLAGS)" \
49
 
        CFLAGS="$(CFLAGS) $(MIPS_CFLAGS) $(ALPHA_CFLAGS)"         \
50
 
        LDFLAGS="$(LDFLAGS) $(ALPHA_LDFLAGS)"                     \
51
 
        ./configure --host=$(DEB_HOST_GNU_TYPE)                   \
52
 
                    --build=$(DEB_BUILD_GNU_TYPE)                 \
53
 
                    --prefix=/usr                                 \
54
 
                    --datadir=\$${prefix}/share                   \
55
 
                    --mandir=\$${prefix}/share/man                \
56
 
                    --infodir=\$${prefix}/share/info              \
57
 
                    --with-gnome-vfs                              \
58
 
                    --enable-lcms
59
 
 
60
 
 
61
 
build:  config.status
62
 
        dh_testdir
63
 
 
64
 
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
65
 
        cp -f /usr/share/misc/config.sub config.sub
66
 
endif
67
 
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
68
 
        cp -f /usr/share/misc/config.guess config.guess
69
 
endif
70
 
                
71
 
        # compile the package...
72
 
#       $(MAKE) -C src extension/plugin/libgimpgrad.la
73
 
        $(MAKE) CXXFLAGS="$(CXXFLAGS) $(MIPS_CXXFLAGS) $(ALPHA_CXXFLAGS)" \
74
 
                CFLAGS="$(CFLAGS) $(MIPS_CFLAGS) $(ALPHA_CFLAGS)"
75
 
 
76
 
clean: clean-patched unpatch
77
 
        chmod 644 $(CURDIR)/debian/patches/*
78
 
 
79
 
clean-patched:
80
 
        dh_testdir
81
 
        dh_testroot
82
 
        rm -f build-stamp 
83
 
 
84
 
        # cleaning up...
85
 
        [ ! -f Makefile ] || $(MAKE) distclean
86
 
        rm -f po/.intltool-merge-cache
87
 
 
88
 
        -rm -f po/*.gmo po/messages
89
 
        dh_clean 
90
 
 
91
 
install: build
92
 
        dh_testdir
93
 
        dh_testroot
94
 
        dh_prep
95
 
        dh_installdirs
96
 
 
97
 
        # Add here commands to install the package into debian/inkscape.
98
 
        $(MAKE) install DESTDIR=$(CURDIR)/debian/inkscape
99
 
        install -D -o root -g root -m 644 $(CURDIR)/debian/inkscape.bash $(CURDIR)/debian/inkscape/etc/bash_completion.d/inkscape
100
 
        chmod a+x $(CURDIR)/debian/inkscape/usr/share/inkscape/extensions/xaml2svg/
101
 
 
102
 
 
103
 
 
104
 
# Build architecture-independent files here.
105
 
binary-indep: build install
106
 
# We have nothing to do by default.
107
 
 
108
 
# Build architecture-dependent files here.
109
 
binary-arch: build install
110
 
        dh_testdir
111
 
        dh_testroot
112
 
        dh_installchangelogs ChangeLog
113
 
        dh_installdocs
114
 
#       dh_installexamples
 
19
  ALPHA_CFLAGS = -mieee
 
20
  ALPHA_CXXFLAGS = -mieee
 
21
  ALPHA_LDFLAGS = -Wl,--no-relax
 
22
endif
 
23
 
 
24
export DEB_CFLAGS_MAINT_APPEND := $(ALPHA_CFLAGS)
 
25
export DEB_CXXFLAGS_MAINT_APPEND := $(ALPHA_CXXFLAGS)
 
26
export DEB_LDFLAGS_MAINT_APPEND := $(ALPHA_LDLAGS)
 
27
 
 
28
%:
 
29
        dh $@ --buildsystem=autoconf --parallel --with autotools_dev,python2
 
30
 
 
31
override_dh_auto_configure:
 
32
        dh_auto_configure \
 
33
                --buildsystem=autoconf -- \
 
34
                --with-gnome-vfs \
 
35
                --enable-lcms
 
36
 
 
37
override_dh_install:
 
38
        install -D -o root -g root -m 644 $(CURDIR)/debian/inkscape.bash \
 
39
                $(DESTDIR)/etc/bash_completion.d/inkscape
115
40
        dh_install
116
41
        dh_translations
117
 
        dh_installmenu
118
 
#       dh_installdebconf
119
 
#       dh_installlogrotate
120
 
#       dh_installemacsen
121
 
#       dh_installpam
122
 
        dh_installmime
123
 
#       dh_installinit
124
 
#       dh_installcron
125
 
#       dh_installinfo
126
 
#       dh_installman
127
 
        dh_link
128
 
        dh_strip
129
 
        dh_compress
130
 
        dh_fixperms
131
 
#       dh_perl
132
 
#       dh_python
133
 
#       dh_makeshlibs
134
 
        dh_installdeb
135
 
        dh_shlibdeps
136
 
        dh_gencontrol
137
 
        dh_md5sums
138
 
        dh_builddeb
139
 
 
140
 
binary: binary-indep binary-arch
141
 
 
142
 
.PHONY: build clean binary-indep binary-arch binary install