2003-09-27 10:01:11 +00:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
2011-10-30 09:45:03 +01:00
|
|
|
# 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
|
|
|
|
|
2012-11-16 07:54:59 +01:00
|
|
|
BUILDDIR = builddir
|
|
|
|
|
|
|
|
$(BUILDDIR)/Makefile:
|
|
|
|
mkdir -p $(BUILDDIR)
|
|
|
|
cd $(BUILDDIR) && \
|
2009-05-08 19:32:39 +02:00
|
|
|
cmake .. \
|
2013-07-31 18:56:21 +02:00
|
|
|
-DENABLE_MAN:BOOL=ON \
|
2013-06-30 21:40:09 +02:00
|
|
|
-DENABLE_DOC:BOOL=ON \
|
2009-08-16 17:31:49 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX:FILEPATH=/usr \
|
2011-10-28 09:15:23 +02:00
|
|
|
-DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
|
2012-09-22 09:49:24 +02:00
|
|
|
-DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING="$(CFLAGS) -D_FORTIFY_SOURCE=2" \
|
2011-10-30 09:45:03 +01:00
|
|
|
-DCMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING="$(LDFLAGS)" \
|
2009-08-16 17:31:49 +00:00
|
|
|
-DCMAKE_SKIP_RPATH:BOOL=ON \
|
|
|
|
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
|
2006-05-13 08:45:19 +00:00
|
|
|
|
2012-11-16 07:54:59 +01:00
|
|
|
override_dh_auto_build: $(BUILDDIR)/Makefile
|
2011-10-30 09:45:03 +01:00
|
|
|
dh_auto_build
|
2006-03-18 12:07:14 +00:00
|
|
|
|
2013-08-07 09:32:37 +02:00
|
|
|
# Create a symbolic link weechat-curses -> weechat
|
2013-08-02 08:54:16 +02:00
|
|
|
# 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
|
|
|
|
|
2009-05-09 00:28:03 +02:00
|
|
|
override_dh_auto_configure:
|
|
|
|
# the package also has autotools buildsys and
|
|
|
|
# debhelper try to use it but that's not needed
|
|
|
|
echo
|
|
|
|
|
2009-05-08 19:32:39 +02:00
|
|
|
override_dh_strip:
|
|
|
|
dh_strip --dbg-package=weechat-dbg
|
2003-09-27 10:01:11 +00:00
|
|
|
|
2009-05-08 19:32:39 +02:00
|
|
|
%:
|
2012-11-16 07:54:59 +01:00
|
|
|
dh $@ --parallel --builddirectory=$(BUILDDIR)
|