[packages] tmux: Update to v1.2
[packages.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) -I$(STAGING_DIR)/usr/include" \
36         LDFLAGS="$(TARGET_LDFLAGS)" \
37         TMUX_PLATFORM="Linux" \
38         $(MAKE) -C $(PKG_BUILD_DIR) all
39 endef
40
41 define Package/tmux/install
42         $(INSTALL_DIR) $(1)/usr/bin
43         $(INSTALL_BIN) $(PKG_BUILD_DIR)/tmux $(1)/usr/bin/
44 endef
45
46 $(eval $(call BuildPackage,tmux))