-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrules
executable file
·27 lines (19 loc) · 973 Bytes
/
rules
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
#!/usr/bin/make -f
UPSTREAM_LAST_RELEASE = 24.8
UPSTREAM_REVISION_SPEC =
UPSTREAM_REPOSITORY = https://oceanai.mit.edu/svn/moos-ivp-aro/releases/moos-ivp-$(UPSTREAM_LAST_RELEASE)
get-orig-source:
$(eval UPSTREAM_REVISION := $(shell svn info $(UPSTREAM_REVISION_SPEC) $(UPSTREAM_REPOSITORY) | grep "Last Changed Rev: " | sed 's/Last Changed Rev: //'))
$(eval UPSTREAM_VERSION := $(UPSTREAM_LAST_RELEASE)+svn$(UPSTREAM_REVISION))
svn export -q $(UPSTREAM_REVISION_SPEC) $(UPSTREAM_REPOSITORY) moos-ivp-$(UPSTREAM_VERSION)
tar cfz moos-ivp_$(UPSTREAM_VERSION).orig.tar.gz moos-ivp-$(UPSTREAM_VERSION)
rm -rf moos-ivp-$(UPSTREAM_VERSION)
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/cmake.mk
# Add here any variable or target overrides you need.
DEB_SRCDIR=ivp/src
DEB_CMAKE_EXTRA_FLAGS= -DIVP_BUILD_GUI_CODE=ON
CXXFLAGS=-Wno-error=format-security
DEB_BUILD_PARALLEL = true
CC=$(DEB_HOST_GNU_TYPE)-gcc
CXX=$(DEB_HOST_GNU_TYPE)-g++