2 # Copyright (C) 2007-2008 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
/
19 include $(INCLUDE_DIR
)/package.mk
26 DEPENDS
:=+libX11
+libncurses
+libXaw
29 define Build
/Configure
30 # sed -e "s%/usr/contrib/X11R6%${STAGING_DIR}/usr/lib%g" -i $(PKG_BUILD_DIR)/configure
31 cd
$(PKG_BUILD_DIR
)/; $(TARGET_CONFIGURE_OPTS
) $(CONFIGURE_VARS
) \
33 $(CONFIGURE_ARGS_XTRA
) \
35 --host
=$(GNU_TARGET_NAME
) \
36 --x-includes
=$(STAGING_DIR
)/usr
/include/ \
37 --x-libraries
=$(STAGING_DIR
)/usr
/lib
/ \
38 LIBS
="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib"
41 define Package
/xterm
/install
42 $(INSTALL_DIR
) $(1)/usr
/
43 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
$(1)/usr
/
44 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
$(1)/usr
/
47 $(eval
$(call BuildPackage
,xterm
))