aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/midpath/midpath-maemo_0.2+0.3rc2.bb
blob: 679245488ab9f4c0c6019940a182cff9ebec2545 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require midpath.inc

# The patch fixes the system_properties file only deployed in this recipe.
SRC_URI = "\
  ${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz \
  "

S = "${WORKDIR}/midpath-0.3rc2"

PR = "r1"

SRC_URI += "file://configuration_maemo.cfg"

RDEPENDS_${PN} += "java2-runtime libswt3.4-gtk-java midpath-core-bluetooth"

CONFIGURATION = "configuration_maemo.cfg"

SRC_URI[md5sum] = "d03cd88f51f82bbcfcfa5b65df0da5b0"
SRC_URI[sha256sum] = "e235ca7470e7cdfb90e3806fbcc1b2c450db286276136a2523c7ae26a804a100"
't redefine these macros if they already exist */ +#ifndef htobe16 +#ifdef __USE_BSD +/* Conversion interfaces. */ +# include <byteswap.h> + +# if __BYTE_ORDER == __LITTLE_ENDIAN +# define htobe16(x) __bswap_16 (x) +# define htole16(x) (x) +# define be16toh(x) __bswap_16 (x) +# define le16toh(x) (x) + +# define htobe32(x) __bswap_32 (x) +# define htole32(x) (x) +# define be32toh(x) __bswap_32 (x) +# define le32toh(x) (x) + +# define htobe64(x) __bswap_64 (x) +# define htole64(x) (x) +# define be64toh(x) __bswap_64 (x) +# define le64toh(x) (x) +# else +# define htobe16(x) (x) +# define htole16(x) __bswap_16 (x) +# define be16toh(x) (x) +# define le16toh(x) __bswap_16 (x) + +# define htobe32(x) (x) +# define htole32(x) __bswap_32 (x) +# define be32toh(x) (x) +# define le32toh(x) __bswap_32 (x) + +# define htobe64(x) (x) +# define htole64(x) __bswap_64 (x) +# define be64toh(x) (x) +# define le64toh(x) __bswap_64 (x) +# endif +#endif +#endif + +#endif /* endian_extra.h */ diff -purN ldconfig-native-2.12.1.orig/cache.c ldconfig-native-2.12.1/cache.c --- ldconfig-native-2.12.1.orig/cache.c 2011-07-19 18:21:28.347041301 -0500 +++ ldconfig-native-2.12.1/cache.c 2011-07-19 18:22:54.118048064 -0500 @@ -39,6 +39,8 @@ # define N_(msgid) msgid #define _(msg) msg +#include "endian_extra.h" + extern int be; static uint16_t write16(uint16_t x, int be) diff -purN ldconfig-native-2.12.1.orig/readelflib.c ldconfig-native-2.12.1/readelflib.c --- ldconfig-native-2.12.1.orig/readelflib.c 2011-07-19 18:21:28.346041593 -0500 +++ ldconfig-native-2.12.1/readelflib.c 2011-07-19 18:23:05.324059875 -0500 @@ -25,6 +25,9 @@ /* check_ptr checks that a pointer is in the mmaped file and doesn't point outside it. */ + +#include "endian_extra.h" + #undef check_ptr #define check_ptr(ptr) \ do \ diff -purN ldconfig-native-2.12.1.orig/readlib.c ldconfig-native-2.12.1/readlib.c --- ldconfig-native-2.12.1.orig/readlib.c 2011-07-19 18:21:28.346041593 -0500 +++ ldconfig-native-2.12.1/readlib.c 2011-07-19 18:23:23.877046210 -0500 @@ -40,6 +40,8 @@ #include "ldconfig.h" +#include "endian_extra.h" + #define _(msg) msg #define Elf32_CLASS ELFCLASS32