summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorEmmanuel Bouthenot <kolter@openics.org>2009-05-08 19:32:39 +0200
committerEmmanuel Bouthenot <kolter@openics.org>2009-05-08 19:32:39 +0200
commitefa37abdb8645e279dbf05214248c50e062a7b32 (patch)
tree19634f4bbb34c3e18260d6ef77c534de11c79177 /debian/rules
parent50b6fefdeba1f80d96ed1b95754bdd9f58005bbf (diff)
downloadweechat-efa37abdb8645e279dbf05214248c50e062a7b32.zip
Update debian packaging.
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules46
1 files changed, 25 insertions, 21 deletions
diff --git a/debian/rules b/debian/rules
index b06da34fb..62bfa08f5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,28 +1,32 @@
#!/usr/bin/make -f
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/class/cmake.mk
+builddir/Makefile:
+ mkdir -p builddir
+ cd builddir && \
+ cmake .. \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_C_FLAGS="$(CFLAGS)" \
+ -DCMAKE_LD_FLAGS="-Wl,-z,defs" \
+ -DCMAKE_CXX_FLAGS="$(CXXFLAGS)" \
+ -DCMAKE_SKIP_RPATH=ON \
+ -DCMAKE_VERBOSE_MAKEFILE=ON
-DEB_STRIP_EXCLUDE := libperl.a
-DEB_DH_INSTALL_SOURCEDIR := $(CURDIR)/debian/tmp
+build: build-stamp
+build-stamp: builddir/Makefile
+ dh_testdir
+ $(MAKE) -C builddir
+ touch $@
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -O0
-else
- CFLAGS += -O2
-endif
+override_dh_install:
+ $(MAKE) -C builddir DESTDIR=$(CURDIR)/debian/tmp install
+ dh_install
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
- INSTALL_PROGRAM += -s
-endif
+override_dh_strip:
+ dh_strip --dbg-package=weechat-dbg
-DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
-ifeq ($(DEB_HOST_ARCH_OS),hurd)
- DEB_CONFIGURE_SCRIPT_ENV += LDFLAGS="-lpthread"
-endif
+clean:
+ rm -rf builddir
+ dh $@
-install/weechat-core::
- install -D -o root -g root -m 644 debian/weechat.xpm $(CURDIR)/debian/weechat-core/usr/share/pixmaps/weechat.xpm
-
-install/weechat-curses::
- install -D -o root -g root -m 644 debian/lintian-override $(CURDIR)/debian/weechat-curses/usr/share/lintian/overrides/weechat-curses
+%:
+ dh $@