Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=bmf.git;a=commitdiff;h=91c1cbf6488504b65db0a02ea5411ff85c85081b

commit 91c1cbf6488504b65db0a02ea5411ff85c85081b
Author: crazy <[email protected]>
Date:   Wed Dec 30 20:30:29 2015 +0100

tcl-8.6.4-1-x86_64
* Version bump
* new m8r
* enabled 64bit on '64bit' ...
* added patch to fix linking issues
* some FB cleanup

diff --git a/source/devel/tcl/FrugalBuild b/source/devel/tcl/FrugalBuild
index 35b72e4..324409b 100644
--- a/source/devel/tcl/FrugalBuild
+++ b/source/devel/tcl/FrugalBuild
@@ -1,36 +1,48 @@
# Compiling Time: 0.01 SBU
-# Maintainer: Miklos Vajna <[email protected]>
+# Maintainer: crazy <[email protected]>

pkgname=tcl
-pkgver=8.6.1
+pkgver=8.6.4
shortpkgver=8.6
-pkgrel=4
+pkgrel=1
pkgdesc="The Tcl scripting language"
_F_sourceforge_ext="-src.tar.gz"
Finclude sourceforge
-depends=('bash')
+depends=('zlib>=1.2.8-4')
+makedepends=('sqlite3>=3.9.2-4')
groups=('devel')
+options+=('static')
archs=('i686' 'x86_64' 'arm')
up2date="lynx -dump http://www.tcl.tk/|grep 'Tcl/Tk [0-9]'|sed 's/.*Tk \([^ 
]*\) .*/\1/;q'"
-source=(${source/-$pkgver/$pkgver} nohide.diff)
-sha1sums=('5c83d44152cc0496cc0847a2495f659502a30e40' \
-          '82e9b2e0c502da4c5bdf1c06770567ab5a002786')
+source=(${source/-$pkgver/$pkgver} nohide.diff tcl-8.6.4-conf.patch)
+sha1sums=('33c5a083a23cf54f15e25a9e787dc39ef3fa0a2b' \
+          '82e9b2e0c502da4c5bdf1c06770567ab5a002786' \
+          '9a7ccb3f3cb8580bc1760f66af3e1cd1fce1ae15')

build()
{
+
+
Fcd tcl$pkgver
Fpatchall
-       cd unix
+
+        [ "$CARCH" == "x86_64" ] && Fconfopts+=" --enable-64bit"
+
+       cd unix || Fdie
+
Fmake --enable-threads
-       make INSTALL_ROOT=$Fdestdir install || return 1
+       make INSTALL_ROOT=$Fdestdir install install-private-headers || Fdie
+
Fln tclsh$shortpkgver /usr/bin/tclsh

-       # headers
+       # arghh..
Fmkdir /usr/include/tcl/{generic,unix,compat}
-       cp ../unix/*.h $Fdestdir/usr/include/tcl/unix
-       cp ../generic/*.h $Fdestdir/usr/include/tcl/generic
-       cp ../compat/*.h $Fdestdir/usr/include/tcl/compat
+       cp ../unix/*.h $Fdestdir/usr/include/tcl/unix || Fdie
+       cp ../generic/*.h $Fdestdir/usr/include/tcl/generic || Fdie
+       cp ../compat/*.h $Fdestdir/usr/include/tcl/compat || Fdie
+

+       ### WTF.. need patch
sed -i \
-e "s,^TCL_BUILD_LIB_SPEC='-L.*/unix,TCL_BUILD_LIB_SPEC='-L/usr/lib," \
-e "s,^TCL_SRC_DIR='.*',TCL_SRC_DIR='/usr/include/tcl'," \
diff --git a/source/devel/tcl/tcl-8.6.4-conf.patch 
b/source/devel/tcl/tcl-8.6.4-conf.patch
new file mode 100644
index 0000000..be303e9
--- /dev/null
+++ b/source/devel/tcl/tcl-8.6.4-conf.patch
@@ -0,0 +1,11 @@
+--- tcl8.5.0/unix/tcl.m4.conf  2007-12-20 10:48:05.000000000 +0100
++++ tcl8.5.0/unix/tcl.m4       2007-12-20 10:48:52.000000000 +0100
+@@ -1427,7 +1427,7 @@ dnl AC_CHECK_TOOL(AR, ar)
+           # get rid of the warnings.
+           #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES 
-D__NO_MATH_INLINES"
+
+-          SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
++          SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS} -fPIC -Wl,-soname,${@}'
+           DL_OBJS="tclLoadDl.o"
+           DL_LIBS="-ldl"
+           LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to