Fix previous.
[dcpomatic.git] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Sample debian/rules that uses debhelper.
4 # This file was originally written by Joey Hess and Craig Small.
5 # As a special exception, when this file is copied by dh-make into a
6 # dh-make output file, you may use that output file without restriction.
7 # This special exception was added by Craig Small in version 0.37 of dh-make.
8
9 # Uncomment this to turn on verbose mode.
10 #export DH_VERBOSE=1
11
12 %:
13         dh $@
14
15 override_dh_auto_configure:
16         LINKFLAGS=$(CDIST_LINKFLAGS) CXXFLAGS="$(CXXFLAGS) $(CDIST_CXXFLAGS)" PKG_CONFIG_PATH=$(CDIST_PKG_CONFIG_PATH) \
17                  ./waf configure --prefix=/usr $(CDIST_CONFIGURE)
18
19 override_dh_auto_build:
20         ./waf build
21
22 override_dh_auto_install:
23         ./waf install --destdir=debian/dcpomatic
24         mkdir -p debian/dcpomatic/usr/share/locale/de/LC_MESSAGES/
25         cp -a /usr/share/locale/de/LC_MESSAGES/wxstd.mo debian/dcpomatic/usr/share/locale/de/LC_MESSAGES/dcpomatic2-wxstd.mo
26         mkdir -p debian/dcpomatic/usr/share/locale/es/LC_MESSAGES/
27         cp -a /usr/share/locale/es/LC_MESSAGES/wxstd.mo debian/dcpomatic/usr/share/locale/es/LC_MESSAGES/dcpomatic2-wxstd.mo
28         mkdir -p debian/dcpomatic/usr/share/locale/fr/LC_MESSAGES/
29         cp -a /usr/share/locale/fr/LC_MESSAGES/wxstd.mo debian/dcpomatic/usr/share/locale/fr/LC_MESSAGES/dcpomatic2-wxstd.mo
30         mkdir -p debian/dcpomatic/usr/share/locale/it/LC_MESSAGES/
31         cp -a /usr/share/locale/it/LC_MESSAGES/wxstd.mo debian/dcpomatic/usr/share/locale/it/LC_MESSAGES/dcpomatic2-wxstd.mo
32         mkdir -p debian/dcpomatic/usr/share/locale/sv/LC_MESSAGES/
33         cp -a /usr/share/locale/sv/LC_MESSAGES/wxstd.mo debian/dcpomatic/usr/share/locale/sv/LC_MESSAGES/dcpomatic2-wxstd.mo
34         mkdir -p debian/dcpomatic/usr/share/locale/nl/LC_MESSAGES/
35         cp -a /usr/share/locale/nl/LC_MESSAGES/wxstd.mo debian/dcpomatic/usr/share/locale/nl/LC_MESSAGES/dcpomatic2-wxstd.mo
36         mkdir -p debian/dcpomatic/usr/share/locale/pl/LC_MESSAGES/
37         cp -a /usr/share/locale/pl/LC_MESSAGES/wxstd.mo debian/dcpomatic/usr/share/locale/pl/LC_MESSAGES/dcpomatic2-wxstd.mo
38         mkdir -p debian/dcpomatic/usr/share/locale/ru/LC_MESSAGES/
39         cp -a /usr/share/locale/ru/LC_MESSAGES/wxstd.mo debian/dcpomatic/usr/share/locale/ru/LC_MESSAGES/dcpomatic2-wxstd.mo
40
41 .PHONY: override_dh_strip
42 override_dh_strip:
43         dh_strip $(CDIST_DEBUG_PACKAGE)
44
45 override_dh_shlibdeps:
46         dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
47
48 override_dh_fixperms:
49         dh_fixperms --exclude usr/bin/dcpomatic2_uuid