openwrt_archive/Xorg/app/eterm/Makefile
Jo-Philipp Wich 6af04d49d1 [packages_10.03.2] merge r30006
SVN-Revision: 30017
2012-02-03 15:58:07 +00:00

70 lines
1.6 KiB
Makefile

#
# Copyright (C) 2007-2010 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:=2
PKG_SOURCE:=Eterm-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.eterm.org/download/
PKG_BUILD_DIR:=$(BUILD_DIR)/Eterm-$(PKG_VERSION)
PKG_MD5SUM:=b8869ee9c9b9516231af9eefa595cee3
PKG_FIXUP:=libtool
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/nls.mk
define Package/eterm/Default
SECTION:=xorg-extra
CATEGORY:=Xorg
SUBMENU:=terminals
endef
define Package/eterm
$(call Package/eterm/Default)
TITLE:=eterm
DEPENDS:=+libX11 +libXcursor +imlib2 +libast $(ICONV_DEPENDS)
endef
define Package/esetroot
$(call Package/eterm/Default)
TITLE:=esetroot
DEPENDS:=eterm
endef
CONFIGURE_ARGS += \
--with-imlib=$(STAGING_DIR)/usr/
CONFIGURE_VARS += \
LIBS="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib"
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR)\
CPPFLAGS="$(TARGET_CPPFLAGS) -I$(ICONV_PREFIX)/include/" \
LDFLAGS="$(TARGET_LDFLAGS) -L$(ICONV_PREFIX)/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
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/Eterm $(1)/usr/bin
endef
define Package/esetroot/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/Esetroot $(1)/usr/bin
endef
$(eval $(call BuildPackage,esetroot))
$(eval $(call BuildPackage,eterm))