irqbalance: upgrade to version 1.8.0
[feed/packages.git] / utils / irqbalance / Makefile
1 # This is free software, licensed under the GNU General Public License v2.
2 # See /LICENSE for more information.
3 #
4
5 include $(TOPDIR)/rules.mk
6
7 PKG_NAME:=irqbalance
8 PKG_VERSION:=1.8.0
9 PKG_RELEASE:=1
10
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
12 PKG_SOURCE_PROTO:=git
13 PKG_SOURCE_URL:=https://github.com/Irqbalance/irqbalance.git
14 PKG_SOURCE_VERSION:=99ae256d02b35778b406e598beedc8d827cdac18
15 PKG_MIRROR_HASH:=35a9607ccc7827209cbe5cfeb5d5354ad3c1f95ffdefa866a016758680a40b4e
16 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
17 PKG_LICENSE:=GPLv2
18
19 PKG_MAINTAINER:=Hannu Nyman <hannu.nyman@iki.fi>
20
21 PKG_FIXUP:=autoreconf
22 PKG_REMOVE_FILES:=autogen.sh
23
24 PKG_BUILD_PARALLEL:=1
25
26 include $(INCLUDE_DIR)/nls.mk
27
28 include $(INCLUDE_DIR)/package.mk
29
30 PKG_BUILD_DEPENDS += glib2
31
32 define Package/irqbalance
33 SECTION:=utils
34 CATEGORY:=Utilities
35 DEPENDS:=$(ICONV_DEPENDS) $(INTL_DEPENDS)
36 TITLE:=IRQ usage balancing for multi-core systems
37 URL:=https://github.com/Irqbalance/irqbalance
38 endef
39
40 define Package/irqbalance/description
41 The purpose of irqbalance is to distribute hardware interrupts across
42 processors/cores on a multiprocessor/multicore system in order to
43 increase performance.
44 endef
45
46 CONFIGURE_ARGS+= \
47 --disable-numa \
48 --with-libcap_ng=no \
49 --with-systemd=no \
50 --without-irqbalance-ui \
51 --enable-static=glib2
52
53 GLIB2_LIBS="$(STAGING_DIR)/usr/lib/libglib-2.0.a"
54
55 ifeq ($(CONFIG_BUILD_NLS),y)
56 GLIB2_LIBS += $(INTL_LDFLAGS) -lintl
57 endif
58
59 ifeq ($(CONFIG_USE_GLIBC),y)
60 GLIB2_LIBS += -lpthread
61 endif
62
63 CONFIGURE_VARS += \
64 GLIB2_LIBS="$(GLIB2_LIBS) \
65 $(ICONV_LDFLAGS) -liconv"
66
67 define Package/irqbalance/conffiles
68 /etc/config/irqbalance
69 endef
70
71 define Package/irqbalance/install
72 $(INSTALL_DIR) $(1)/usr/sbin
73 $(INSTALL_BIN) $(PKG_BUILD_DIR)/irqbalance $(1)/usr/sbin/
74 $(INSTALL_DIR) $(1)/etc/init.d
75 $(INSTALL_BIN) ./files/irqbalance.init $(1)/etc/init.d/irqbalance
76 $(INSTALL_DIR) $(1)/etc/config
77 $(INSTALL_DATA) ./files/irqbalance.config $(1)/etc/config/irqbalance
78 endef
79
80 $(eval $(call BuildPackage,irqbalance))