1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
#!/usr/bin/make -f
# dynamic_reconfigure encodes the srcfile with full path
export DEB_BUILD_MAINT_OPTIONS = buildinfo=+path hardening=+all
export ROS_SKIP_PACKAGES = perception_pcl
%:
dh $@ --buildsystem=ros
# libpcl-conversions-dev captures the versioned include path of libpcl-dev
PCL_CUR = $(shell dpkg-query -W -f '$${Source:Upstream-Version}' libpcl-dev | awk -F. '{print $$1"."$$2}')
PCL_NEXT = $(shell dpkg-query -W -f '$${Source:Upstream-Version}' libpcl-dev | awk -F. '{print $$1"."$$2+1}')
# libpcl-conversions-dev captures the ABI version of libvtk9-dev
VTK_CUR = $(shell dpkg-query -W -f '$${Source:Upstream-Version}' libvtk9-dev | awk -F. '{print $$1"."$$2}')
VTK_NEXT = $(shell dpkg-query -W -f '$${Source:Upstream-Version}' libvtk9-dev | awk -F. '{print $$1"."$$2+1}')
override_dh_gencontrol:
dh_gencontrol -- -Vpcl:CUR="$(PCL_CUR)" -Vpcl:NEXT="$(PCL_NEXT)" -Vvtk:CUR="$(VTK_CUR)" -Vvtk:NEXT="$(VTK_NEXT)"
|