From 104b91c471125482eb83893425fb031557e892b4 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Sun, 23 May 2010 09:54:11 +0200 Subject: tcl 8.5.8: fix header location * remember to do 'bitbake glibc' after building tcl so packaged-staging can restore its headers --- recipes/tcltk/tcl_8.5.8.bb | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/recipes/tcltk/tcl_8.5.8.bb b/recipes/tcltk/tcl_8.5.8.bb index 220e858056..447da5db94 100644 --- a/recipes/tcltk/tcl_8.5.8.bb +++ b/recipes/tcltk/tcl_8.5.8.bb @@ -3,6 +3,8 @@ LICENSE = "tcl" SECTION = "devel/tcltk" HOMEPAGE = "http://tcl.sourceforge.net" +PR = "r5" + SRC_URI = "\ ${SOURCEFORGE_MIRROR}/tcl/tcl${PV}-src.tar.gz \ file://confsearch.diff;patch=1;pnum=2 \ @@ -33,15 +35,19 @@ BINCONFIG_GLOB = "*Config.sh" do_install() { autotools_do_install # Stage a few extra headers to make tk happy - install -m 0644 ../generic/*.h ${D}${includedir} - install -m 0644 *.h ${D}${includedir} + install -d ${D}${includedir}/tcl-${PV}/generic + install -m 0644 ../generic/*.h ${D}${includedir}/tcl-${PV}/generic + install -m 0644 *.h ${D}${includedir}/tcl-${PV}/generic + install -d ${D}${includedir}/tcl-${PV}/unix + install -m 0644 *Unix*.h ${D}${includedir}/tcl-${PV}/unix/ + rm -f ${D}${includedir}/regex.h ln -sf tclsh8.5 ${D}${bindir}/tclsh } SYSROOT_PREPROCESS_FUNCS =+ "tcl_sysroot" tcl_sysroot() { - sed -i 's:/usr/include/tcl-private:${STAGING_INCDIR}:' tclConfig.sh + sed -i 's:/usr/include/tcl-private:${STAGING_INCDIR}/tcl-${PV}:' tclConfig.sh } PACKAGES =+ "${PN}-lib" -- cgit 1.2.3-korg