5726855fb9e22a61d18bf91bddbe2de961683a80
[openwrt/svn-archive/archive.git] / XOrg / lib / vte / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=vte
4 PKG_VERSION:=0.16.14
5 PKG_RELEASE:=1
6
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
8 PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/0.16
9 PKG_MD5SUM:=9df3e35b81b209952ac1cf7904f7b620
10 PKG_FIXUP:=libtool
11
12 include $(INCLUDE_DIR)/package.mk
13
14 EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/lib/libintl/include/
15
16 EXTRA_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
17 -L$(STAGING_DIR)/usr/lib/libintl/lib \
18 -L$(STAGING_DIR)/usr/lib/libiconv/lib
19
20 define Package/vte
21 SECTION:=xorg-libs
22 CATEGORY:=Xorg
23 SUBMENU:=libraries
24 TITLE:=Virtual Terminal Widget
25 URL:=http://developer.gnome.org/arch/gnome/widgets/vte.html
26 DEPENDS:=+python +gtk2
27 endef
28
29 define Package/vte/description
30 VTE is a library (libvte) implementing a terminal emulator widget for GTK+,
31 and a minimal sample application (vte) using that. Vte is mainly used in
32 gnome-terminal, but can also be used to embed a console/terminal in games,
33 editors, IDEs, etc.
34 endef
35
36 define Build/Configure
37 $(call Build/Configure/Default,--without-xft2)
38 endef
39
40 define Build/Compile
41 make -C $(PKG_BUILD_DIR)
42 make -C $(PKG_BUILD_DIR)/ install DESTDIR=$(PKG_INSTALL_DIR)
43 endef
44
45 define Build/InstallDev
46 $(INSTALL_DIR) $(1)/usr/lib/
47 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,la} $(1)/usr/lib/
48 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
49 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig
50 $(CP) $(PKG_INSTALL_DIR)/* $(1)
51 endef
52
53 define Package/vte/install
54 $(INSTALL_DIR) $(1)/usr/share/vte/termcap/
55 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/vte/termcap/* $(1)/usr/share/vte/termcap/
56 $(INSTALL_DIR) $(1)/usr/lib/
57 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a} $(1)/usr/lib/
58 $(INSTALL_DIR) $(1)/usr/lib/vte/
59 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/vte/* $(1)/usr/lib/vte/
60 $(INSTALL_DIR) $(1)/usr/lib/python2.5/site-packages/gtk-2.0/
61 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/python2.5/site-packages/gtk-2.0/*.{so*,a} \
62 $(1)/usr/lib/python2.5/site-packages/gtk-2.0/
63 $(CP) $(PKG_INSTALL_DIR)/* $(1)
64 endef
65
66 $(eval $(call BuildPackage,vte))
67
68