File: rules

package info (click to toggle)
imhangul 2.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,620 kB
  • sloc: sh: 11,035; ansic: 2,215; python: 225; makefile: 69
file content (24 lines) | stat: -rwxr-xr-x 849 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
#!/usr/bin/make -f
#export DH_VERBOSE=1

%:
	dh $@ --with quilt

# correct the wrong install path by upstream
IMAPIVER ?= $(shell pkg-config --variable=gtk_binary_version gtk+-2.0)
MODULEDIR = /usr/lib/$(DEB_HOST_MULTIARCH)/gtk-2.0/$(IMAPIVER)/immodules
BINPKG = imhangul-gtk2

override_dh_auto_configure:
	dh_auto_configure -- --with-default-keyboard=2 \
	    --with-gtk-im-module-dir=$(MODULEDIR)

override_dh_makeshlibs:
	dh_makeshlibs -Xim-hangul.so

override_dh_auto_install:
	dh_auto_install
	find $(CURDIR)/debian/$(BINPKG)/ -name *.la -exec rm \{} \;
	# install imhangul.immodules
	install -d $(CURDIR)/debian/$(BINPKG)/usr/lib/$(DEB_HOST_MULTIARCH)/gtk-2.0/$(IMAPIVER)/immodule-files.d
	install -m644 debian/imhangul.immodules $(CURDIR)/debian/$(BINPKG)/usr/lib/$(DEB_HOST_MULTIARCH)/gtk-2.0/$(IMAPIVER)/immodule-files.d/imhangul.immodules