Retain symlinks. $(INSTALL_*) copys the contens of a file, so if we want to keep
[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.17.4
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/0.17
17 PKG_MD5SUM:=ec6cb2668db7146eae7cfc48af98f3ed
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 +PACKAGE_python-vte: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/include/vte
68 $(INSTALL_DATA) \
69 $(PKG_INSTALL_DIR)/usr/include/vte/*.h \
70 $(1)/usr/include/vte/
71
72 $(INSTALL_DIR) $(1)/usr/lib
73 $(CP) \
74 $(PKG_INSTALL_DIR)/usr/lib/*.{so*,la,a} \
75 $(1)/usr/lib
76
77 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
78 $(INSTALL_DATA) \
79 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
80 $(1)/usr/lib/pkgconfig
81 endef
82
83 define Package/vte/install
84 $(INSTALL_DIR) $(1)/usr/share/vte/termcap
85 $(INSTALL_DATA) \
86 $(PKG_INSTALL_DIR)/usr/share/vte/termcap/* \
87 $(1)/usr/share/vte/termcap
88
89 $(INSTALL_DIR) $(1)/usr/lib
90 $(CP) \
91 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
92 $(1)/usr/lib
93
94 $(INSTALL_DIR) $(1)/usr/lib/vte
95 $(INSTALL_BIN) \
96 $(PKG_INSTALL_DIR)/usr/lib/vte/* \
97 $(1)/usr/lib/vte
98 endef
99
100 define Package/python-vte/install
101 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/gtk-2.0
102 $(CP) \
103 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/gtk-2.0/*.so* \
104 $(1)$(PYTHON_PKG_DIR)/gtk-2.0
105 endef
106
107 $(eval $(call BuildPackage,vte))
108 $(eval $(call BuildPackage,python-vte))