chiark / gitweb /
strip more ?
[nlopt.git] / debian / rules.removed
1
2 override_dh_auto_configure:
3         for v in $(PYVERS); do \
4            dh_auto_configure --builddirectory=$(BUILDDIR)$$v \
5                 -- $(extra_flags) \
6                 --prefix=/usr \
7                 --srcdir=$(CURDIR) \
8                 --enable-shared \
9                 PYTHON=/usr/bin/python$$v \
10                 OCT_INSTALL_DIR=$(bpath) M_INSTALL_DIR=$(mpath) \
11                 GUILE=guile GUILE_CONFIG=guile-config; \
12         done
13
14 override_dh_auto_build:
15         for v in $(PYVERS); do \
16            dh_auto_build --builddirectory=$(BUILDDIR)$$v; \
17         done
18         # Now configure and build again for C++
19         dh_auto_configure --builddirectory=$(BUILDDIR)$$v \
20                 -- $(extra_flags) \
21                 --prefix=/usr \
22                 --srcdir=$(CURDIR) \
23                 --enable-shared \
24                 --with-cxx
25         dh_auto_build --builddirectory=$(BUILDDIR)$$v; \
26
27 override_dh_clean:
28         dh_clean --exclude='*.orig'
29
30 override_dh_auto_clean:
31         for v in $(PYVERS); do \
32            rm -rf $(BUILDDIR)$$v; \
33         done
34
35 override_dh_strip:
36         dh_strip
37         find debian/octave-nlopt/usr/lib -name *.oct | \
38                 xargs strip --strip-unneeded --remove-section=.comment
39
40 override_dh_makeshlibs:
41         dh_makeshlibs $(shell for v in $(PYVERS); do printf -- "-X/usr/lib/python$$v/dist-packages "; done)
42
43 override_dh_shlibdeps:
44         dh_shlibdeps
45         dh_octave_substvar
46
47 override_dh_auto_install:
48         for v in $(PYVERS); do \
49           dh_auto_install --builddirectory=$(BUILDDIR)$$v; \
50         done
51
52         dh_numpy
53         find debian/tmp/usr/lib/python* \
54                 -name '*.pyc' -o -name '*.pyo' \
55                 -o -name '*.la' -o -name '*.a' | xargs rm
56
57 override_dh_install:
58         dh_install
59         # Remove C++ header from C interface
60         find debian/libnlopt-dev -name nlopt.hpp -delete
61
62 override_dh_link:
63         for package in libnlopt-dev libnlopt-guile0 octave-nlopt python-nlopt; do \
64                 rm -rf debian/$$package/usr/share/doc/$$package; \
65         done
66         dh_link
67
68
69 override_dh_auto_test:
70         for v in $(PYVERS); do \
71            dh_auto_test --builddirectory=$(BUILDDIR)$$v \
72                 -- $(extra_flags); \
73         done