cross-gcc-3.3.1.oe:
authorChris Larson <clarson@kergoth.com>
Wed, 17 Sep 2003 19:33:13 +0000 (19:33 +0000)
committerChris Larson <clarson@kergoth.com>
Wed, 17 Sep 2003 19:33:13 +0000 (19:33 +0000)
  Add bits to undo any changes to tmake_file that initial pass may have done.
ncurses-5.3.oe:
  Include the 'ncurses.h' symlink in staging.

BKrev: 3f68b6f9Go-MNE7VutG6tk6TibJCFg

content/cross-gcc-3.3.1.oe
content/ncurses-5.3.oe

index e69de29..a2022ee 100644 (file)
@@ -0,0 +1,29 @@
+PROVIDES="virtual/${OLDARCH}-${OLDOS}-gcc"
+
+SRC_URI = ${GNU_MIRROR}/gcc/gcc-${PV}.tar.gz
+S = ${WORKDIR}/gcc-${PV}
+
+OLDOS := ${OS}
+OLDARCH := ${ARCH}
+CROSS_DIR := ${CROSS_DIR}
+inherit noncross autotools
+
+EXTRA_OECONF = --with-gxx-include-dir=${CROSS_DIR}/include/c++ \
+               --enable-shared \
+               --enable-threads
+tmake_file = gcc/config/${OLDARCH}/t-linux
+
+do_configure() {
+       ./configure --target=${OLDARCH}-${OLDOS} --prefix=${CROSS_DIR} \
+                   --with-gnu-ld --oldincludedir=${CROSS_DIR}/include \
+                   --enable-shared ${EXTRA_OECONF}     
+       touch ${tmake_file}
+       mv ${tmake_file} > ${tmake_file}.tmp
+       cat ${tmake_file}.tmp | sed -e's/-Dinhibit_libc -D__gthr_posix_h//g' > ${tmake_file}
+       rm -f ${tmake_file}.tmp
+}
+
+EXTRA_OEMAKE =
+do_compile() {
+       oe_runmake
+}
index 1057a25..ce4315f 100644 (file)
@@ -33,6 +33,7 @@ do_compile () {
 do_stage () {
        install -m 0755 lib/lib*.so.* ${STAGING_LIBDIR}/
        cp -R include/* ${STAGING_DIR}/target/include/
+       ln -sf curses.h ${STAGING_DIR}/target/include/ncurses.h
        ln -sf libpanel.so.5.3 ${STAGING_LIBDIR}/libpanel.so
        ln -sf libform.so.5.3 ${STAGING_LIBDIR}/libform.so
        ln -sf libmenu.so.5.3 ${STAGING_LIBDIR}/libmenu.so