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
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
confflags := \
--libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
--libexecdir=/usr/lib/$(DEB_HOST_MULTIARCH)/uim \
--with-libgcroots=installed \
--disable-rpath \
--enable-static \
--enable-shared \
$(NULL)
confflags += \
--with-fep \
--with-anthy \
--with-anthy-utf8 \
--with-canna \
--with-m17nlib \
--with-x \
--with-gtk \
--with-gtk3 \
--with-qt4 \
--with-qt4-immodule \
--with-expat \
--enable-dict \
--disable-gnome-applet \
--enable-gnome3-applet \
--enable-kde4-applet \
$(NULL)
confflags += $(shell dpkg-buildflags --export=configure)
ifneq (,$(filter $(DEB_HOST_ARCH), ia64 s390))
confflags += UIM_SCM_CFLAGS=-fno-strict-aliasing
endif
%:
dh $@ --with autotools_dev
override_dh_auto_configure:
for i in emacs/uim-version.el uim.desktop; do \
[ ! -e $(CURDIR)/$$i.dh-orig ] || continue; \
cp -f $(CURDIR)/$$i $(CURDIR)/$$i.dh-orig; \
done
dh_auto_configure -- $(confflags)
override_dh_auto_clean:
dh_auto_clean
rm -f $(CURDIR)/tables/wb86.scm $(CURDIR)/tables/zm.scm
rm -f $(CURDIR)/config.log $(CURDIR)/config.status
for i in emacs/uim-version.el uim.desktop; do \
[ -e $(CURDIR)/$$i.dh-orig ] || continue; \
mv -f $(CURDIR)/$$i.dh-orig $(CURDIR)/$$i; \
done
override_dh_auto_install:
dh_auto_install -- GTK_IMMODULES=/dev/null
override_dh_install:
install -d $(CURDIR)/debian/libuim-data/var/lib/uim
dh_install --sourcedir=debian/tmp
override_dh_link:
dh_link -p libuim-data \
var/lib/uim/installed-modules.scm \
usr/share/uim/installed-modules.scm
dh_link -p libuim-data \
var/lib/uim/loader.scm \
usr/share/uim/loader.scm
for pkg in libuim8 libuim-scm0 libuim-custom2 \
libuim-data libuim-dev uim-dbg uim-utils \
uim-gtk2.0 uim-gtk3 uim-applet-gnome \
uim-dict-gtk uim-dict-gtk3 \
uim-qt plasma-widget-uim \
uim-anthy uim-canna uim-skk uim-m17nlib \
uim uim-byeoru uim-latin uim-pinyin \
uim-tcode uim-viqr uim-ipa-x-sampa uim-look \
uim-yahoo-jp uim-social-ime uim-ajax-ime \
uim-google-cgiapi-jp uim-baidu-olime-jp \
; do \
rm -rf $(CURDIR)/debian/$$pkg/usr/share/doc/$$pkg; \
dh_link -p$$pkg \
usr/share/doc/uim-common \
usr/share/doc/$$pkg; \
done
dh_link
override_dh_strip:
dh_strip --dbg-package=uim-dbg
override_dh_makeshlibs:
dh_makeshlibs \
--exclude=usr/lib/$(DEB_HOST_MULTIARCH)/uim/plugin \
--exclude=usr/lib/kde4 \
--exclude=usr/lib/$(DEB_HOST_MULTIARCH)/gtk-2.0 \
--exclude=usr/lib/$(DEB_HOST_MULTIARCH)/gtk-3.0 \
$(NULL)
override_dh_installchangelogs:
dh_installchangelogs ChangeLog
|