Skip to content

Commit 3147836

Browse files
committed
debian packaging: set build name for cdash
1 parent 5895f56 commit 3147836

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

debian/rules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
# from having to guess our platform (since we know it already)
99
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
1010
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
11+
DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
1112

1213
DEB_TEST_TARGET ?= Experimental
1314

@@ -16,6 +17,8 @@ ifneq ($(DISTRIBUTION),$(findstring $(DISTRIBUTION),"lenny squeeze wheezy lucid
1617
DISTRIBUTION := sid
1718
endif
1819

20+
DEB_BUILD_NAME ?= $(DISTRIBUTION)-$(DEB_BUILD_ARCH)
21+
1922
QGIS_MAJOR=$(shell sed -ne 's/SET(CPACK_PACKAGE_VERSION_MAJOR "\([0-9]*\)")/\1/p' CMakeLists.txt)
2023
QGIS_MINOR=$(shell sed -ne 's/SET(CPACK_PACKAGE_VERSION_MINOR "\([0-9]*\)")/\1/p' CMakeLists.txt)
2124
QGIS_PATCH=$(shell sed -ne 's/SET(CPACK_PACKAGE_VERSION_PATCH "\([0-9]*\)")/\1/p' CMakeLists.txt)
@@ -24,6 +27,7 @@ GRASS_ABI=$(subst .,,$(shell pkg-config --modversion grass|sed -e "s/\.//g" -e "
2427
GRASS=grass$(subst .,,$(shell pkg-config --modversion grass|cut -d. -f1,2))
2528

2629
CMAKE_OPTS := \
30+
-D BUILDNAME=$(DEB_BUILD_NAME) \
2731
-D GRASS_PREFIX=/usr/lib/grass64 \
2832
-D CMAKE_INSTALL_PREFIX=/usr \
2933
-D CMAKE_SKIP_RPATH=TRUE \

0 commit comments

Comments
 (0)