~ubuntu-branches/ubuntu/edgy/digikam/edgy-updates

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Achim Bohnet
  • Date: 2005-03-10 02:39:02 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050310023902-023nymfst5mg696c
Tags: 0.7.2-2
* debian/TODO: clean
* digikam manpage: better --detect-camera description

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
# Sample debian/rules that uses debhelper.
3
 
# GNU copyright 1997 to 1999 by Joey Hess.
4
 
 
5
 
# Uncomment this to turn on verbose mode.
6
 
#export DH_VERBOSE=1
7
 
 
8
 
# This is the debhelper compatibility version to use.
9
 
export DH_COMPAT=3
10
 
 
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)
15
 
 
16
 
objdir = $(CURDIR)/obj-$(DEB_BUILD_GNU_TYPE)
17
 
LIBSUFF = 
18
 
 
19
 
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
20
 
        CFLAGS += -g
21
 
endif
22
 
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
23
 
        INSTALL_PROGRAM += -s
24
 
endif
25
 
 
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
31
 
endif
32
 
 
33
 
ifeq ($(DEB_BUILD_GNU_TYPE),alpha-linux)
34
 
  export CFLAGS +=-O0 -mieee
35
 
  export CXXFLAGS +=-O0 -mieee
36
 
endif
37
 
 
38
 
ifeq ($(DEB_HOST_GNU_TYPE),sparc-linux)
39
 
  export LIBSUFF += "--enable-libsuffix=none"
40
 
endif
41
 
 
42
 
-include debian/debiandirs
43
 
 
44
 
# To be used with kde-style admin subdirectories if desired. debian/debiandirs is included in
45
 
# this template. 
46
 
debian/debiandirs: admin/debianrules
47
 
        perl -w admin/debianrules echodirs > debian/debiandirs
48
 
 
49
 
configure: configure-stamp
50
 
configure-stamp:
51
 
        dh_testdir
52
 
        # Add here commands to configure the package.
53
 
 
54
 
        # run configure with build tree $(objdir)
55
 
        touch configure.in && \
56
 
        touch aclocal.m4 && \
57
 
        touch configure
58
 
        ./configure $(LIBSUFF) --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) $(configkde) 
59
 
 
60
 
        touch configure-stamp
61
 
 
62
 
build: build-stamp
63
 
build-stamp: configure-stamp 
64
 
        dh_testdir
65
 
 
66
 
        # Add here commands to compile the package.
67
 
        $(MAKE)
68
 
 
69
 
        # generate manpages
70
 
#       for i in debian/*.sgml; do \
71
 
#               docbook-to-man $$i > `dirname $$i`/`basename $$i .sgml`.1 ;\
72
 
#       done
73
 
 
74
 
        touch build-stamp
75
 
 
76
 
clean: 
77
 
        dh_testdir
78
 
        dh_testroot
79
 
        rm -f build-stamp configure-stamp 
80
 
 
81
 
        # Add here commands to clean up after the build process.
82
 
        -$(MAKE) distclean
83
 
        -rm -f po/*.gmo
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
88
 
 
89
 
        dh_clean 
90
 
 
91
 
install: build
92
 
        dh_testdir
93
 
        dh_testroot
94
 
        dh_clean -k
95
 
        dh_installdirs
96
 
 
97
 
        # Add here commands to install the package into debian/digikam
98
 
        $(MAKE) install DESTDIR=$(CURDIR)/debian/digikam
 
2
 
 
3
cdbs_kde_enable_debug = --disable-debug
 
4
 
 
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
 
8
 
 
9
DEB_INSTALL_MANPAGES_digikam = debian/digikam.manpage debian/showfoto.manpage
 
10
 
 
11
install/digikam::
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
101
 
 
102
 
 
103
 
# Build architecture-independent files here.
104
 
binary-indep: build install
105
 
# We have nothing to do by default.
106
 
 
107
 
# Build architecture-dependent files here.
108
 
binary-arch: build install
109
 
        dh_testdir
110
 
        dh_testroot
111
 
 
112
 
#       dh_installdebconf       
113
 
        dh_installdocs ChangeLog AUTHORS
114
 
        dh_installexamples
115
 
        dh_installmenu
116
 
#       dh_installlogrotate
117
 
#       dh_installemacsen
118
 
#       dh_installpam
119
 
#       dh_installmime
120
 
#       dh_installinit
121
 
#       dh_installcron
122
 
        dh_installman
123
 
#       dh_installinfo
124
 
#       dh_undocumented digikam.1
125
 
        dh_installchangelogs ChangeLog
126
 
        dh_link
127
 
        dh_strip
128
 
        dh_compress -X.docbook -X.css -X-license -X.dcl -X.bz2
129
 
        dh_fixperms
130
 
        dh_makeshlibs
131
 
        dh_installdeb
132
 
#       dh_perl
133
 
        dh_shlibdeps
134
 
        dh_gencontrol
135
 
        dh_md5sums
136
 
        dh_builddeb
137
 
 
138
 
binary: binary-indep binary-arch
139
 
.PHONY: build clean binary-indep binary-arch binary install configure