#!/usr/bin/make -f

PKG = rotistmeinekugel-by-rtificial
EXE = rtificial-rmk-linux_1920_1080

%:
	dh $@

# libGLEW.so.1.6 only exists through the link to the system libGLEW
# (debian/links), and libSDL-1.2.so.0 is provided by sdl12-compat in a
# private directory: both are declared by hand in debian/control.
override_dh_shlibdeps:
	cp $(EXE) debian/shlibs-check
	patchelf --remove-needed libGLEW.so.1.6 debian/shlibs-check
	dpkg-shlibdeps -Tdebian/$(PKG).substvars -xlibsdl1.2debian -edebian/shlibs-check
	rm -f debian/shlibs-check
