2008-09-13 12:53:24 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2008 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2008-11-16 19:31:42 +00:00
|
|
|
# $Id: Makefile 12808 2008-09-29 20:43:20Z lars $
|
2008-09-13 12:53:24 +00:00
|
|
|
|
2008-09-02 00:49:46 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=vte
|
2008-11-17 00:21:07 +00:00
|
|
|
PKG_VERSION:=0.17.4
|
2008-09-02 00:49:46 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2008-11-17 00:21:07 +00:00
|
|
|
PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/0.17
|
|
|
|
PKG_MD5SUM:=ec6cb2668db7146eae7cfc48af98f3ed
|
2008-09-02 00:49:46 +00:00
|
|
|
PKG_FIXUP:=libtool
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2008-09-13 12:53:24 +00:00
|
|
|
-include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
|
|
|
|
|
|
|
|
PKG_INSTALL=1
|
|
|
|
|
|
|
|
EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/lib/libintl/include
|
2008-09-02 00:49:46 +00:00
|
|
|
|
2008-09-13 12:53:24 +00:00
|
|
|
EXTRA_LDFLAGS+= \
|
|
|
|
-Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
|
|
|
|
-L$(STAGING_DIR)/usr/lib/libintl/lib \
|
|
|
|
-L$(STAGING_DIR)/usr/lib/libiconv/lib
|
2008-09-02 00:49:46 +00:00
|
|
|
|
2008-09-13 12:53:24 +00:00
|
|
|
STAMP_CONFIGURED:=$(STAMP_CONFIGURED)_$(call confvar,CONFIG_PACKAGE_vte CONFIG_PACKAGE_python-vte)
|
2008-09-02 00:49:46 +00:00
|
|
|
|
|
|
|
define Package/vte
|
|
|
|
SECTION:=xorg-libs
|
|
|
|
CATEGORY:=Xorg
|
|
|
|
SUBMENU:=libraries
|
|
|
|
TITLE:=Virtual Terminal Widget
|
|
|
|
URL:=http://developer.gnome.org/arch/gnome/widgets/vte.html
|
2008-09-29 20:43:20 +00:00
|
|
|
DEPENDS:=+gtk2 +libncurses
|
2008-09-13 12:53:24 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/python-vte
|
|
|
|
SECTION:=lang-python
|
|
|
|
CATEGORY:=Languages
|
2008-09-13 13:45:36 +00:00
|
|
|
SUBMENU:=Python
|
2008-09-13 12:53:24 +00:00
|
|
|
TITLE:=Python bindings for vte
|
|
|
|
URL:=http://developer.gnome.org/arch/gnome/widgets/vte.html
|
2009-01-02 02:55:20 +00:00
|
|
|
DEPENDS:=python-core +PACKAGE_python-vte:python-gtk +vte
|
2008-09-02 00:49:46 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/vte/description
|
2008-09-13 12:53:24 +00:00
|
|
|
VTE is a library (libvte) implementing a terminal emulator widget for GTK+,
|
|
|
|
and a minimal sample application (vte) using that. Vte is mainly used in
|
|
|
|
gnome-terminal, but can also be used to embed a console/terminal in games,
|
|
|
|
editors, IDEs, etc.
|
2008-09-02 00:49:46 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
2008-09-13 12:53:24 +00:00
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--without-xft2 \
|
2008-09-13 17:37:28 +00:00
|
|
|
$(if $(CONFIG_PACKAGE_python-vte),--enable-python,--disable-python) \
|
2008-09-13 12:53:24 +00:00
|
|
|
)
|
2008-09-02 00:49:46 +00:00
|
|
|
endef
|
|
|
|
|
2008-09-13 12:53:24 +00:00
|
|
|
define Build/InstallDev
|
2008-11-17 00:21:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include/vte
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include/vte/*.h \
|
|
|
|
$(1)/usr/include/vte/
|
|
|
|
|
2008-09-13 12:53:24 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(INSTALL_DATA) \
|
2008-11-17 00:21:07 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/*.{so*,la,a} \
|
2008-09-13 12:53:24 +00:00
|
|
|
$(1)/usr/lib
|
2008-09-02 00:49:46 +00:00
|
|
|
|
2008-09-13 12:53:24 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
|
|
|
|
$(1)/usr/lib/pkgconfig
|
2008-09-02 00:49:46 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/vte/install
|
2008-09-13 12:53:24 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/share/vte/termcap
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/share/vte/termcap/* \
|
|
|
|
$(1)/usr/share/vte/termcap
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(INSTALL_DATA) \
|
2008-11-17 00:21:07 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/*.so* \
|
2008-09-13 12:53:24 +00:00
|
|
|
$(1)/usr/lib
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/vte
|
|
|
|
$(INSTALL_BIN) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/vte/* \
|
|
|
|
$(1)/usr/lib/vte
|
2008-09-02 00:49:46 +00:00
|
|
|
endef
|
2008-09-13 12:53:24 +00:00
|
|
|
|
|
|
|
define Package/python-vte/install
|
|
|
|
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/gtk-2.0
|
|
|
|
$(INSTALL_DATA) \
|
2008-11-17 00:21:07 +00:00
|
|
|
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/gtk-2.0/*.so* \
|
2008-09-13 12:53:24 +00:00
|
|
|
$(1)$(PYTHON_PKG_DIR)/gtk-2.0
|
|
|
|
endef
|
|
|
|
|
2008-09-02 00:49:46 +00:00
|
|
|
$(eval $(call BuildPackage,vte))
|
2008-09-13 12:53:24 +00:00
|
|
|
$(eval $(call BuildPackage,python-vte))
|
2008-09-02 00:49:46 +00:00
|
|
|
|
|
|
|
|