Only take subtitle data into account for position() if there is nothing
[dcpomatic.git] / debian / rules
index ba42e5291fabb5689821c7eee5ba168a9a964063..c84a78453bf5a82bc33b9fa6fa98f4b0f8fe22dc 100755 (executable)
 #export DH_VERBOSE=1
 
 %:
-       dh $@ 
+       dh $@
 
 override_dh_auto_configure:
-       ./waf --nocache configure --prefix=/usr --static
+       LINKFLAGS=$(CDIST_LINKFLAGS) CXXFLAGS="$(CXXFLAGS) $(CDIST_CXXFLAGS)" PKG_CONFIG_PATH=$(CDIST_PKG_CONFIG_PATH) \
+                ./waf configure --prefix=/usr $(CDIST_CONFIGURE)
 
 override_dh_auto_build:
-       ./waf --nocache build
+       ./waf build
 
 override_dh_auto_install:
-       ./waf --nocache install --destdir=debian/dcpomatic
+       ./waf install --destdir=debian/dcpomatic
+       mkdir -p debian/dcpomatic/usr/share/locale/de/LC_MESSAGES/
+       cp -a /usr/share/locale/de/LC_MESSAGES/wxstd.mo debian/dcpomatic/usr/share/locale/de/LC_MESSAGES/dcpomatic2-wxstd.mo
+       mkdir -p debian/dcpomatic/usr/share/locale/es/LC_MESSAGES/
+       cp -a /usr/share/locale/es/LC_MESSAGES/wxstd.mo debian/dcpomatic/usr/share/locale/es/LC_MESSAGES/dcpomatic2-wxstd.mo
+       mkdir -p debian/dcpomatic/usr/share/locale/fr/LC_MESSAGES/
+       cp -a /usr/share/locale/fr/LC_MESSAGES/wxstd.mo debian/dcpomatic/usr/share/locale/fr/LC_MESSAGES/dcpomatic2-wxstd.mo
+       mkdir -p debian/dcpomatic/usr/share/locale/it/LC_MESSAGES/
+       cp -a /usr/share/locale/it/LC_MESSAGES/wxstd.mo debian/dcpomatic/usr/share/locale/it/LC_MESSAGES/dcpomatic2-wxstd.mo
+       mkdir -p debian/dcpomatic/usr/share/locale/sv/LC_MESSAGES/
+       cp -a /usr/share/locale/sv/LC_MESSAGES/wxstd.mo debian/dcpomatic/usr/share/locale/sv/LC_MESSAGES/dcpomatic2-wxstd.mo
+       mkdir -p debian/dcpomatic/usr/share/locale/nl/LC_MESSAGES/
+       cp -a /usr/share/locale/nl/LC_MESSAGES/wxstd.mo debian/dcpomatic/usr/share/locale/nl/LC_MESSAGES/dcpomatic2-wxstd.mo
+       mkdir -p debian/dcpomatic/usr/share/locale/pl/LC_MESSAGES/
+       cp -a /usr/share/locale/pl/LC_MESSAGES/wxstd.mo debian/dcpomatic/usr/share/locale/pl/LC_MESSAGES/dcpomatic2-wxstd.mo
+       mkdir -p debian/dcpomatic/usr/share/locale/ru/LC_MESSAGES/
+       cp -a /usr/share/locale/ru/LC_MESSAGES/wxstd.mo debian/dcpomatic/usr/share/locale/ru/LC_MESSAGES/dcpomatic2-wxstd.mo
 
+.PHONY: override_dh_strip
+override_dh_strip:
+       dh_strip $(CDIST_DEBUG_PACKAGE)
+
+override_dh_shlibdeps:
+       dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
+
+override_dh_fixperms:
+       dh_fixperms --exclude usr/bin/dcpomatic2_uuid