@@ -13,7 +13,7 @@ export DH_VERBOSE=1
1313# https://code.ros.org/trac/ros/ticket/2977
1414# https://code.ros.org/trac/ros/ticket/3842
1515export LDFLAGS =
16- export PKG_CONFIG_PATH =@(InstallationPrefix) /lib/pkgconfig
16+ export PKG_CONFIG_PATH =/opt/ros/iron /lib/pkgconfig
1717# Explicitly enable -DNDEBUG, see:
1818# https://github.com/ros-infrastructure/bloom/issues/327
1919export DEB_CXXFLAGS_MAINT_APPEND =-DNDEBUG
@@ -27,43 +27,43 @@ export DEB_HOST_MULTIARCH := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
2727DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
2828
2929% :
30- dh $@ @ -v --buildsystem=cmake --builddirectory=.obj-$(DEB_HOST_GNU_TYPE )
30+ dh $@ -v --buildsystem=cmake --builddirectory=.obj-$(DEB_HOST_GNU_TYPE )
3131
3232override_dh_auto_configure :
3333 # In case we're installing to a non-standard location, look for a setup.sh
3434 # in the install tree and source it. It will set things like
3535 # CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
36- if [ -f " @(InstallationPrefix)/ setup.sh" ]; then . " @(InstallationPrefix) /setup.sh" ; fi && \
36+ if [ -f " /opt/ros/iron/ setup.sh" ]; then . " /opt/ros/iron /setup.sh" ; fi && \
3737 dh_auto_configure -- \
38- -DCMAKE_INSTALL_PREFIX=" @(InstallationPrefix) " \
39- -DCMAKE_PREFIX_PATH=" @(InstallationPrefix) " \
38+ -DCMAKE_INSTALL_PREFIX=" /opt/ros/iron " \
39+ -DCMAKE_PREFIX_PATH=" /opt/ros/iron " \
4040 $(BUILD_TESTING_ARG )
4141
4242override_dh_auto_build :
4343 # In case we're installing to a non-standard location, look for a setup.sh
4444 # in the install tree and source it. It will set things like
4545 # CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
46- if [ -f " @(InstallationPrefix)/ setup.sh" ]; then . " @(InstallationPrefix) /setup.sh" ; fi && \
46+ if [ -f " /opt/ros/iron/ setup.sh" ]; then . " /opt/ros/iron /setup.sh" ; fi && \
4747 dh_auto_build
4848
4949override_dh_auto_test :
5050 # In case we're installing to a non-standard location, look for a setup.sh
5151 # in the install tree and source it. It will set things like
5252 # CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
5353 echo -- Running tests. Even if one of them fails the build is not canceled.
54- if [ -f " @(InstallationPrefix)/ setup.sh" ]; then . " @(InstallationPrefix) /setup.sh" ; fi && \
54+ if [ -f " /opt/ros/iron/ setup.sh" ]; then . " /opt/ros/iron /setup.sh" ; fi && \
5555 dh_auto_test || true
5656
5757override_dh_shlibdeps :
5858 # In case we're installing to a non-standard location, look for a setup.sh
5959 # in the install tree and source it. It will set things like
6060 # CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
61- if [ -f " @(InstallationPrefix)/ setup.sh" ]; then . " @(InstallationPrefix) /setup.sh" ; fi && \
62- dh_shlibdeps -l$(CURDIR ) /debian/@ (Package)/ @ (InstallationPrefix)/ lib/:$(CURDIR ) /debian/@ (Package)/ @ (InstallationPrefix) /lib/${DEB_HOST_MULTIARCH}
61+ if [ -f " /opt/ros/iron/ setup.sh" ]; then . " /opt/ros/iron /setup.sh" ; fi && \
62+ dh_shlibdeps -l$(CURDIR ) /debian/ros-iron-librealsense2//opt/ros/iron/ lib/:$(CURDIR ) /debian/ros-iron-librealsense2//opt/ros/iron /lib/${DEB_HOST_MULTIARCH}
6363
6464override_dh_auto_install :
6565 # In case we're installing to a non-standard location, look for a setup.sh
6666 # in the install tree and source it. It will set things like
6767 # CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
68- if [ -f " @(InstallationPrefix)/ setup.sh" ]; then . " @(InstallationPrefix) /setup.sh" ; fi && \
68+ if [ -f " /opt/ros/iron/ setup.sh" ]; then . " /opt/ros/iron /setup.sh" ; fi && \
6969 dh_auto_install
0 commit comments