weechat/debian/rules

50 lines
1.1 KiB
Plaintext
Raw Normal View History

2003-09-27 10:01:11 +00:00
#!/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
2009-05-08 19:32:39 +02:00
builddir/Makefile:
mkdir -p builddir
cd builddir && \
cmake .. \
2009-08-16 17:31:49 +00:00
-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)" \
2009-08-16 17:31:49 +00:00
-DCMAKE_SKIP_RPATH:BOOL=ON \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
#build: build-stamp
#build-stamp: builddir/Makefile
# dh_testdir
# $(MAKE) -C builddir VERBOSE=1
# touch $@
override_dh_auto_build: builddir/Makefile
2009-05-08 19:32:39 +02:00
$(MAKE) -C builddir
dh_auto_build
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_install:
$(MAKE) -C builddir DESTDIR=$(CURDIR)/debian/tmp install
dh_install
2008-12-07 10:34:04 +01:00
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
clean:
rm -rf builddir
dh $@
2009-05-08 19:32:39 +02:00
%:
dh $@