File: rules

package info (click to toggle)
gr-fcdproplus 3.7.25.4b6464b-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,272 kB
  • ctags: 2,545
  • sloc: python: 9,279; ansic: 1,842; cpp: 360; makefile: 20; sh: 17
file content (25 lines) | stat: -rwxr-xr-x 1,000 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
export DEB_HOST_MULTIARCH
DEB_DEBIAN_DIR=$(dir $(firstword $(MAKEFILE_LIST)))
VER=$(shell dpkg-parsechangelog -l$(DEB_DEBIAN_DIR)/changelog \
              | sed -rne 's,^Version: ([^-]+).*,\1,p')
GITREV=$(shell echo $(VER) | sed -rne 's,[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.([0-9]+),\1,p')

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- -DLIB_SUFFIX="/$(DEB_HOST_MULTIARCH)" -DCMAKE_BUILD_TYPE="Release"

override_dh_install:
	rm -f debian/tmp/usr/lib/python2.7/dist-packages/fcdproplus/*.pyc
	rm -f debian/tmp/usr/lib/python2.7/dist-packages/fcdproplus/*.pyo
	mkdir -p debian/tmp/usr/include/fcdproplus
	cp include/fcdproplus/*.h debian/tmp/usr/include/fcdproplus/
	dh_install

get-orig-source:
	git clone https://github.com/dl1ksv/gr-fcdproplus
	cd gr-fcdproplus && git archive --format=tar --prefix=gr-fcdproplus-$(VER)/  $(GITREV) | xz > ../gr-fcdproplus_$(VER).orig.tar.xz
	rm -rf gr-fcdproplus