summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/libelf/libelf_0.8.6.bb32
-rw-r--r--packages/ltrace/.mtn2git_empty (renamed from packages/nonworking/ltrace/.mtn2git_empty)0
-rw-r--r--packages/ltrace/ltrace_0.3.36.bb26
-rw-r--r--packages/nonworking/ltrace/ltrace-0.3.35/.mtn2git_empty0
-rw-r--r--packages/nonworking/ltrace/ltrace-0.3.35/no_global_includes.patch11
-rw-r--r--packages/nonworking/ltrace/ltrace_0.3.35.bb11
6 files changed, 58 insertions, 22 deletions
diff --git a/packages/libelf/libelf_0.8.6.bb b/packages/libelf/libelf_0.8.6.bb
new file mode 100644
index 0000000000..4bd548e600
--- /dev/null
+++ b/packages/libelf/libelf_0.8.6.bb
@@ -0,0 +1,32 @@
+DESCRIPTION = "libelf is an ELF object file access library. \
+The elf library provides routines to access, and manipulate, Elf object files."
+LICENSE = "LGPL"
+SECTION = "libs"
+
+SRC_URI = "http://www.mr511.de/software/libelf-${PV}.tar.gz \
+ http://www.stud.uni-hannover.de/~michael/software/libelf-${PV}.tar.gz"
+
+inherit autotools
+
+PARALLEL_MAKE = ""
+
+do_configure_prepend () {
+ if test ! -e acinclude.m4; then
+ cp aclocal.m4 acinclude.m4
+ fi
+}
+
+do_install () {
+ oe_runmake 'prefix=${D}${prefix}' 'exec_prefix=${D}${exec_prefix}' \
+ 'libdir=${D}${libdir}' 'includedir=${D}${includedir}' \
+ install
+}
+
+do_stage () {
+ oe_libinstall -so -C lib libelf ${STAGING_LIBDIR}/
+ install -d ${STAGING_INCDIR}/libelf
+ for i in libelf.h nlist.h gelf.h sys_elf.h; do
+ install -m 0644 lib/$i ${STAGING_INCDIR}/libelf/
+ done
+ make includedir=${STAGING_INCDIR} install-compat
+}
diff --git a/packages/nonworking/ltrace/.mtn2git_empty b/packages/ltrace/.mtn2git_empty
index e69de29bb2..e69de29bb2 100644
--- a/packages/nonworking/ltrace/.mtn2git_empty
+++ b/packages/ltrace/.mtn2git_empty
diff --git a/packages/ltrace/ltrace_0.3.36.bb b/packages/ltrace/ltrace_0.3.36.bb
new file mode 100644
index 0000000000..aa116602ab
--- /dev/null
+++ b/packages/ltrace/ltrace_0.3.36.bb
@@ -0,0 +1,26 @@
+DESCRIPTION = "ltrace shows runtime library call information for dynamically linked executables."
+SECTION = "devel"
+DEPENDS = "libelf"
+LICENSE = "GPL"
+
+SRC_URI = "ftp://ftp.debian.org/debian/pool/main/l/ltrace/ltrace_0.3.36.orig.tar.gz\
+ ftp://ftp.debian.org/debian/pool/main/l/ltrace/ltrace_0.3.36-2.diff.gz;patch=1\
+ file://mvc-toolchain.patch;patch=1"
+# file://diska-ltrace-conf.patch;patch=1"
+
+inherit autotools
+
+PARALLEL_MAKE = ""
+EXTRA_OEMAKE = "ARCH=${TARGET_ARCH} \
+ INSTALL_FILE='$(INSTALL) -p -m 0644' \
+ INSTALL_PROGRAM='$(INSTALL) -p -m 0755' \
+ INSTALL_SCRIPT='$(INSTALL) -p -m 0755' \
+ INSTALL_DIR='$(INSTALL) -p -d -m 0755' "
+
+export TARGET_CFLAGS = "${SELECTED_OPTIMIZATION} -isystem ${STAGING_DIR}/${TARGET_SYS}/include"
+
+do_compile() {
+ oe_runmake LDFLAGS=${TARGET_LDFLAGS} LIBS="-lsupc++ -liberty -Wl,-Bstatic -lelf -Wl,-Bdynamic" ${EXTRA_OEMAKE}
+}
+
+do_install() {
diff --git a/packages/nonworking/ltrace/ltrace-0.3.35/.mtn2git_empty b/packages/nonworking/ltrace/ltrace-0.3.35/.mtn2git_empty
deleted file mode 100644
index e69de29bb2..0000000000
--- a/packages/nonworking/ltrace/ltrace-0.3.35/.mtn2git_empty
+++ /dev/null
diff --git a/packages/nonworking/ltrace/ltrace-0.3.35/no_global_includes.patch b/packages/nonworking/ltrace/ltrace-0.3.35/no_global_includes.patch
deleted file mode 100644
index 7c154861b7..0000000000
--- a/packages/nonworking/ltrace/ltrace-0.3.35/no_global_includes.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- ltrace-0.3.35/Makefile.old 2003-03-30 16:38:05.000000000 +0200
-+++ ltrace-0.3.35/Makefile.in 2004-08-14 20:40:50.000000000 +0200
-@@ -14,7 +14,7 @@
- docdir = $(prefix)/doc/ltrace
-
- CC = @CC@
--CPPFLAGS = -I$(TOPDIR) -I$(TOPDIR)/sysdeps/$(OS) -I- @DEFS@
-+CPPFLAGS = -I$(TOPDIR) -I$(TOPDIR)/sysdeps/$(OS) @DEFS@
- CFLAGS = -Wall @CFLAGS@ -DSYSCONFDIR=\"$(sysconfdir)\"
- LDFLAGS =
- LIBS = @LIBS@
diff --git a/packages/nonworking/ltrace/ltrace_0.3.35.bb b/packages/nonworking/ltrace/ltrace_0.3.35.bb
deleted file mode 100644
index 48df0a60c0..0000000000
--- a/packages/nonworking/ltrace/ltrace_0.3.35.bb
+++ /dev/null
@@ -1,11 +0,0 @@
-DESCRIPTION = "ltrace is a library call tracing tool."
-PR = "1"
-
-SRC_URI = "${DEBIAN_MIRROR}/main/l/ltrace/ltrace_0.3.35.tar.gz \
- file://no_global_includes.patch;patch=1 "
-
-inherit autotools
-
-EXTRA_OEMAKE = "ARCH=${HOST_ARCH}"
-
-S = "${WORKDIR}/ltrace-${PV}"