added eterm, so we can edit X backgrounds
authorJohn Crispin <john@openwrt.org>
Tue, 9 Oct 2007 22:09:44 +0000 (22:09 +0000)
committerJohn Crispin <john@openwrt.org>
Tue, 9 Oct 2007 22:09:44 +0000 (22:09 +0000)
SVN-Revision: 9231

XOrg/app/eterm/Makefile [new file with mode: 0644]

diff --git a/XOrg/app/eterm/Makefile b/XOrg/app/eterm/Makefile
new file mode 100644 (file)
index 0000000..12e735f
--- /dev/null
@@ -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))