Check-in [5f6fa113cf]
Overview
Comment:Added "tcc" package
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 5f6fa113cf73722116a63e5a6d092d1c0fa26470
User & Date: rkeene on 2011-07-25 12:27:56
Other Links: manifest | tags
Context
2011-07-25
13:52
Updated TCC to build only on ix86/x86_64 platforms Fixed bugs in TCC 0.4 with patches and build.sh updates check-in: 3e4cf5d7be user: rkeene tags: trunk
12:27
Added "tcc" package check-in: 5f6fa113cf user: rkeene tags: trunk
2011-07-22
18:48
Fixed bug in "udp" build check-in: 4788b6cc82 user: rkeene tags: trunk
Changes

Modified .fossil-settings/ignore-glob from [d6ed3f72ed] to [8eb7a27854].

22
23
24
25
26
27
28






29
30
31
32
33
34
35
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41







+
+
+
+
+
+







server/buildpkgs/platform.magic.*/*
server/buildpkgs/sqlite3/build
server/buildpkgs/sqlite3/build/*
server/buildpkgs/sqlite3/out
server/buildpkgs/sqlite3/out/*
server/buildpkgs/sqlite3/src
server/buildpkgs/sqlite3/src/*
server/buildpkgs/tcc/build
server/buildpkgs/tcc/build/*
server/buildpkgs/tcc/out
server/buildpkgs/tcc/out/*
server/buildpkgs/tcc/src
server/buildpkgs/tcc/src/*
server/buildpkgs/tcl
server/buildpkgs/tcl/*
server/buildpkgs/tcllib/build
server/buildpkgs/tcllib/build/*
server/buildpkgs/tcllib/out
server/buildpkgs/tcllib/out/*
server/buildpkgs/tcllib/src

Added server/buildpkgs/tcc/build.sh version [11bc7d10bb].















































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
42
43
44
45
46
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
#! /bin/bash

# Define parameters
VERS=0.4
SRC="src/tcltcc${VERS}.zip"
SRCURL="http://tcltcc.googlecode.com/files/tcltcc${VERS}.zip"
BUILDDIR="tcltcc-${VERS}"
export VERS SRC SRCURL BUILDDIR

# Load common functions
source ../common.sh

# Do not build if the "tcl" platform has been requested
not_platforms 'tcl'

# Download source
download_src

# Build package
(
	rm -rf build
	mkdir -p "${PLATDIR}" >/dev/null 2>/dev/null
	mkdir build

	cd build/ || exit 1
	mkdir "${BUILDDIR}"
	cd "${BUILDDIR}" || exit 1

	unzip -q "../../${SRC}"

	# TCC ships with object files in the way
	${MAKE:-make} distclean >/dev/null 2>/dev/null

	bash ./configure --enable-shared --enable-threads --with-tcl="${TCLCONFIGDIR}" --prefix="${PLATDIR}" --libdir="${PLATDIR}" --bindir="${PLATDIR}" ${CONFIGUREEXTRA}

	${MAKE:-make} || exit 1

	${MAKE:-make} install-binaries PKG_DIR='' || exit 1

	rm -f "${PLATDIR}"/*.a
) || exit 1

# Create metadata
../create_teapot "${PLATDIR}/teapot.txt" "tcc" "${VERS}" "${SRCURL}" "${PLATFORM}" "Tcl 8.4" "Tcltcc provides a Tcl binding to the TinyCC compiler. It allows dynamic compilation of C code from within a Tcl interpreter."

exit 0