File: rules

package info (click to toggle)
gosmore 0.0.0.svn30327-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 8,400 kB
  • ctags: 1,111
  • sloc: cpp: 6,701; xml: 4,090; ansic: 1,176; java: 1,061; sh: 164; makefile: 145; lex: 108
file content (39 lines) | stat: -rwxr-xr-x 1,098 bytes parent folder | download
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
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/make -f

DH_VERBOSE = 1

# Enable hardening build flags
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

#DESTDIR := $(CURDIR)/debian/gosmore
#DEB_MAKE_INSTALL_TARGET := DESTDIR=$(DESTDIR) prefix=/usr install

#CFLAGS := -DRES_DIR='\"/usr/share/gosmore/\"'

SVNREPO := https://svn.openstreetmap.org/applications/rendering/gosmore
SVNREV := 30327

%:
	dh $@ --parallel

override_dh_auto_install:
	dh_auto_install

	chmod -x debian/*/usr/share/gosmore/*.wav \
	         debian/*/usr/share/pixmaps/*.xpm

get-orig-source:
	dh_testdir
	test -d ../tarballs/. || mkdir -p ../tarballs
	@echo Downloading gosmore from ${SVNREPO}
	svn -r $(SVNREV) --ignore-externals export ${SVNREPO} ../tarballs/gosmore-0.0.0.svn${SVNREV}
	@echo Removing debian dir
	rm -rf ../tarballs/gosmore-0.0.0.svn${SVNREV}/debian
	@echo Building snapshot tarball
	tar czf ../tarballs/gosmore_0.0.0.svn${SVNREV}.orig.tar.gz -C ../tarballs gosmore-0.0.0.svn${SVNREV}
	@echo Cleaning up
	rm -rf ../tarballs/gosmore-0.0.0.svn${SVNREV}
	@echo .
	@echo To update debian/changelog type
	@echo dch -v 0.0.0.svn${SVNREV}-1
	@echo .