blob: 32cf5a8c9b1ec46ff47b148ec0f01af371b18936 (
plain)
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
40
41
42
43
44
45
|
#!/usr/bin/make -f
# Default build flags
CFLAGS = -g -O2
LDFLAGS = -Wl,-Bsymbolic-functions
# dpkg >= 1.16.1 provides enhanced build flags (hardening features, etc.)
DPKG_EXPORT_BUILDFLAGS = 1
-include /usr/share/dpkg/buildflags.mk
BUILDDIR = builddir
$(BUILDDIR)/Makefile:
mkdir -p $(BUILDDIR)
cd $(BUILDDIR) && \
cmake .. \
-DENABLE_MAN:BOOL=ON \
-DENABLE_DOC:BOOL=ON \
-DCMAKE_INSTALL_PREFIX:FILEPATH=/usr \
-DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
-DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING="$(CFLAGS) -D_FORTIFY_SOURCE=2" \
-DCMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING="$(LDFLAGS)" \
-DCMAKE_SKIP_RPATH:BOOL=ON \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
override_dh_auto_build: $(BUILDDIR)/Makefile
dh_auto_build
# Create a symbolic link weechat-curses -> weechat
# This link is created for compatibility with old versions on /upgrade.
# It may be removed in future.
override_dh_auto_install:
dh_auto_install
ln -s weechat $(CURDIR)/debian/weechat-curses/usr/bin/weechat-curses
override_dh_auto_configure:
# the package also has autotools buildsys and
# debhelper try to use it but that's not needed
echo
override_dh_strip:
dh_strip --dbg-package=weechat-dbg
%:
dh $@ --parallel --builddirectory=$(BUILDDIR)
|