2 # Copyright (C) 2007-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=ftp
://mirror1.openwrt.org
/
17 PKG_MD5SUM
:=663fa3aac8e30e4c2d4bf07c0aee4dca
21 include $(INCLUDE_DIR
)/package.mk
28 DEPENDS
:=+libX11
+libncurses
+libXaw
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
) \
35 $(CONFIGURE_ARGS_XTRA
) \
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"
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
/
51 $(eval
$(call BuildPackage
,xterm
))