diff options
author | Alexis Ballier <aballier@gentoo.org> | 2012-05-10 16:56:19 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2012-05-10 16:56:19 +0000 |
commit | 7798a0e627b070d67c7a2bf752caeb52bdd45d8e (patch) | |
tree | e3e13d2f21074abb064bcfccaf130fd34df7248c /dev-tcltk | |
parent | move glib[test] mask to its real reason (diff) | |
download | gentoo-2-7798a0e627b070d67c7a2bf752caeb52bdd45d8e.tar.gz gentoo-2-7798a0e627b070d67c7a2bf752caeb52bdd45d8e.tar.bz2 gentoo-2-7798a0e627b070d67c7a2bf752caeb52bdd45d8e.zip |
Fix build on Gentoo/FreeBSD by detecting it correctly.
(Portage version: 2.2.0_alpha103/cvs/Linux x86_64)
Diffstat (limited to 'dev-tcltk')
-rw-r--r-- | dev-tcltk/blt/ChangeLog | 8 | ||||
-rw-r--r-- | dev-tcltk/blt/blt-2.4z-r10.ebuild | 5 | ||||
-rw-r--r-- | dev-tcltk/blt/files/blt-2.4z-gbsd.patch | 54 |
3 files changed, 63 insertions, 4 deletions
diff --git a/dev-tcltk/blt/ChangeLog b/dev-tcltk/blt/ChangeLog index 87af52e8a3ed..81b02bf0216d 100644 --- a/dev-tcltk/blt/ChangeLog +++ b/dev-tcltk/blt/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-tcltk/blt -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/blt/ChangeLog,v 1.59 2011/12/15 17:07:46 jlec Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/blt/ChangeLog,v 1.60 2012/05/10 16:56:19 aballier Exp $ + + 10 May 2012; Alexis Ballier <aballier@gentoo.org> blt-2.4z-r10.ebuild, + +files/blt-2.4z-gbsd.patch: + Fix build on Gentoo/FreeBSD by detecting it correctly. 15 Dec 2011; Justin Lecher <jlec@gentoo.org> blt-2.4z-r10.ebuild: Mirror the sources, #394797 diff --git a/dev-tcltk/blt/blt-2.4z-r10.ebuild b/dev-tcltk/blt/blt-2.4z-r10.ebuild index dd7f370e9ede..f1cd6c2761ab 100644 --- a/dev-tcltk/blt/blt-2.4z-r10.ebuild +++ b/dev-tcltk/blt/blt-2.4z-r10.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/blt/blt-2.4z-r10.ebuild,v 1.10 2011/12/15 17:07:46 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/blt/blt-2.4z-r10.ebuild,v 1.11 2012/05/10 16:56:19 aballier Exp $ EAPI="3" @@ -51,6 +51,7 @@ src_prepare() { epatch "${FILESDIR}"/${P}-linking.patch epatch "${FILESDIR}"/${P}-darwin.patch + epatch "${FILESDIR}"/${P}-gbsd.patch } src_configure() { diff --git a/dev-tcltk/blt/files/blt-2.4z-gbsd.patch b/dev-tcltk/blt/files/blt-2.4z-gbsd.patch new file mode 100644 index 000000000000..ffdadf1746e5 --- /dev/null +++ b/dev-tcltk/blt/files/blt-2.4z-gbsd.patch @@ -0,0 +1,54 @@ +Detect correctly Gentoo/*BSD CHOSTS: +- *-*-freebsd* means tcl/tk libs will be like libtcl85.so, instead of + libtcl8.5.so +- *-gentoo-*bsd means this is a Gentoo/*BSD system which uses the same toolchain + as linux, so we link in the same way. + +--- blt2.4z-8.5.2/configure.old 2012-05-06 18:11:45.000000000 -0400 ++++ blt2.4z-8.5.2/configure 2012-05-06 18:15:25.000000000 -0400 +@@ -3376,7 +3376,7 @@ + fi + + case $target in +- *-sunos4*|*-*-netbsd|NetBSD-*|FreeBSD-*|OpenBSD-*|*-*-cygwin*|*-*-mingw*) ++ *-sunos4*|*-*-netbsd|NetBSD-*|FreeBSD-*|*-*-freebsd*|OpenBSD-*|*-*-cygwin*|*-*-mingw*) + TCL_LIB_NAME="tcl${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}" + TK_LIB_NAME="tk${TK_MAJOR_VERSION}${TK_MINOR_VERSION}" + ;; +@@ -4079,6 +4079,12 @@ + EXTRA_LIB_SPECS="-ldl" + ;; + ++ *-gentoo-netbsd*|*-gentoo-freebsd*|*-gentoo-openbsd*) ++ SHLIB_CFLAGS="-fPIC" ++ SHLIB_LD="${CC}" ++ SHLIB_LD_FLAGS='-rdynamic -shared -Wl,-E -Wl,-soname,$@' ++ ;; ++ + *-netbsd*|*-freebsd*|*-openbsd*) + # Not available on all versions: check for include file. + ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'` +--- blt2.4z-8.5.2/configure.in.old 2012-05-06 18:11:47.000000000 -0400 ++++ blt2.4z-8.5.2/configure.in 2012-05-06 18:15:08.000000000 -0400 +@@ -708,7 +708,7 @@ + fi + + case $target in +- *-sunos4*|*-*-netbsd|NetBSD-*|FreeBSD-*|OpenBSD-*|*-*-cygwin*|*-*-mingw*) ++ *-sunos4*|*-*-netbsd|NetBSD-*|FreeBSD-*|*-*-freebsd*|OpenBSD-*|*-*-cygwin*|*-*-mingw*) + TCL_LIB_NAME="tcl${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}" + TK_LIB_NAME="tk${TK_MAJOR_VERSION}${TK_MINOR_VERSION}" + ;; +@@ -1241,6 +1241,12 @@ + EXTRA_LIB_SPECS="-ldl" + ;; + ++ *-gentoo-netbsd*|*-gentoo-freebsd*|*-gentoo-openbsd*) ++ SHLIB_CFLAGS="-fPIC" ++ SHLIB_LD="${CC}" ++ SHLIB_LD_FLAGS='-rdynamic -shared -Wl,-E -Wl,-soname,$@' ++ ;; ++ + *-netbsd*|*-freebsd*|*-openbsd*) + # Not available on all versions: check for include file. + AC_CHECK_HEADER(dlfcn.h, test_ok=yes, test_ok=no) |