packages/Xorg/app/xterm/Makefile
lars a73c64c79c Update xterm to 242.
git-svn-id: svn://svn.openwrt.org/openwrt/packages@14798 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-03-09 00:58:58 +00:00

48 lines
1.1 KiB
Makefile

#
# Copyright (C) 2007-2008 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# blogic@openwrt.org
include $(TOPDIR)/rules.mk
PKG_NAME:=xterm
PKG_VERSION:=242
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=ftp://mirror1.openwrt.org/
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
define Package/xterm
SECTION:=xorg-extra
CATEGORY:=Xorg
SUBMENU:=terminals
TITLE:=xterm
DEPENDS:=+libX11 +libncurses +libXaw
endef
define Build/Configure
# sed -e "s%/usr/contrib/X11R6%${STAGING_DIR}/usr/lib%g" -i $(PKG_BUILD_DIR)/configure
cd $(PKG_BUILD_DIR)/; $(TARGET_CONFIGURE_OPTS) $(CONFIGURE_VARS) \
$(CONFIGURE_CMD) \
$(CONFIGURE_ARGS_XTRA) \
$(CONFIGURE_ARGS) \
--host=$(GNU_TARGET_NAME) \
--x-includes=$(STAGING_DIR)/usr/include/ \
--x-libraries=$(STAGING_DIR)/usr/lib/ \
LIBS="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib"
endef
define Package/xterm/install
$(INSTALL_DIR) $(1)/usr/
$(CP) $(PKG_INSTALL_DIR)/usr/bin $(1)/usr/
$(CP) $(PKG_INSTALL_DIR)/usr/lib $(1)/usr/
endef
$(eval $(call BuildPackage,xterm))