2
# Sample debian/rules that uses debhelper.
3
# GNU copyright 1997 to 1999 by Joey Hess.
5
# Uncomment this to turn on verbose mode.
8
# This is the debhelper compatibility version to use.
11
# These are used for cross-compiling and for saving the configure script
12
# from having to guess our platform (since we know it already)
13
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
14
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
16
objdir = $(CURDIR)/obj-$(DEB_BUILD_GNU_TYPE)
19
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
22
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
26
ifeq ($(DEB_BUILD_GNU_TYPE),i386-linux)
27
# Uncomment the following 2 lines to enable i686 optimziation
28
# You may want to tweak the settings to your likings
29
#export CFLAGS=-O3 -march=i686 -ffast-math -finline-functions
30
#export CXXFLAGS=-O3 -march=i686 -ffast-math -finline-functions
33
ifeq ($(DEB_BUILD_GNU_TYPE),alpha-linux)
34
export CFLAGS +=-O0 -mieee
35
export CXXFLAGS +=-O0 -mieee
38
ifeq ($(DEB_HOST_GNU_TYPE),sparc-linux)
39
export LIBSUFF += "--enable-libsuffix=none"
42
-include debian/debiandirs
44
# To be used with kde-style admin subdirectories if desired. debian/debiandirs is included in
46
debian/debiandirs: admin/debianrules
47
perl -w admin/debianrules echodirs > debian/debiandirs
49
configure: configure-stamp
52
# Add here commands to configure the package.
54
# run configure with build tree $(objdir)
55
touch configure.in && \
58
./configure $(LIBSUFF) --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) $(configkde)
63
build-stamp: configure-stamp
66
# Add here commands to compile the package.
70
# for i in debian/*.sgml; do \
71
# docbook-to-man $$i > `dirname $$i`/`basename $$i .sgml`.1 ;\
79
rm -f build-stamp configure-stamp
81
# Add here commands to clean up after the build process.
84
-test -r /usr/share/misc/config.sub && \
85
cp -f /usr/share/misc/config.sub config.sub
86
-test -r /usr/share/misc/config.guess && \
87
cp -f /usr/share/misc/config.guess config.guess
97
# Add here commands to install the package into debian/digikam
98
$(MAKE) install DESTDIR=$(CURDIR)/debian/digikam
3
cdbs_kde_enable_debug = --disable-debug
5
include /usr/share/cdbs/1/rules/debhelper.mk
6
#include /usr/share/cdbs/1/rules/simple-patchsys.mk
7
include /usr/share/cdbs/1/class/kde.mk
9
DEB_INSTALL_MANPAGES_digikam = debian/digikam.manpage debian/showfoto.manpage
99
12
install -D -o root -g root -m 0644 debian/lintian $(CURDIR)/debian/digikam/usr/share/lintian/overrides/digikam
100
install -D -o root -g root -m 0644 debian/digikam.desktop $(CURDIR)/debian/digikam/usr/share/applications/digikam.desktop
103
# Build architecture-independent files here.
104
binary-indep: build install
105
# We have nothing to do by default.
107
# Build architecture-dependent files here.
108
binary-arch: build install
113
dh_installdocs ChangeLog AUTHORS
116
# dh_installlogrotate
124
# dh_undocumented digikam.1
125
dh_installchangelogs ChangeLog
128
dh_compress -X.docbook -X.css -X-license -X.dcl -X.bz2
138
binary: binary-indep binary-arch
139
.PHONY: build clean binary-indep binary-arch binary install configure