#!/usr/bin/make -f

EXE = linux/PixelFlakes_YUP_Linux
PKG = pixelflakes-by-youthuprising

%:
	dh $@

# libGLEW.so.1.10 and libbass.so only exist through the compatibility
# links of the package: compute the shlibs on a copy without them, they
# are declared by hand in debian/control.
override_dh_shlibdeps:
	cp $(EXE) debian/shlibs-check
	patchelf --remove-needed libGLEW.so.1.10 --remove-needed libbass.so debian/shlibs-check
	dpkg-shlibdeps -Tdebian/$(PKG).substvars -edebian/shlibs-check
	rm -f debian/shlibs-check

override_dh_install:
	chmod +x $(EXE)
	dh_install
