diff options
Diffstat (limited to 'meta/packages/expat')
-rw-r--r-- | meta/packages/expat/expat-2.0.0/autotools.patch | 13 | ||||
-rw-r--r-- | meta/packages/expat/expat.inc | 13 | ||||
-rw-r--r-- | meta/packages/expat/expat_1.95.7.bb | 12 | ||||
-rw-r--r-- | meta/packages/expat/expat_2.0.0.bb | 27 |
4 files changed, 56 insertions, 9 deletions
diff --git a/meta/packages/expat/expat-2.0.0/autotools.patch b/meta/packages/expat/expat-2.0.0/autotools.patch new file mode 100644 index 0000000000..77aee3a833 --- /dev/null +++ b/meta/packages/expat/expat-2.0.0/autotools.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | diff -bur expat-2.0.0~orig/configure.in expat-2.0.0/configure.in | ||
2 | --- expat-2.0.0~orig/configure.in 2006-01-10 19:10:46.000000000 -0600 | ||
3 | +++ expat-2.0.0/configure.in 2006-02-10 19:12:24.000000000 -0600 | ||
4 | @@ -50,9 +50,6 @@ | ||
5 | |||
6 | AC_CONFIG_HEADER(expat_config.h) | ||
7 | |||
8 | -sinclude(conftools/libtool.m4) | ||
9 | -sinclude(conftools/ac_c_bigendian_cross.m4) | ||
10 | - | ||
11 | AC_LIBTOOL_WIN32_DLL | ||
12 | AC_PROG_LIBTOOL | ||
13 | |||
diff --git a/meta/packages/expat/expat.inc b/meta/packages/expat/expat.inc new file mode 100644 index 0000000000..6d27b77b19 --- /dev/null +++ b/meta/packages/expat/expat.inc | |||
@@ -0,0 +1,13 @@ | |||
1 | DESCRIPTION = "Jim Clarkes XML parser library." | ||
2 | HOMEPAGE = "http://expat.sf.net/" | ||
3 | SECTION = "libs" | ||
4 | LICENSE = "MIT" | ||
5 | |||
6 | SRC_URI = "${SOURCEFORGE_MIRROR}/expat/expat-${PV}.tar.gz \ | ||
7 | " | ||
8 | S = "${WORKDIR}/expat-${PV}" | ||
9 | |||
10 | export LTCC = "${CC}" | ||
11 | |||
12 | inherit autotools | ||
13 | |||
diff --git a/meta/packages/expat/expat_1.95.7.bb b/meta/packages/expat/expat_1.95.7.bb index c3bbb8981b..a4dda4dcb6 100644 --- a/meta/packages/expat/expat_1.95.7.bb +++ b/meta/packages/expat/expat_1.95.7.bb | |||
@@ -1,15 +1,9 @@ | |||
1 | SECTION = "libs" | 1 | require expat.inc |
2 | DESCRIPTION = "Jim Clarkes XML parser library." | ||
3 | HOMEPAGE = "http://expat.sourceforge.net/" | ||
4 | LICENSE = "MIT" | ||
5 | PR = "r1" | 2 | PR = "r1" |
6 | 3 | ||
7 | SRC_URI = "${SOURCEFORGE_MIRROR}/expat/expat-${PV}.tar.gz \ | 4 | SRC_URI += "file://autotools.patch;patch=1" |
8 | file://autotools.patch;patch=1" | ||
9 | S = "${WORKDIR}/expat-${PV}" | ||
10 | 5 | ||
11 | inherit autotools lib_package | 6 | inherit lib_package |
12 | export LTCC = "${CC}" | ||
13 | 7 | ||
14 | do_configure () { | 8 | do_configure () { |
15 | rm -f ${S}/conftools/libtool.m4 | 9 | rm -f ${S}/conftools/libtool.m4 |
diff --git a/meta/packages/expat/expat_2.0.0.bb b/meta/packages/expat/expat_2.0.0.bb new file mode 100644 index 0000000000..0fd825ee24 --- /dev/null +++ b/meta/packages/expat/expat_2.0.0.bb | |||
@@ -0,0 +1,27 @@ | |||
1 | require expat.inc | ||
2 | PR = "r2" | ||
3 | |||
4 | SRC_URI += "file://autotools.patch;patch=1" | ||
5 | |||
6 | inherit lib_package | ||
7 | |||
8 | do_configure() { | ||
9 | rm -f ${S}/conftools/libtool.m4 | ||
10 | touch ${S}/conftools/libtool.m4 | ||
11 | autotools_do_configure | ||
12 | } | ||
13 | |||
14 | do_stage() { | ||
15 | install -m 0644 ${S}/lib/expat.h ${STAGING_INCDIR}/ | ||
16 | install -m 0644 ${S}/lib/expat_external.h ${STAGING_INCDIR}/ | ||
17 | oe_libinstall -so libexpat ${STAGING_LIBDIR} | ||
18 | } | ||
19 | |||
20 | do_install() { | ||
21 | oe_runmake prefix="${D}${prefix}" \ | ||
22 | bindir="${D}${bindir}" \ | ||
23 | libdir="${D}${libdir}" \ | ||
24 | includedir="${D}${includedir}" \ | ||
25 | man1dir="${D}${mandir}/man1" \ | ||
26 | install | ||
27 | } | ||