Diff

Differences From Artifact [11bc7d10bb]:

To Artifact [49725eb0a2]:


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

# 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








>
>
>



|


<







>
>
>
>
>
>
>
>
>
>
>



>
>
>







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
47
48
49
50
51
52
53
54
55

# Load common functions
source ../common.sh

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

# Only build for the following platforms
only_platforms_regexp '-ix86$' '-x86_64$'

# Download source
download_src

# Extract package
(
	rm -rf build

	mkdir build

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

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

# Apply patches
apply_patches

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

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

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

	# This file needs to be executable, but it is not by default in 0.4
	chmod +x tclconfig/install-sh

	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