summaryrefslogtreecommitdiff
path: root/package/tcl/Makefile
blob: a78ed1521f2039c8345b0a2d2f2f3da4e94ad3d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${ADK_TOPDIR}/rules.mk

PKG_NAME:=		tcl
PKG_VERSION:=		8.6.6
PKG_RELEASE:=		1
PKG_HASH:=		a265409781e4b3edcc4ef822533071b34c3dc6790b893963809b9fe221befe07
PKG_DESCR:=		tcl scripting language
PKG_SECTION:=		dev/lang
PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=tcl/}

DISTFILES:=		tcl${PKG_VERSION}-src.tar.gz
WRKDIST=		${WRKDIR}/tcl${PKG_VERSION}
WRKSRC=			${WRKDIST}/unix

include ${ADK_TOPDIR}/mk/package.mk

$(eval $(call PKG_template,TCL,tcl,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

TARGET_CFLAGS:=		$(filter-out -ffast-math,$(TARGET_CFLAGS))
TARGET_LDFLAGS+=	-ldl
CONFIGURE_ENV+=		tcl_cv_strstr_unbroken=ok \
			tcl_cv_strtod_buggy=ok \
			tcl_cv_strtod_unbroken=ok \
			tcl_cv_strtoul_unbroken=ok \
			tcl_cv_sys_version="Linux-2.6"
CONFIGURE_ARGS+=	--enable-man-symlinks \
			--disable-rpath
INSTALL_TARGET=		install-binaries install-libraries

tcl-install:
	${INSTALL_DIR} ${IDIR_TCL}/usr/lib ${IDIR_TCL}/usr/bin
	${CP} ${WRKINST}/usr/bin/* ${IDIR_TCL}/usr/bin
	cd ${IDIR_TCL}/usr/bin && ln -sf tclsh8.5 tclsh
	${CP} ${WRKINST}/usr/lib/*.so* ${IDIR_TCL}/usr/lib
	${CP} ${WRKINST}/usr/lib/tcl8 ${IDIR_TCL}/usr/lib
	${CP} ${WRKINST}/usr/lib/tcl8.6 ${IDIR_TCL}/usr/lib

include ${ADK_TOPDIR}/mk/pkg-bottom.mk