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
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
# workaround for #1019974
export DEB_CFLAGS_MAINT_APPEND += -O1
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
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/uim \
--with-libgcroots=installed \
--disable-rpath \
--enable-static \
--enable-shared \
$(NULL)
confflags += \
--with-fep \
--with-anthy \
--with-anthy-utf8 \
--with-m17nlib \
--with-x \
--with-gtk \
--with-gtk3 \
--without-qt4 \
--without-qt4-immodule \
--with-qt5 \
--with-qt5-immodule \
--with-expat \
--disable-dict \
--disable-gnome-applet \
--disable-gnome3-applet \
--disable-kde4-applet \
$(NULL)
confflags += $(shell dpkg-buildflags --export=configure)
ifneq (,$(filter $(DEB_HOST_ARCH), ia64 s390))
confflags += UIM_SCM_CFLAGS=-fno-strict-aliasing
endif
export QT_SELECT=qt5
%:
dh $@
override_dh_autoreconf:
dh_autoreconf --as-needed $(CURDIR)/autogen.sh
override_dh_auto_configure:
dh_auto_configure -- $(confflags)
override_dh_auto_clean:
dh_auto_clean
rm -f $(CURDIR)/tables/wb86.table $(CURDIR)/tables/zm.table
rm -f $(CURDIR)/config.log $(CURDIR)/config.status
override_dh_auto_install:
dh_auto_install -- GTK_IMMODULES=/dev/null
override_dh_install:
install -d $(CURDIR)/debian/uim/var/lib/uim
cp $(CURDIR)/debian/README.var-lib-uim $(CURDIR)/debian/uim/var/lib/uim/README
install -d $(CURDIR)/debian/tmp/usr/share/uim/helperdata
cp $(CURDIR)/qt4/chardict/bushu.t \
$(CURDIR)/debian/tmp/usr/share/uim/helperdata
dh_install --sourcedir=debian/tmp
override_dh_link:
dh_link -p uim \
var/lib/uim/installed-modules.scm \
usr/share/uim/installed-modules.scm
dh_link -p uim \
var/lib/uim/loader.scm \
usr/share/uim/loader.scm
dh_link
override_dh_makeshlibs:
dh_makeshlibs \
--exclude=usr/lib/$(DEB_HOST_MULTIARCH)/uim/plugin \
--exclude=usr/lib/$(DEB_HOST_MULTIARCH)/gtk-2.0 \
--exclude=usr/lib/$(DEB_HOST_MULTIARCH)/gtk-3.0 \
$(NULL)
override_dh_installdocs:
cp -f $(CURDIR)/debian/uim-data.docs $(CURDIR)/debian/uim.docs
dh_installdocs -puim -puim-data \
-plibuim8 -plibuim-scm0 -plibuim-custom2 \
-puim-plugins \
-puim-el -puim-fep -puim-xim \
-plibuim-data
rm -f $(CURDIR)/debian/uim.docs
# arch:all
dh_installdocs --link-doc uim-data \
-puim-anthy -puim-skk -puim-m17nlib \
-puim-byeoru -puim-latin -puim-pinyin \
-puim-tcode -puim-viqr -puim-ipa-x-sampa -puim-look
# arch:any
dh_installdocs --link-doc uim \
-puim-gtk2.0 -puim-gtk2.0-immodule \
-puim-gtk3 -puim-gtk3-immodule \
-puim-qt5 -puim-qt5-immodule
dh_installdocs --link-doc libuim8 -plibuim-dev
override_dh_installchangelogs:
dh_installchangelogs -puim -puim-data \
-puim-plugins \
-plibuim8 -plibuim-scm0 -plibuim-custom2 -plibuim-dev \
-puim-el -puim-fep -puim-xim \
-plibuim-data \
RELNOTE
|