pyqt4: depend on X11
[openwrt/svn-archive/archive.git] / lang / tcl / Makefile
1 #
2 # Copyright (C) 2006-2010 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:=tcl
11 PKG_VERSION:=8.5.8
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)$(PKG_VERSION)-src.tar.gz
15 PKG_SOURCE_URL:=@SF/tcl
16 PKG_MD5SUM:=7f123e53b3daaaba2478d3af5a0752e3
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)$(PKG_VERSION)
19
20 PKG_FIXUP:=libtool
21 PKG_INSTALL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/tcl
26 SECTION:=lang
27 CATEGORY:=Languages
28 TITLE:=TCL Lang
29 URL:=http://www.tcl.tk
30 endef
31
32 define Package/tcl/description
33 Tcl (Tool Command Language) is a very powerful but easy to learn dynamic
34 programming language, suitable for a very wide range of uses, including web and
35 desktop applications, networking, administration, testing and many more. Open
36 source and business-friendly, Tcl is a mature yet evolving language that is truly
37 cross platform, easily deployed and highly extensible.
38 endef
39
40 CONFIGURE_PATH := unix
41
42 CONFIGURE_VARS += \
43 tcl_cv_strtod_unbroken=ok
44
45 CONFIGURE_ARGS += \
46 --enable-threads
47
48 MAKE_PATH := unix
49
50 define Build/InstallDev
51 $(INSTALL_DIR) $(1)/usr/include
52 $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
53
54 $(INSTALL_DIR) $(1)/usr/lib
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtcl*.{a,so*} $(1)/usr/lib/
56 endef
57
58 define Package/tcl/install
59 $(INSTALL_DIR) $(1)/usr/lib
60 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so $(1)/usr/lib
61
62 $(INSTALL_DIR) $(1)/usr/bin
63 $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
64 endef
65
66 $(eval $(call BuildPackage,tcl))