summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorNitin A Kamble <nitin.a.kamble@intel.com>2011-01-24 20:35:24 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-01 23:59:42 +0000
commite1a9c8fb0316c3461b88e37b662823167b5954cd (patch)
tree3db50b3467c4b6aabd5088beeb85d5f8889423d2 /meta
parent0322d4c01b88507bcf448df095decedfcdc1ade6 (diff)
downloadpoky-e1a9c8fb0316c3461b88e37b662823167b5954cd.tar.gz
mklibs-native: new recipe for optimizing size of library files
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/mklibs/files/ac_init_fix.patch17
-rw-r--r--meta/recipes-devtools/mklibs/mklibs-native_0.1.31.bb23
2 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-devtools/mklibs/files/ac_init_fix.patch b/meta/recipes-devtools/mklibs/files/ac_init_fix.patch
new file mode 100644
index 0000000000..7325931537
--- /dev/null
+++ b/meta/recipes-devtools/mklibs/files/ac_init_fix.patch
@@ -0,0 +1,17 @@
1Get the version of mklibs by simpler means. The MKLIBS_VERSION string in the
2configure.ac file is replaced with real version string by the
3do_configure_prepend() function from the recipe .bb file.
4
5Nitin A Kamble <nitin.a.kamble@intel.com>
6Date: 2011/01/24
7
8Index: mklibs/configure.ac
9===================================================================
10--- mklibs.orig/configure.ac 2010-02-21 17:34:56.000000000 -0800
11+++ mklibs/configure.ac 2011-01-24 18:52:19.943242079 -0800
12@@ -1,4 +1,4 @@
13-AC_INIT([mklibs],m4_esyscmd(dpkg-parsechangelog | perl -ne 'print $1 if m/^Version: (.*)$/;'))
14+AC_INIT([mklibs], MKLIBS_VERSION)
15 AM_INIT_AUTOMAKE([foreign no-define])
16 AC_CONFIG_HEADERS([config.h])
17 AM_MAINTAINER_MODE
diff --git a/meta/recipes-devtools/mklibs/mklibs-native_0.1.31.bb b/meta/recipes-devtools/mklibs/mklibs-native_0.1.31.bb
new file mode 100644
index 0000000000..2044d125ef
--- /dev/null
+++ b/meta/recipes-devtools/mklibs/mklibs-native_0.1.31.bb
@@ -0,0 +1,23 @@
1DESCRIPTION = "mklibs produces cut-down shared libraries that contain only the routines required by a particular set of executables."
2HOMEPAGE = "https://code.launchpad.net/mklibs"
3SECTION = "devel"
4LICENSE = "GPLv2+"
5LIC_FILES_CHKSUM = "file://debian/copyright;md5=98d31037b13d896e33890738ef01af64"
6DEPENDS = "python-native"
7
8PR = "r0"
9
10SRC_URI = "http://ftp.de.debian.org/debian/pool/main/m/mklibs/${BPN}_${PV}.tar.gz \
11 file://ac_init_fix.patch\
12"
13
14SRC_URI[md5sum] = "f4df0307ccbdf60070e42277513f27ed"
15SRC_URI[sha256sum] = "8f5595621eb09d52871c771861e81b032d10c31d15e5dd61fa7f5a9e5b7de405"
16
17S = "${WORKDIR}/${BPN}"
18
19inherit autotools gettext native
20
21do_configure_prepend() {
22 sed "s+MKLIBS_VERSION+${PV}+" ${S}/configure.ac
23}