[packages] Add missing md5sums
[packages.git] / Xorg / app / xterm / Makefile
1 #
2 # Copyright (C) 2007-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 # blogic@openwrt.org
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=xterm
12 PKG_VERSION:=242
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=ftp://mirror1.openwrt.org/
17 PKG_MD5SUM:=663fa3aac8e30e4c2d4bf07c0aee4dca
18
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/xterm
24   SECTION:=xorg-extra
25   CATEGORY:=Xorg
26   SUBMENU:=terminals
27   TITLE:=xterm
28   DEPENDS:=+libX11 +libncurses +libXaw
29 endef
30
31 define Build/Configure
32 #       sed -e "s%/usr/contrib/X11R6%${STAGING_DIR}/usr/lib%g" -i $(PKG_BUILD_DIR)/configure
33         cd  $(PKG_BUILD_DIR)/; $(TARGET_CONFIGURE_OPTS) $(CONFIGURE_VARS) \
34                 $(CONFIGURE_CMD) \
35                 $(CONFIGURE_ARGS_XTRA) \
36                 $(CONFIGURE_ARGS) \
37                 --host=$(GNU_TARGET_NAME) \
38                 --x-includes=$(STAGING_DIR)/usr/include/  \
39                 --x-libraries=$(STAGING_DIR)/usr/lib/ \
40                 LIBS="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib"
41 endef
42
43 define Package/xterm/install
44         $(INSTALL_DIR) $(1)/usr/ $(1)/usr/share/applications $(1)/usr/share/icons
45         $(CP) $(PKG_INSTALL_DIR)/usr/bin $(1)/usr/
46         $(CP) $(PKG_INSTALL_DIR)/usr/lib $(1)/usr/
47         $(CP) ./files/xterm.desktop $(1)/usr/share/applications/
48         $(CP) ./files/terminal.png $(1)/usr/share/icons/
49 endef
50
51 $(eval $(call BuildPackage,xterm))