File: rules

package info (click to toggle)
inkscape 0.48.5-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 117,392 kB
  • ctags: 50,110
  • sloc: cpp: 368,612; ansic: 28,176; python: 18,877; sh: 4,555; xml: 3,490; makefile: 1,750; perl: 1,534; ruby: 148
file content (40 lines) | stat: -rwxr-xr-x 909 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/make -f

DESTDIR = $(CURDIR)/debian/inkscape

DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)

CFLAGS += -Wall
CXXFLAGS += -Wall

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
  CFLAGS += -O0
  CXXFLAGS += -O0
else
  CFLAGS += -O2
  CXXFLAGS += -O2
endif

ifneq (,$(findstring $(DEB_HOST_ARCH),alpha))
  ALPHA_CFLAGS = -mieee
  ALPHA_CXXFLAGS = -mieee
  ALPHA_LDFLAGS = -Wl,--no-relax
endif

export DEB_CFLAGS_MAINT_APPEND := $(ALPHA_CFLAGS)
export DEB_CXXFLAGS_MAINT_APPEND := $(ALPHA_CXXFLAGS)
export DEB_LDFLAGS_MAINT_APPEND := $(ALPHA_LDFLAGS)

%:
	dh $@ --buildsystem=autoconf --parallel --with autoreconf,python2

override_dh_auto_configure:
	dh_auto_configure \
		--buildsystem=autoconf -- \
		--with-gnome-vfs \
		--enable-lcms

override_dh_install:
	install -D -o root -g root -m 644 $(CURDIR)/debian/inkscape.bash \
		$(DESTDIR)/etc/bash_completion.d/inkscape
	dh_install