[package] restrict v4l to 2.6 kernels only since it uses v4l2 includes (#6972)
[openwrt/svn-archive/archive.git] / utils / tmux / Makefile
1 #
2 # Copyright (C) 2009-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10
11 PKG_NAME:=tmux
12 PKG_VERSION:=1.2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/tmux
17 PKG_MD5SUM:=748fbe7bb5f86812e19bd6005ff21a5a
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/tmux
22 SECTION:=utils
23 CATEGORY:=Utilities
24 TITLE:=Terminal multiplexer
25 DEPENDS:=+libncurses +libevent +librt
26 URL:=http://tmux.sourceforge.net
27 endef
28
29 define Package/tmux/description
30 tmux is a modern, BSD-licensed alternative to GNU screen.
31 endef
32
33 define Build/Compile
34 CC="$(TARGET_CC)" \
35 CFLAGS="$(TARGET_CFLAGS)" \
36 CPPFLAGS="$(TARGET_CPPFLAGS)" \
37 LDFLAGS="$(TARGET_LDFLAGS)" \
38 TMUX_PLATFORM="Linux" \
39 $(MAKE) -C $(PKG_BUILD_DIR) all
40 endef
41
42 define Package/tmux/install
43 $(INSTALL_DIR) $(1)/usr/bin
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/tmux $(1)/usr/bin/
45 endef
46
47 $(eval $(call BuildPackage,tmux))