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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
PKG=synaptic
DEBVER=$(shell dpkg-parsechangelog |sed -n -e '/^Version:/s/^Version: //p')
CONFVER=$(shell sed -n -e 's/AM_INIT_AUTOMAKE(synaptic, \(.*\))/\1/p' configure.in)
DEB_BUILD_PROG:=debuild --preserve-envvar PATH --preserve-envvar CCACHE_DIR -us -uc $(DEB_BUILD_PROG_OPTS)
# Rebuild configure.in to have the correct version from the change log
ifneq ($(DEBVER),$(CONFVER))
ifneq ($(DEBVER),)
.PHONY: configure.in
configure.in:
sed -ie 's/$(CONFVER)/$(DEBVER)/' $@
endif
else
configure.in:
endif
# make the package build on ubuntu and debian
DIST = $(shell lsb_release -i -s)
COMMON_FLAGS= --prefix=/usr \
--mandir=\$${prefix}/share/man \
--infodir=\$${prefix}/share/info \
--localstatedir=/var/lib/synaptic \
--sysconfdir=/etc --with-vte --with-pkg-hold \
--with-apt-authentication \
--enable-ept \
--with-nice-dpkg-status
CREATE_SUPPORTED_PIXMAP="true"
CONFIGURE_FLAGS = $(COMMON_FLAGS)
# special case for ubuntu
ifeq "$(DIST)" "Ubuntu"
CONFIGURE_FLAGS = $(COMMON_FLAGS) --with-launchpad-integration
CREATE_SUPPORTED_PIXMAP=uudecode debian/package-supported.png.uu -o $(CURDIR)/debian/synaptic/usr/share/icons/hicolor/16x16/actions/package-supported.png
endif
configure: configure.in
configure-stamp:
dh_testdir
./configure $(CONFIGURE_FLAGS)
touch $@
build: build-stamp
build-stamp: configure-stamp patch
dh_testdir
$(MAKE)
(cd po;intltool-update -p --verbose)
touch build-stamp
clean: clean1 unpatch
clean1:
dh_testdir
dh_testroot
rm -f configure-stamp build-stamp install-stamp
if [ -f Makefile ]; then $(MAKE) distclean; fi
dh_clean
install: install-stamp
install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs -psynaptic
$(MAKE) install DESTDIR=$(CURDIR)/debian/synaptic
$(CREATE_SUPPORTED_PIXMAP)
cp debian/synaptic_32x32.xpm $(CURDIR)/debian/synaptic/usr/share/synaptic/pixmaps
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do here
# Build architecture-dependent files here.
binary-arch: build install synaptic
synaptic: build
dh_testdir -psynaptic
dh_testroot -psynaptic
dh_installdocs -psynaptic
dh_scrollkeeper -psynaptic
dh_installman -psynaptic man/synaptic.es.8 man/synaptic.fr.8 man/synaptic.tr.8 man/synaptic.pt_BR.8
dh_installmenu -psynaptic
dh_installchangelogs ChangeLog -psynaptic
dh_icons -psynaptic
dh_link -psynaptic
dh_strip -psynaptic
dh_compress -psynaptic
dh_fixperms -psynaptic
dh_installdeb -psynaptic
dh_shlibdeps -psynaptic
dh_gencontrol -psynaptic
dh_md5sums -psynaptic
dh_builddeb -psynaptic
patch: patch-stamp
patch-stamp:
cp debian/patches/00list.$(DIST) debian/patches/00list
dpatch apply-all
touch patch-stamp
unpatch:
cp debian/patches/00list.$(DIST) debian/patches/00list
dpatch deapply-all
rm -rf patch-stamp debian/patched
#svn-build: configure.in
# rm -rf debian/svn-build
# mkdir -p debian/svn-build/synaptic-$(S_DEBVER)
# svn ls -R | xargs tar --no-recursion -c -v -f - | (cd debian/svn-build/synaptic-$(S_DEBVER) ; tar xf -)
# debian/svn-build/synaptic-$(S_DEBVER)/autogen.sh
# (cd debian/svn-build/synaptic-$(S_DEBVER); $(DEB_BUILD_PROG))
#arch-build: configure.in
# rm -rf debian/arch-build
# mkdir -p debian/arch-build/$(PKG)-$(DEBVER)
# tar -c --exclude=arch-build -f - `bzr inventory` | (cd debian/arch-build/$(PKG)-$(DEBVER);tar xf -)
# debian/arch-build/$(PKG)-$(DEBVER)/autogen.sh
# (cd debian/arch-build/$(PKG)-$(DEBVER) && $(DEB_BUILD_PROG))
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install patch unpatch
|