weechat/debian/rules

29 lines
812 B
Plaintext
Raw Normal View History

2003-09-27 10:01:11 +00:00
#!/usr/bin/make -f
2008-12-07 10:34:04 +01:00
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/cmake.mk
DEB_STRIP_EXCLUDE := libperl.a
DEB_DH_INSTALL_SOURCEDIR := $(CURDIR)/debian/tmp
2003-09-27 10:01:11 +00:00
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
2008-12-07 10:34:04 +01:00
CFLAGS += -O0
2003-09-27 10:01:11 +00:00
else
2008-12-07 10:34:04 +01:00
CFLAGS += -O2
2003-09-27 10:01:11 +00:00
endif
2008-12-07 10:34:04 +01:00
2003-09-27 10:01:11 +00:00
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
2008-12-07 10:34:04 +01:00
INSTALL_PROGRAM += -s
2003-09-27 10:01:11 +00:00
endif
2008-12-07 10:34:04 +01:00
DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
ifeq ($(DEB_HOST_ARCH_OS),hurd)
2008-12-07 10:34:04 +01:00
DEB_CONFIGURE_SCRIPT_ENV += LDFLAGS="-lpthread"
endif
2008-12-07 10:34:04 +01:00
install/weechat-core::
install -D -o root -g root -m 644 debian/weechat.xpm $(CURDIR)/debian/weechat-core/usr/share/pixmaps/weechat.xpm
2006-10-31 15:47:55 +00:00
install/weechat-curses::
install -D -o root -g root -m 644 debian/lintian-override $(CURDIR)/debian/weechat-curses/usr/share/lintian/overrides/weechat-curses