Project

General

Profile

Statistics
| Branch: | Revision:

robobuggy / buggyvis / debian / rules @ f75a88be

History | View | Annotate | Download (2.33 KB)

1
#!/usr/bin/make -f
2
# -*- makefile -*-
3
# Sample debian/rules that uses debhelper.
4
# This file was originally written by Joey Hess and Craig Small.
5
# As a special exception, when this file is copied by dh-make into a
6
# dh-make output file, you may use that output file without restriction.
7
# This special exception was added by Craig Small in version 0.37 of dh-make.
8

    
9
# Uncomment this to turn on verbose mode.
10
export DH_VERBOSE=1
11
export DH_OPTIONS=-v --buildsystem=cmake
12
# TODO: remove the LDFLAGS override.  It's here to avoid esoteric problems
13
# of this sort:
14
#  https://code.ros.org/trac/ros/ticket/2977
15
#  https://code.ros.org/trac/ros/ticket/3842
16
export LDFLAGS=
17
export PKG_CONFIG_PATH=/opt/ros/groovy/lib/pkgconfig
18

    
19
%:
20
	dh  $@
21

    
22
override_dh_auto_configure:
23
	# In case we're installing to a non-standard location, look for a setup.sh
24
	# in the install tree that was dropped by catkin, and source it.  It will
25
	# set things like CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
26
	if [ -f "/opt/ros/groovy/setup.sh" ]; then . "/opt/ros/groovy/setup.sh"; fi && \
27
	dh_auto_configure -- \
28
		-DCATKIN_BUILD_BINARY_PACKAGE="1" \
29
		-DCMAKE_INSTALL_PREFIX="/opt/ros/groovy" \
30
		-DCMAKE_PREFIX_PATH="/opt/ros/groovy"
31

    
32
override_dh_auto_build:
33
	# In case we're installing to a non-standard location, look for a setup.sh
34
	# in the install tree that was dropped by catkin, and source it.  It will
35
	# set things like CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
36
	if [ -f "/opt/ros/groovy/setup.sh" ]; then . "/opt/ros/groovy/setup.sh"; fi && \
37
	dh_auto_build
38

    
39
override_dh_auto_test:
40
	# In case we're installing to a non-standard location, look for a setup.sh
41
	# in the install tree that was dropped by catkin, and source it.  It will
42
	# set things like CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
43
	echo -- Running tests. Even if one of them fails the build is not canceled.
44
	if [ -f "/opt/ros/groovy/setup.sh" ]; then . "/opt/ros/groovy/setup.sh"; fi && \
45
	dh_auto_test || true
46

    
47
override_dh_shlibdeps:
48
	# In case we're installing to a non-standard location, look for a setup.sh
49
	# in the install tree that was dropped by catkin, and source it.  It will
50
	# set things like CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
51
	if [ -f "/opt/ros/groovy/setup.sh" ]; then . "/opt/ros/groovy/setup.sh"; fi && \
52
	dh_shlibdeps -l$(CURDIR)/debian/ros-groovy-turtlesim//opt/ros/groovy/lib/