3
# debian/rules for inkscape derived from a sample
4
# provided by Joey Hess via dh_make.
6
# Uncomment this to turn on verbose mode.
9
# use quilt for patches:
10
include /usr/share/quilt/quilt.make
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)
3
DESTDIR = $(CURDIR)/debian/inkscape
5
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
21
10
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
28
ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
31
18
ifneq (,$(findstring $(DEB_HOST_ARCH),alpha))
34
ALPHA_LDFLAGS=-Wl,--no-relax
37
# Handle DEB_BUILD_OPTIONS=parallel=N
39
ifneq (,$(filter parallel=%,$(subst $(,), ,$(DEB_BUILD_OPTIONS))))
40
NUMJOBS := $(patsubst parallel=%,%,$(filter parallel=%,$(subst $(,), ,$(DEB_BUILD_OPTIONS))))
41
MAKEFLAGS += -j$(NUMJOBS)
45
config.status: configure patch
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) \
54
--datadir=\$${prefix}/share \
55
--mandir=\$${prefix}/share/man \
56
--infodir=\$${prefix}/share/info \
64
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
65
cp -f /usr/share/misc/config.sub config.sub
67
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
68
cp -f /usr/share/misc/config.guess config.guess
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)"
76
clean: clean-patched unpatch
77
chmod 644 $(CURDIR)/debian/patches/*
85
[ ! -f Makefile ] || $(MAKE) distclean
86
rm -f po/.intltool-merge-cache
88
-rm -f po/*.gmo po/messages
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/
104
# Build architecture-independent files here.
105
binary-indep: build install
106
# We have nothing to do by default.
108
# Build architecture-dependent files here.
109
binary-arch: build install
112
dh_installchangelogs ChangeLog
20
ALPHA_CXXFLAGS = -mieee
21
ALPHA_LDFLAGS = -Wl,--no-relax
24
export DEB_CFLAGS_MAINT_APPEND := $(ALPHA_CFLAGS)
25
export DEB_CXXFLAGS_MAINT_APPEND := $(ALPHA_CXXFLAGS)
26
export DEB_LDFLAGS_MAINT_APPEND := $(ALPHA_LDLAGS)
29
dh $@ --buildsystem=autoconf --parallel --with autotools_dev,python2
31
override_dh_auto_configure:
33
--buildsystem=autoconf -- \
38
install -D -o root -g root -m 644 $(CURDIR)/debian/inkscape.bash \
39
$(DESTDIR)/etc/bash_completion.d/inkscape
119
# dh_installlogrotate
140
binary: binary-indep binary-arch
142
.PHONY: build clean binary-indep binary-arch binary install