libgee: moved to github
[openwrt/svn-archive/packages.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:=autoreconf
21 PKG_INSTALL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/tcl
26 SECTION:=lang
27 CATEGORY:=Languages
28 DEPENDS:=+libpthread
29 TITLE:=TCL Lang
30 URL:=http://www.tcl.tk
31 endef
32
33 define Package/tcl/description
34 Tcl (Tool Command Language) is a very powerful but easy to learn dynamic
35 programming language, suitable for a very wide range of uses, including web and
36 desktop applications, networking, administration, testing and many more. Open
37 source and business-friendly, Tcl is a mature yet evolving language that is truly
38 cross platform, easily deployed and highly extensible.
39 endef
40
41 CONFIGURE_PATH := unix
42
43 CONFIGURE_VARS += \
44 tcl_cv_strtod_unbroken=ok
45
46 CONFIGURE_ARGS += \
47 --enable-threads
48
49 MAKE_PATH := unix
50
51 define Build/InstallDev
52 $(INSTALL_DIR) $(1)/usr/include
53 $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
54
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtcl*.{a,so*} $(1)/usr/lib/
57 endef
58
59 define Package/tcl/install
60 $(INSTALL_DIR) $(1)/usr/lib
61 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so $(1)/usr/lib
62
63 $(INSTALL_DIR) $(1)/usr/bin
64 $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
65 endef
66
67 $(eval $(call BuildPackage,tcl))