From 4bc7e78cd7456c952eed5078a9b789c460f5d342 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Tue, 9 Oct 2007 22:09:44 +0000 Subject: [PATCH] added eterm, so we can edit X backgrounds SVN-Revision: 9231 --- XOrg/app/eterm/Makefile | 69 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 XOrg/app/eterm/Makefile diff --git a/XOrg/app/eterm/Makefile b/XOrg/app/eterm/Makefile new file mode 100644 index 000000000..12e735f2e --- /dev/null +++ b/XOrg/app/eterm/Makefile @@ -0,0 +1,69 @@ +# +# Copyright (C) 2007 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:=eterm +PKG_VERSION:=0.9.4 +PKG_RELEASE:=1 + +PKG_SOURCE:=Eterm-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://www.eterm.org/download/ +PKG_BUILD_DIR:=$(BUILD_DIR)/Eterm-$(PKG_VERSION) + +include $(INCLUDE_DIR)/package.mk + +define Package/eterm/Default + SECTION:=xorg-extra + CATEGORY:=Xorg + SUBMENU:=terminals + +endef + +define Package/eterm +$(call Package/eterm/Default) + TITLE:=eterm + DEPENDS:=+xorg-server-essentials +libXcursor +imlib2 +libast @TARGET_x86 +endef + +define Package/esetroot +$(call Package/eterm/Default) + TITLE:=esetroot + DEPENDS:=eterm +endef + +CONFIGURE_ARGS+=--with-imlib=$(STAGING_DIR)/usr/ + +define Build/Configure + cd $(PKG_BUILD_DIR)/; $(TARGET_CONFIGURE_OPTS) $(CONFIGURE_VARS) \ + $(CONFIGURE_CMD) \ + $(CONFIGURE_ARGS_XTRA) \ + $(CONFIGURE_ARGS) \ + LIBS="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib" +endef + +define Build/Compile + $(MAKE) -C $(PKG_BUILD_DIR)\ + CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/lib/libiconv/include/" \ + LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib/libiconv/lib/" + $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install +endef + +define Package/eterm/install + $(INSTALL_DIR) $(1)/usr/{bin,lib} + $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*so* $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/bin/Eterm $(1)/usr/bin +endef + +define Package/esetroot/install + $(INSTALL_DIR) $(1)/usr/bin + $(CP) $(PKG_INSTALL_DIR)/usr/bin/Esetroot $(1)/usr/bin +endef + +$(eval $(call BuildPackage,esetroot)) +$(eval $(call BuildPackage,eterm)) -- 2.30.2