File: rules

package info (click to toggle)
sylpheed-gtk1 1.0.6-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,588 kB
  • ctags: 5
  • sloc: makefile: 32; sh: 30
file content (47 lines) | stat: -rwxr-xr-x 1,512 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
#!/usr/bin/make -f

THISDIR := $(shell basename `pwd`)
VERSION := $(shell /bin/sh debian/get-version.sh)

DEB_TAR_SRCDIR := sylpheed-$(VERSION)

include /usr/share/cdbs/1/rules/tarball.mk
include /usr/share/cdbs/1/rules/buildcore.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk

DEB_INSTALL_MANPAGES_sylpheed-gtk1 := debian/sylpheed-gtk1.1
DEB_CONFIGURE_EXTRA_FLAGS := --enable-gpgme --enable-ssl \
	--enable-jpilot --enable-ldap --enable-jconv --enable-ipv6

clean::
	-rm debian/*.docs

binary-post-install/sylpheed-gtk1::
	# debian auto-generated stuff
	/bin/sh	debian/create-docs.sh $(DEB_TAR_SRCDIR)

	# images
	cp build-tree/$(DEB_TAR_SRCDIR)/sylpheed.png \
		debian/sylpheed-gtk1/usr/share/pixmaps/sylpheed-gtk1.png
	cp build-tree/$(DEB_TAR_SRCDIR)/sylpheed-64x64.png \
		debian/sylpheed-gtk1/usr/share/pixmaps/sylpheed-gtk1-64x64.png
	cp build-tree/$(DEB_TAR_SRCDIR)/sylpheed-128x128.png \
		debian/sylpheed-gtk1/usr/share/pixmaps/sylpheed-gtk1-128x128.png

	install -m 644 debian/sylpheed-gtk1-debian.xpm \
		`pwd`/debian/sylpheed-gtk1/usr/share/pixmaps
		
	install -m 644 build-tree/$(DEB_TAR_SRCDIR)/sylpheed.desktop \
		`pwd`/debian/sylpheed-gtk1/usr/share/gnome/apps/Internet/sylpheed-gtk1.desktop

	# binary
	mv debian/sylpheed-gtk1/usr/bin/sylpheed \
		debian/sylpheed-gtk1/usr/bin/sylpheed-gtk1

createorig:
	dh_testdir
	(cd .. && \
		tar zcpf sylpheed_$(VERSION).orig.tar.gz \
		$(THISDIR)/*.tar.gz)