1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
#!/usr/bin/make -f
-include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs -Wl,--as-needed
%:
dh $@ --with gnome,gir
override_dh_makeshlibs:
dh_makeshlibs -- -c4
override_dh_clean:
dh_clean
rm -rf *vala.stamp
rm -rf src/*.c
# The camerabin plugin is in gstreamer1.0-plugins-good (and the headers in
# libgstreamer-plugins-godd1.0-dev) in Ubuntu
override_dh_gencontrol:
ifneq (yes,$(shell dpkg-vendor --derives-from Ubuntu && echo yes))
# not Ubuntu
dh_gencontrol -- \
-Vgstbad:Depends='gstreamer1.0-plugins-bad (>= 1.4)' \
-Vgstbad-dev:Depends='libgstreamer-plugins-bad1.0-dev (>= 1.4)'
else
# Ubuntu or derivatives
dh_gencontrol -- -Vgstbad-dev:Depends='libgstreamer-plugins-good1.0-dev (>= 1.4)'
override_dh_install:
dh_install
sed -i 's/gstreamer-plugins-bad-1.0/gstreamer-plugins-good-1.0/' \
debian/libcheese-dev/usr/lib/*/pkgconfig/cheese.pc
endif # Ubuntu & derivatives
# https://bugzilla.gnome.org/731009
override_dh_auto_test:
ifeq (,$(filter nocheck, $(DEB_BUILD_OPTIONS)))
-xvfb-run --auto-servernum dh_auto_test
endif
|