/[debian-med]/trunk/packages/vxl/trunk/debian/rules
ViewVC logotype

Contents of /trunk/packages/vxl/trunk/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 15302 - (show annotations) (download)
Thu Nov 28 12:58:33 2013 UTC (7 months, 4 weeks ago) by malat
File MIME type: text/plain
File size: 3282 byte(s)
Prepare patch for comp flags
1 #!/usr/bin/make -f
2 #export DH_VERBOSE=1
3
4 # http://bugs.debian.org/718047
5 # -> debian-release team blessing: http://bugs.debian.org/728574#18
6 ifneq ($(shell dpkg-architecture -qDEB_BUILD_ARCH_CPU ), ia64)
7 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
8 endif
9
10 VER_FULL = $(shell dpkg-parsechangelog | grep '^Version' | cut -d' ' -f2 | cut -f1 -d-)
11 SOVERSION = $(shell echo $(VER_FULL) | cut -f1-2 -d.)
12 VER_MAJOR = $(shell echo $(VER_FULL) | cut -f1 -d.)
13
14 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
15
16 UPSTREAM_SRC = vxl-$(VER_FULL)
17 DEBIAN_SRC_DIR = vxl-$(VER_FULL)
18 DEBIAN_SRC_TAR = vxl_$(VER_FULL).orig.tar.gz
19
20 PYTHON_INCLUDE_DIRS=$(shell python-config --includes | cut -f1 -d' '|cut -c3-)
21 PYTHON_INCLUDE_DIR="$(PYTHON_INCLUDE_DIRS)"
22 # See bug #709181
23 PYTHON_INCLUDE_DIRS2=$(shell python-config --includes | cut -f2 -d' '|cut -c3-)
24 PYTHON_INCLUDE_DIR2="$(PYTHON_INCLUDE_DIRS2)"
25 PYTHON_CONFIG_DIR=$(shell python-config --configdir)
26 PYTHON_LIBRARY="$(PYTHON_CONFIG_DIR)/libpython2.7.so"
27
28 # CMAKE_SKIP_RPATH=OFF is required when BUILD_TESTING=ON
29 # Do not set CMAKE_BUILD_TYPE / http://bugs.debian.org/711515
30 CMAKE_EXTRA_FLAGS = \
31 -DCMAKE_INSTALL_PREFIX:PATH=/usr \
32 -DCMAKE_BUILD_TYPE:STRING="" \
33 -DCMAKE_SKIP_RPATH:BOOL=OFF \
34 -DBUILD_SHARED_LIBS:BOOL=ON \
35 -DAVIFILE_INCLUDE_DIR:PATH=/usr/include/avifile-0.7 \
36 -DVXL_USING_NATIVE_ZLIB:BOOL=ON \
37 -DVXL_USING_NATIVE_JPEG:BOOL=ON \
38 -DVXL_USING_NATIVE_BZLIB2:BOOL=ON \
39 -DVXL_USING_NATIVE_MPEG2:BOOL=ON \
40 -DVXL_USING_NATIVE_PNG:BOOL=ON \
41 -DVXL_USING_NATIVE_TIFF:BOOL=ON \
42 -DVXL_USING_NATIVE_SHAPELIB:BOOL=ON \
43 -DVXL_USING_NATIVE_GEOTIFF:BOOL=ON \
44 -DVXL_USING_NATIVE_EXPAT:BOOL=ON \
45 -DBUILD_VGUI:BOOL=ON \
46 -DBUILD_BGUI3D:BOOL=ON \
47 -DVXL_BUILD_DCMTK:BOOL=ON \
48 -DBUILD_OXL:BOOL=ON \
49 -DBUILD_CORE_GEOMETRY:BOOL=ON \
50 -DBUILD_CORE_IMAGING:BOOL=ON \
51 -DBUILD_CORE_NUMERICS:BOOL=ON \
52 -DBUILD_CORE_PROBABILITY:BOOL=ON \
53 -DBUILD_CORE_SERIALISATION:BOOL=ON \
54 -DBUILD_CORE_UTILITIES:BOOL=ON \
55 -DBUILD_CORE_VIDEO:BOOL=ON \
56 -DBUILD_EXAMPLES:BOOL=OFF \
57 -DPYTHON_INCLUDE_DIR=$(PYTHON_INCLUDE_DIR) \
58 -DPYTHON_INCLUDE_DIR2=$(PYTHON_INCLUDE_DIR2) \
59 -DPYTHON_LIBRARY=$(PYTHON_LIBRARY) \
60 -DBUILD_TESTING:BOOL=ON
61
62 pkg_lib = libvxl$(SOVERSION)
63 pkg_dev = libvxl$(VER_MAJOR)-dev
64 #pkg_examples = vxl$(VER_MAJOR)-examples
65
66 %:
67 dh $@ --buildsystem=cmake --parallel --with python2
68
69 override_dh_auto_configure:
70 # remove duplicate from boxm_block+boct_tree+short.vnl_vector_fixed+float
71 rm -f $(CURDIR)/contrib/brl/bseg/boxm/pro/Templates/boxm_scene+boct_tree+short.vnl_vector_fixed+float.3---.cxx
72 dh_auto_configure # See bug: 708131
73 dh_auto_configure -- $(CMAKE_EXTRA_FLAGS)
74
75 override_dh_lintian:
76 echo "$(pkg_lib): package-name-doesnt-match-sonames" > debian/$(pkg_lib).lintian-overrides
77 dh_lintian
78
79 override_dh_install:
80 dh_install -p$(pkg_lib) debian/tmp/usr/lib/lib*.so.* usr/lib/$(DEB_HOST_MULTIARCH)
81 dh_install -p$(pkg_dev) debian/tmp/usr/lib/lib*.so usr/lib/$(DEB_HOST_MULTIARCH)
82 dh_install -p$(pkg_dev) --autodest debian/tmp/usr/include
83 dh_install -p$(pkg_dev) --autodest debian/tmp/usr/share/vxl/cmake/*.cmake
84
85 # too many tests failure, with erratic behavior
86 # http://bugs.debian.org/671601
87 override_dh_auto_test:
88 dh_auto_test || true
89
90 get-orig-source:
91 uscan --verbose --force-download --rename

Properties

Name Value
svn:eol-style native
svn:executable *
svn:mime-type text/plain

  ViewVC Help
Powered by ViewVC 1.1.5