blob: 179c5c77b6a8e4df19fd50a66e32fa6995d0f6bb (
plain) (
blame)
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
|
#!/usr/bin/make -f
# Made with the aid of dh_make, by Craig Small
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
# Some lines taken from debmake, by Cristoph Lameter.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
ifeq ($(DEB_BUILD_GNU_SYSTEM),linux-gnu)
DEVS=x11,fb+s
else
DEVS=x11
endif
confargs := --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib \
--mandir=/usr/share/man \
--with-gc --with-ssl \
--with-migemo="migemo -t egrep /usr/share/migemo/migemo-dict" \
--with-editor=/usr/bin/sensible-editor \
--enable-gopher \
--enable-image=$(DEVS) \
--enable-m17n --enable-unicode --enable-nls
builddir := .
build: build-stamp
build-stamp:
dh_testdir
# Add here commands to compile the package.
-cp /usr/share/misc/config.guess .
-cp /usr/share/misc/config.sub .
cd $(builddir) && ./configure $(confargs)
cd $(builddir) && LC_ALL=C $(MAKE) OPTS="-Wall -g -DDEBIAN"
cd $(builddir)/po && LC_ALL=C $(MAKE) update-gmo
touch build-stamp
clean:
dh_testdir
dh_testroot
-test -f $(builddir)/Makefile && cd $(builddir) && $(MAKE) distclean
-rm -f $(builddir)/po/*.gmo
-rm -f
rm -f extract-stamp patch-stamp configure-stamp build-stamp install-stamp
dh_clean
install: install-stamp
install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/w3m.
cd $(builddir) && $(MAKE) install DESTDIR=`pwd`/debian/w3m
cd $(builddir)/Bonus && find . -type f -perm 0100 -print | \
while read i; \
do \
sed -e 's:/usr/local/bin/ruby:/usr/bin/ruby:' \
-e 's:/bin/env:/usr/bin/env:' \
$$i \
> `pwd`/../../../debian/w3m/usr/share/doc/w3m/examples/$$i ; \
done
install -m 644 debian/w3mconfig `pwd`/debian/w3m/etc/w3m/config
install -m 644 debian/mailcap `pwd`/debian/w3m/etc/w3m/mailcap
dh_movefiles --sourcedir=debian/w3m
touch install-stamp
# Build architecture-independent files here.
binary-indep: build-stamp install-stamp
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build-stamp install-stamp
# dh_testversion
dh_testdir -a
dh_testroot -a
dh_installdocs -a
cp -a $(builddir)/doc-jp/* `pwd`/debian/w3m/usr/share/doc/w3m/ja/
-rm -f `pwd`/debian/w3m/usr/share/doc/w3m/ja/README.kokb
-rm -rf `pwd`/debian/w3m/usr/share/doc/w3m/ja/CVS
cp debian/README.Debian.w3m-img `pwd`/debian/w3m-img/usr/share/doc/w3m-img/README.Debian
dh_installexamples -a
cd `pwd`/debian/w3m/usr/share/doc/w3m && \
mv ja/keymap.* ja/examples; mv ja/menu.* ja/examples
dh_installmenu
dh_installmime
dh_installemacsen
# dh_installinit
dh_installcron
dh_installman $(builddir)/doc/w3m.1
dh_installman debian/w3mman.1
install -m 644 $(builddir)/doc-jp/w3m.1 `pwd`/debian/w3m/usr/share/man/ja/man1/w3m.1
# dh_installchangelogs $(builddir)/doc/HISTORY
dh_installchangelogs -a $(builddir)/ChangeLog
dh_strip -a
dh_compress -a
dh_fixperms -a
chgrp video debian/w3m-img/usr/lib/w3m/w3mimgdisplay
chmod g+s debian/w3m-img/usr/lib/w3m/w3mimgdisplay
dh_installdeb -a
dh_shlibdeps -a
dh_gencontrol -a
# dh_makeshlibs -a
dh_md5sums -a
dh_builddeb -a
source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary
|