- update to Xorg X11R7.4 and reorganization of the xorg-section
[openwrt/svn-archive/archive.git] / Xorg / lib / vte / Makefile
1 #
2 # Copyright (C) 2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: Makefile 12808 2008-09-29 20:43:20Z lars $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=vte
12 PKG_VERSION:=0.16.14
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/0.16
17 PKG_MD5SUM:=9df3e35b81b209952ac1cf7904f7b620
18 PKG_FIXUP:=libtool
19
20 include $(INCLUDE_DIR)/package.mk
21 -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
22
23 PKG_INSTALL=1
24
25 EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/lib/libintl/include
26
27 EXTRA_LDFLAGS+= \
28 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
29 -L$(STAGING_DIR)/usr/lib/libintl/lib \
30 -L$(STAGING_DIR)/usr/lib/libiconv/lib
31
32 STAMP_CONFIGURED:=$(STAMP_CONFIGURED)_$(call confvar,CONFIG_PACKAGE_vte CONFIG_PACKAGE_python-vte)
33
34 define Package/vte
35 SECTION:=xorg-libs
36 CATEGORY:=Xorg
37 SUBMENU:=libraries
38 TITLE:=Virtual Terminal Widget
39 URL:=http://developer.gnome.org/arch/gnome/widgets/vte.html
40 DEPENDS:=+gtk2 +libncurses
41 endef
42
43 define Package/python-vte
44 SECTION:=lang-python
45 CATEGORY:=Languages
46 SUBMENU:=Python
47 TITLE:=Python bindings for vte
48 URL:=http://developer.gnome.org/arch/gnome/widgets/vte.html
49 DEPENDS:=python-core +python-gtk +vte
50 endef
51
52 define Package/vte/description
53 VTE is a library (libvte) implementing a terminal emulator widget for GTK+,
54 and a minimal sample application (vte) using that. Vte is mainly used in
55 gnome-terminal, but can also be used to embed a console/terminal in games,
56 editors, IDEs, etc.
57 endef
58
59 define Build/Configure
60 $(call Build/Configure/Default, \
61 --without-xft2 \
62 $(if $(CONFIG_PACKAGE_python-vte),--enable-python,--disable-python) \
63 )
64 endef
65
66 define Build/InstallDev
67 $(INSTALL_DIR) $(1)/usr/lib
68 $(INSTALL_DATA) \
69 $(PKG_INSTALL_DIR)/usr/lib/*.{so*,la} \
70 $(1)/usr/lib
71
72 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
73 $(INSTALL_DATA) \
74 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
75 $(1)/usr/lib/pkgconfig
76 endef
77
78 define Package/vte/install
79 $(INSTALL_DIR) $(1)/usr/share/vte/termcap
80 $(INSTALL_DATA) \
81 $(PKG_INSTALL_DIR)/usr/share/vte/termcap/* \
82 $(1)/usr/share/vte/termcap
83
84 $(INSTALL_DIR) $(1)/usr/lib
85 $(INSTALL_DATA) \
86 $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a} \
87 $(1)/usr/lib
88
89 $(INSTALL_DIR) $(1)/usr/lib/vte
90 $(INSTALL_BIN) \
91 $(PKG_INSTALL_DIR)/usr/lib/vte/* \
92 $(1)/usr/lib/vte
93 endef
94
95 define Package/python-vte/install
96 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/gtk-2.0
97 $(INSTALL_DATA) \
98 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/gtk-2.0/*.{so*,a} \
99 $(1)$(PYTHON_PKG_DIR)/gtk-2.0
100 endef
101
102 $(eval $(call BuildPackage,vte))
103 $(eval $(call BuildPackage,python-vte))
104
105