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
|
2006-05-13 08:45:19 +00:00
|
|
|
|
|
|
|
DEB_STRIP_EXCLUDE := libperl.a
|
|
|
|
DEB_DH_INSTALL_SOURCEDIR := $(CURDIR)/debian/tmp
|
2006-03-18 12:07:14 +00:00
|
|
|
|
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)
|
2006-03-18 12:07:14 +00:00
|
|
|
ifeq ($(DEB_HOST_ARCH_OS),hurd)
|
2008-12-07 10:34:04 +01:00
|
|
|
DEB_CONFIGURE_SCRIPT_ENV += LDFLAGS="-lpthread"
|
2006-03-18 12:07:14 +00:00
|
|
|
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
|