77
77
$(info DEB_BUILD_OPTIONS = $(DEB_BUILD_OPTIONS))
82
QUILT_PATCHES=debian/patches quilt push -a || test $$? = 2
85
configure: patch configure-stamp
82
override_dh_auto_configure:
83
chmod a+x configure configure_aux/*
92
84
./configure $(MEDIATOMB_CONFIG_OPTIONS)
95
build: configure build-stamp
101
clean: clean-patched unpatch
105
[ ! -f Makefile ] || $(MAKE) clean distclean
107
[ ! -f build-stamp ] || rm build-stamp
108
[ ! -f configure-stamp ] || rm configure-stamp
112
QUILT_PATCHES=debian/patches quilt pop -a -R || test $$? = 2
113
[ ! -f patch-stamp ] || rm patch-stamp
114
[ ! -d .pc ] || rm -rf .pc
120
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
86
override_dh_auto_install:
121
88
install -m 0755 -d $(CURDIR)/debian/tmp/var/lib/mediatomb
122
89
install -D -m 0644 debian/config.xml.dist \
123
90
$(CURDIR)/debian/tmp/etc/mediatomb/config.xml
125
# Build architecture-independent files here.
126
binary-indep: build install
129
dh_install -pmediatomb-daemon --sourcedir=debian/tmp
130
dh_install -pmediatomb
131
mv debian/mediatomb/usr/share/lintian/overrides/mediatomb.override \
132
debian/mediatomb/usr/share/lintian/overrides/mediatomb
133
dh_installchangelogs -i ChangeLog
135
dh_installinit -i --name=mediatomb \
91
install -D -m 0644 artwork/mediatomb.xpm \
92
$(CURDIR)/debian/tmp/usr/share/pixmaps/mediatomb.xpm
93
install -D -m 0644 debian/mediatomb.desktop \
94
$(CURDIR)/debian/tmp/usr/share/applications/mediatomb.desktop
97
dh_install --sourcedir=debian/tmp
99
override_dh_installchangelogs:
100
dh_installchangelogs ChangeLog
102
override_dh_installinit:
103
dh_installinit --name=mediatomb \
136
104
--update-rcd-params='defaults 98 02'
137
dh_installlogrotate -i --name=mediatomb
138
dh_link -pmediatomb /usr/share/mediatomb/web/icons/mt-icon120.png \
139
usr/share/pixmaps/mediatomb.png
149
# Build architecture-dependent files here.
150
binary-arch: build install
153
dh_install -a --sourcedir=debian/tmp
154
install -D -m 0644 debian/mediatomb-common.override \
155
$(CURDIR)/debian/mediatomb-common/usr/share/lintian/overrides/mediatomb-common
156
dh_installchangelogs -a ChangeLog
158
dh_installman -pmediatomb-common debian/tmp/usr/share/man/man1/mediatomb.1
159
dh_installexamples -a
160
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
106
override_dh_installlogrotate:
107
dh_installlogrotate --name=mediatomb
172
110
# Use external script
173
111
$(dir $_)mediatomb-get-orig-source
175
binary: binary-indep binary-arch
177
.PHONY: build clean binary-indep binary-arch binary install