diff options
| author | Richard Purdie <richard@openedhand.com> | 2007-08-01 19:11:11 +0000 |
|---|---|---|
| committer | Richard Purdie <richard@openedhand.com> | 2007-08-01 19:11:11 +0000 |
| commit | 75825af40256d3990bb18a7de9685f249d9f833f (patch) | |
| tree | 429b2962859d5779fc2929df5006e0c87b925ae4 /meta | |
| parent | 7944fb200e56ea888c48e971c5af7e074f59f71a (diff) | |
| download | poky-75825af40256d3990bb18a7de9685f249d9f833f.tar.gz | |
pkgconfig: Fix compile issues for non-native version
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2301 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/packages/pkgconfig/pkgconfig-native_0.22.bb | 9 | ||||
| -rw-r--r-- | meta/packages/pkgconfig/pkgconfig.inc | 24 | ||||
| -rw-r--r-- | meta/packages/pkgconfig/pkgconfig_0.22.bb | 28 |
3 files changed, 34 insertions, 27 deletions
diff --git a/meta/packages/pkgconfig/pkgconfig-native_0.22.bb b/meta/packages/pkgconfig/pkgconfig-native_0.22.bb index 507a74b7d9..5a5423058d 100644 --- a/meta/packages/pkgconfig/pkgconfig-native_0.22.bb +++ b/meta/packages/pkgconfig/pkgconfig-native_0.22.bb | |||
| @@ -1,7 +1,14 @@ | |||
| 1 | SECTION = "console/utils" | 1 | SECTION = "console/utils" |
| 2 | require pkgconfig_${PV}.bb | 2 | require pkgconfig.inc |
| 3 | FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/pkgconfig-${PV}" | 3 | FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/pkgconfig-${PV}" |
| 4 | 4 | ||
| 5 | S = "${WORKDIR}/pkg-config-${PV}/" | 5 | S = "${WORKDIR}/pkg-config-${PV}/" |
| 6 | inherit native | 6 | inherit native |
| 7 | DEPENDS = "" | 7 | DEPENDS = "" |
| 8 | |||
| 9 | do_configure() { | ||
| 10 | gnu-configize | ||
| 11 | libtoolize --force | ||
| 12 | oe_runconf | ||
| 13 | } | ||
| 14 | \ No newline at end of file | ||
diff --git a/meta/packages/pkgconfig/pkgconfig.inc b/meta/packages/pkgconfig/pkgconfig.inc new file mode 100644 index 0000000000..47c077a8d3 --- /dev/null +++ b/meta/packages/pkgconfig/pkgconfig.inc | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | SECTION = "console/utils" | ||
| 2 | DESCRIPTION = "pkg-config is a system for managing library \ | ||
| 3 | compile/link flags that works with automake and autoconf. \ | ||
| 4 | It replaces the ubiquitous *-config scripts you may have \ | ||
| 5 | seen with a single tool." | ||
| 6 | HOMEPAGE = "http://pkg-config.freedesktop.org/wiki/" | ||
| 7 | LICENSE = "GPL" | ||
| 8 | PR = "r1" | ||
| 9 | |||
| 10 | SRC_URI = "http://pkgconfig.freedesktop.org/releases/pkg-config-${PV}.tar.gz \ | ||
| 11 | file://glibconfig-sysdefs.h" | ||
| 12 | |||
| 13 | S = "${WORKDIR}/pkg-config-${PV}/" | ||
| 14 | |||
| 15 | inherit autotools | ||
| 16 | |||
| 17 | acpaths = "-I ." | ||
| 18 | do_configure_prepend () { | ||
| 19 | install -m 0644 ${WORKDIR}/glibconfig-sysdefs.h glib-1.2.8/ | ||
| 20 | } | ||
| 21 | |||
| 22 | do_stage_prepend() { | ||
| 23 | install -d -m 0755 ${STAGING_DATADIR}/pkgconfig | ||
| 24 | } | ||
diff --git a/meta/packages/pkgconfig/pkgconfig_0.22.bb b/meta/packages/pkgconfig/pkgconfig_0.22.bb index 28cf2c53f8..599e1c815e 100644 --- a/meta/packages/pkgconfig/pkgconfig_0.22.bb +++ b/meta/packages/pkgconfig/pkgconfig_0.22.bb | |||
| @@ -1,27 +1,3 @@ | |||
| 1 | SECTION = "console/utils" | 1 | require pkgconfig.inc |
| 2 | DESCRIPTION = "pkg-config is a system for managing library \ | ||
| 3 | compile/link flags that works with automake and autoconf. \ | ||
| 4 | It replaces the ubiquitous *-config scripts you may have \ | ||
| 5 | seen with a single tool." | ||
| 6 | HOMEPAGE = "http://pkg-config.freedesktop.org/wiki/" | ||
| 7 | LICENSE = "GPL" | ||
| 8 | 2 | ||
| 9 | SRC_URI = "http://pkgconfig.freedesktop.org/releases/pkg-config-${PV}.tar.gz \ | 3 | SRC_URI += "file://autofoo.patch;patch=1" |
| 10 | file://glibconfig-sysdefs.h" | ||
| 11 | |||
| 12 | S = "${WORKDIR}/pkg-config-${PV}/" | ||
| 13 | |||
| 14 | inherit autotools | ||
| 15 | |||
| 16 | acpaths = "-I ." | ||
| 17 | do_configure () { | ||
| 18 | install -m 0644 ${WORKDIR}/glibconfig-sysdefs.h glib-1.2.8/ | ||
| 19 | gnu-configize | ||
| 20 | libtoolize --force | ||
| 21 | oe_runconf | ||
| 22 | } | ||
| 23 | |||
| 24 | do_stage_prepend() { | ||
| 25 | install -d -m 0755 ${STAGING_DATADIR}/pkgconfig | ||
| 26 | |||
| 27 | } | ||
