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