File: rules

package info (click to toggle)
f-spot 0.6.2-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 21,784 kB
  • ctags: 16,078
  • sloc: cs: 108,718; sh: 17,053; xml: 13,852; ansic: 3,187; makefile: 2,324
file content (64 lines) | stat: -rwxr-xr-x 1,894 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#! /usr/bin/make -f

include /usr/share/cli-common/cli.make

VERSION = $(shell dpkg-parsechangelog | grep ^Vers | cut -d\  -f2)
UPVERSION = $(shell echo $(VERSION) | sed 's,-.*,,' | sed 's,+dfsg.*,,') 

# robbed from tomboy
autoreconf: autoreconf-stamp
autoreconf-stamp:
	autoreconf -f -i -s -I $(CURDIR)/build/m4/shamrock -I $(CURDIR)/build/m4/shave
	# replace ltmain.sh with our patched one that supports --as-needed
	install --mode=755 $(CURDIR)/debian/ltmain-as-needed.sh $(CURDIR)/ltmain.sh
	touch $@

override_dh_clean:
	dh_clean
	rm -rf autoreconf-stamp configure config.sub config.guess ltmain.sh aclocal.m4 autom4te.cache/ po/*.pot
	find . -name "Makefile.in" -delete

override_dh_auto_configure: autoreconf-stamp
	dh_auto_configure -- \
		--disable-scrollkeeper \
		--with-gnome-screensaver=/usr \
		--with-gnome-screensaver-privlibexecdir=/usr/lib/gnome-screensaver/gnome-screensaver \
		--with-gnome-screensaver-themesdir=/usr/share/applications/screensavers \
		LDFLAGS="-Wl,-z,defs -Wl,-O1 -Wl,--as-needed" \
		MCS=/usr/bin/mono-csc

override_dh_auto_install:
	GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 dh_auto_install

override_dh_install:
	rm -f $(CURDIR)/debian/f-spot/usr/lib/f-spot/*.a \
	   $(CURDIR)/debian/f-spot/usr/lib/f-spot/*.la \
	   $(CURDIR)/debian/f-spot/usr/lib/f-spot/*.so
	dh_install
ifeq ($(shell dpkg-vendor --query vendor), Ubuntu)
	cd po; intltool-update --pot

	for d in $$(find debian/f-spot -type f \( -name "*.desktop" -o -name "*.directory" \) ); do \
	    sed -ri '/^(Name|GenericName|Comment|X-GNOME-FullName)\[/d' $$d; \
	    echo "X-Ubuntu-Gettext-Domain=f-spot" >> $$d; \
	done 
endif

# disable tests
override_dh_auto_test:

# libs aren't ours to ship
override_dh_makeclilibs:

# likewise
override_dh_makeshlibs:

get-orig-source:
	uscan \
		--force-download \
		--download-version $(UPVERSION) \
		--rename \
		--destdir .

%:
	dh --with quilt $@