2 # Copyright (C) 2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
13 PKG_SOURCE
:=tcl
$(PKG_VERSION
)-src.
tar.gz
14 PKG_SOURCE_URL
:=@SF
/tcl
15 PKG_MD5SUM
:=ade2c033a7b545ee108f3fdfeb629fcf
17 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)$(PKG_VERSION
)
19 include $(INCLUDE_DIR
)/package.mk
25 URL
:=http
://www.tcl.tk
28 define Package
/tcl
/description
29 TCL Scripting Language
32 define Build
/Configure
33 (cd
$(PKG_BUILD_DIR
)/unix
; \
34 autoconf configure.in
> configure
; \
35 sed
-i.bak
"s/relid'/relid/" configure
; \
36 $(TARGET_CONFIGURE_OPTS
) \
38 --build
=$(GNU_HOST_NAME
) \
39 --host
=$(GNU_TARGET_NAME
) \
48 $(MAKE
) -C
$(PKG_BUILD_DIR
)/unix \
49 DESTDIR
="$(PKG_INSTALL_DIR)" \
53 define Build
/InstallDev
54 $(INSTALL_DIR
) $(1)/usr
/include
55 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/*.h
$(1)/usr
/include/
56 $(INSTALL_DIR
) $(1)/usr
/lib
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libtcl
*.
{a
,so
*} $(1)/usr
/lib
/
61 define Package
/tcl
/install
62 $(INSTALL_DIR
) $(1)/usr
/lib
63 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
$(1)/usr
/lib
64 $(INSTALL_DIR
) $(1)/usr
/bin
65 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
68 $(eval
$(call BuildPackage
,tcl
))