Check-in [8d94c2989e]
Overview
Comment:Removed building shared verions of code

Added support for passing arguments to child "configure" scripts

Added Solaris compile support

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 8d94c2989e89cffa47f28cd4404409471063316d
User & Date: rkeene on 2010-09-26 04:37:46
Other Links: manifest | tags
Context
2010-09-26
04:37
Added a GNU autoconf script for building the kitsh check-in: 04784f0fe8 user: rkeene tags: trunk
04:37
Removed building shared verions of code

Added support for passing arguments to child "configure" scripts

Added Solaris compile support check-in: 8d94c2989e user: rkeene tags: trunk

04:37
KitCreator 0.0.1.x

Added release procedure scripts check-in: a1b05ba814 user: rkeene tags: trunk, 0.0.1

Changes

Modified kitcreator from [bee88e3dbf] to [22d82c1327].

1
2
3
4
5
6
7


8
9
10


11
12
13



14
15
16
17
18
19
20
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







+
+



+
+



+
+
+







#! /bin/bash

TCLVERS="8.4.19"
export TCLVERS

mode="build"
if [ "$1" = "clean" ]; then
	shift

	mode="clean"
fi
if [ "$1" = "distclean" ]; then
	shift

	mode="distclean"
fi

CONFIGUREEXTRA="$@"
export CONFIGUREEXTRA

failedpkgs=""
buildfailed="0"
for pkg in tcl tk itcl mk4tcl tclvfs kitsh; do
	if [ "${mode}" = "distclean" ]; then
		rm -rf "${pkg}/src"
	fi

Modified kitsh/build.sh from [bdca019302] to [9c9a954427].

24
25
26
27
28
29
30
31


32
33
34
35
36
37
38
24
25
26
27
28
29
30

31
32
33
34
35
36
37
38
39







-
+
+








(
	cp -r 'buildsrc' 'build'
	cd "${BUILDDIR}" || exit 1

	# Compile all objects...
	## TODO: XXX: Need to replace this with a configure script
	${CC:-cc} ${CPPFLAGS} ${CFLAGS} -I${TCLCONFIGDIR} -I${TCLCONFIGDIR}/../generic -o kit *.c $(find "${OTHERPKGSDIR}" -name '*.a' | grep '/inst/') ${LDFLAGS} -lz -lm -ldl  -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic
	${CC:-cc} ${CPPFLAGS} ${CFLAGS} -I${TCLCONFIGDIR} -I${TCLCONFIGDIR}/../generic -o kit *.c $(find "${OTHERPKGSDIR}" -name '*.a' | grep '/inst/') ${LDFLAGS} -lz -lm -ldl  -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic || \
	${CC:-cc} ${CPPFLAGS} ${CFLAGS} -I${TCLCONFIGDIR} -I${TCLCONFIGDIR}/../generic -o kit *.c $(find "${OTHERPKGSDIR}" -name '*.a' | grep '/inst/') ${LDFLAGS} -lz -lm -ldl -lnsl -lsocket -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic
	strip kit >/dev/null 2>/dev/null

	# Create VFS directory
	mkdir "starpack.vfs"
	mkdir "starpack.vfs/lib"

	## Copy in all built directories

Modified mk4tcl/build.sh from [4b3c985883] to [bcf44c2ad0].

36
37
38
39
40
41
42
43
44
45
46
47
48
49

50
51
52
36
37
38
39
40
41
42

43





44
45
46
47







-

-
-
-
-
-
+




	cd "${BUILDDIR}/unix" || exit 1

	# Build static libraries for linking against Tclkit
	./configure --disable-shared --prefix="${INSTDIR}" --exec-prefix="${INSTDIR}" --with-tcl="${TCLCONFIGDIR}/../generic" ${CONFIGUREEXTRA}
	"${MAKE:-make}" tcllibdir="${INSTDIR}/lib" || exit 1
	"${MAKE:-make}" tcllibdir="${INSTDIR}/lib" install
	"${MAKE:-make}" tcllibdir="${INSTDIR}/lib" distclean

	# Build shared object version (only used for non-Kit loading)
	./configure --enable-shared --prefix="${INSTDIR}" --exec-prefix="${INSTDIR}" --with-tcl="${TCLCONFIGDIR}/../generic" ${CONFIGUREEXTRA}
	"${MAKE:-make}" tcllibdir="${INSTDIR}/lib" || exit 1
	"${MAKE:-make}" tcllibdir="${INSTDIR}/lib" install

	exit 0
) || exit 1

exit 0

Modified tclvfs/build.sh from [f64effe9ee] to [f3b15d2312].

38
39
40
41
42
43
44
45
46
47
48
49
50
51
52


53
54
55
38
39
40
41
42
43
44





45
46
47
48
49
50
51
52







-
-
-
-
-



+
+



	cp generic/vfs.c .

	# Build static version
	./configure --disable-shared --prefix="${INSTDIR}" --exec-prefix="${INSTDIR}" --with-tcl="${TCLCONFIGDIR}" ${CONFIGUREEXTRA}
	"${MAKE:-make}" || exit 1
	"${MAKE:-make}" install

	# Build shared version
	./configure --enable-shared --prefix="${INSTDIR}" --exec-prefix="${INSTDIR}" --with-tcl="${TCLCONFIGDIR}" ${CONFIGUREEXTRA}
	"${MAKE:-make}" || exit 1
	"${MAKE:-make}" install

	mkdir "${OUTDIR}/lib" || exit 1
	cp -r "${INSTDIR}/lib"/vfs*/ "${OUTDIR}/lib/"
	rm -f "${OUTDIR}/lib"/vfs*/*.a "${OUTDIR}/lib"/vfs*/*.so

	exit 0
) || exit 1

exit 0