File: rules

package info (click to toggle)
fpzip 1.3.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 308 kB
  • sloc: cpp: 1,461; ansic: 488; makefile: 74
file content (29 lines) | stat: -rwxr-xr-x 875 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

export DH_VERBOSE=1


# The magic debhelper  rule
%:
	dh $@ --buildsystem=cmake

DESTDIR=$(CURDIR)/debian/tmp/
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
LIBDIR:=/usr/lib/$(DEB_HOST_MULTIARCH)
TARGET_ARCH:= $(shell dpkg-architecture -qDEB_TARGET_GNU_TYPE)

export LD_LIBRARY_PATH:=$(CURDIR)/obj-$(TARGET_ARCH)/lib/$(DEB_HOST_MULTIARCH):$(LD_LIBRARY_PATH)

ARCH32:= powerpc armel armhf i386 mipsel m68k mips powerpcspe x32
LONG_32BIT:=     $(if $(filter $(DEB_TARGET_ARCH), $(PATCH_ON_32BIT_ARCH)),\
                -DFPZIP_INT64='long long' \
                -DFPZIP_UINT64='long long' \
                -DFPZIP_INT64_SUFFIX='ll' \
                -DFPZIP_UINT64_SUFFIX='ull' , )

override_dh_auto_configure:
	dh_auto_configure -- \
		-DBUILD_ALL=On \
		$(LONG_32BIT) \
		-DCMAKE_SKIP_INSTALL_RPATH=On \
		-DCMAKE_SKIP_RPATH=On