diff options
Diffstat (limited to 'meta/recipes-connectivity/openssl/openssl.inc')
-rw-r--r-- | meta/recipes-connectivity/openssl/openssl.inc | 38 |
1 files changed, 34 insertions, 4 deletions
diff --git a/meta/recipes-connectivity/openssl/openssl.inc b/meta/recipes-connectivity/openssl/openssl.inc index f1c1961d3a..c717fee514 100644 --- a/meta/recipes-connectivity/openssl/openssl.inc +++ b/meta/recipes-connectivity/openssl/openssl.inc | |||
@@ -4,6 +4,9 @@ HOMEPAGE = "http://www.openssl.org/" | |||
4 | BUGTRACKER = "http://www.openssl.org/news/vulnerabilities.html" | 4 | BUGTRACKER = "http://www.openssl.org/news/vulnerabilities.html" |
5 | SECTION = "libs/network" | 5 | SECTION = "libs/network" |
6 | 6 | ||
7 | # Big Jump for OpenSSL 1.0 support with meta-oe | ||
8 | INC_PR = "r15" | ||
9 | |||
7 | # "openssl | SSLeay" dual license | 10 | # "openssl | SSLeay" dual license |
8 | LICENSE = "openssl" | 11 | LICENSE = "openssl" |
9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=f9a8f968107345e0b75aa8c2ecaa7ec8" | 12 | LIC_FILES_CHKSUM = "file://LICENSE;md5=f9a8f968107345e0b75aa8c2ecaa7ec8" |
@@ -32,10 +35,15 @@ export AS = "${CC} -c" | |||
32 | 35 | ||
33 | inherit pkgconfig siteinfo | 36 | inherit pkgconfig siteinfo |
34 | 37 | ||
35 | PACKAGES =+ "libcrypto libssl" | 38 | PACKAGES =+ "libcrypto libssl ${PN}-misc" |
36 | FILES_libcrypto = "${libdir}/libcrypto.so.*" | 39 | FILES_libcrypto = "${libdir}/libcrypto.so.*" |
37 | FILES_libssl = "${libdir}/libssl.so.*" | 40 | FILES_libssl = "${libdir}/libssl.so.*" |
38 | FILES_${PN} =+ " ${libdir}/ssl/*" | 41 | FILES_${PN} =+ " ${libdir}/ssl/*" |
42 | FILES_${PN}-misc = "${libdir}/ssl/misc ${libdir}/ssl/openssl.cnf" | ||
43 | |||
44 | do_configure_prepend_darwin () { | ||
45 | sed -i -e '/version-script=openssl\.ld/d' Configure | ||
46 | } | ||
39 | 47 | ||
40 | do_configure () { | 48 | do_configure () { |
41 | cd util | 49 | cd util |
@@ -46,6 +54,10 @@ do_configure () { | |||
46 | os=${HOST_OS} | 54 | os=${HOST_OS} |
47 | if [ "x$os" = "xlinux-uclibc" ]; then | 55 | if [ "x$os" = "xlinux-uclibc" ]; then |
48 | os=linux | 56 | os=linux |
57 | elif [ "x$os" = "xlinux-uclibceabi" ]; then | ||
58 | os=linux | ||
59 | elif [ "x$os" = "xlinux-gnueabi" ]; then | ||
60 | os=linux | ||
49 | fi | 61 | fi |
50 | target="$os-${HOST_ARCH}" | 62 | target="$os-${HOST_ARCH}" |
51 | case $target in | 63 | case $target in |
@@ -64,7 +76,7 @@ do_configure () { | |||
64 | linux-i486) | 76 | linux-i486) |
65 | target=debian-i386-i486 | 77 | target=debian-i386-i486 |
66 | ;; | 78 | ;; |
67 | linux-i586) | 79 | linux-i586 | linux-viac3) |
68 | target=debian-i386-i586 | 80 | target=debian-i386-i586 |
69 | ;; | 81 | ;; |
70 | linux-i686) | 82 | linux-i686) |
@@ -91,6 +103,9 @@ do_configure () { | |||
91 | linux-sparc) | 103 | linux-sparc) |
92 | target=linux-sparcv8 | 104 | target=linux-sparcv8 |
93 | ;; | 105 | ;; |
106 | darwin-i386) | ||
107 | target=darwin-i386-cc | ||
108 | ;; | ||
94 | esac | 109 | esac |
95 | # inject machine-specific flags | 110 | # inject machine-specific flags |
96 | sed -i -e "s|^\(\"$target\",\s*\"[^:]\+\):\([^:]\+\)|\1:${CFLAG}|g" Configure | 111 | sed -i -e "s|^\(\"$target\",\s*\"[^:]\+\):\([^:]\+\)|\1:${CFLAG}|g" Configure |
@@ -106,10 +121,25 @@ do_compile () { | |||
106 | } | 121 | } |
107 | 122 | ||
108 | do_install () { | 123 | do_install () { |
109 | install -m 0755 -d ${D}${libdir}/pkgconfig | ||
110 | oe_runmake INSTALL_PREFIX="${D}" MANDIR="${mandir}" install | 124 | oe_runmake INSTALL_PREFIX="${D}" MANDIR="${mandir}" install |
111 | chmod 644 ${D}${libdir}/pkgconfig/openssl.pc | 125 | |
126 | # On x86_64, move lib/* to lib64 | ||
127 | if [ "${libdir}" != "${prefix}/lib" ] | ||
128 | then | ||
129 | install -m 0755 ${D}${libdir} ${D}${libdir}/pkgconfig | ||
130 | mv ${D}${prefix}/lib/lib* ${D}${libdir} | ||
131 | mv ${D}${prefix}/lib/pkgconfig/*.pc ${D}${libdir}/pkgconfig | ||
132 | chmod 644 ${D}${libdir}/pkgconfig/openssl.pc | ||
133 | fi | ||
134 | |||
112 | oe_libinstall -so libcrypto ${D}${libdir} | 135 | oe_libinstall -so libcrypto ${D}${libdir} |
113 | oe_libinstall -so libssl ${D}${libdir} | 136 | oe_libinstall -so libssl ${D}${libdir} |
137 | |||
138 | install -d ${D}${includedir} | ||
139 | cp --dereference -R include/openssl ${D}${includedir} | ||
114 | sed -i -e '1s,.*,#!${bindir}/env perl,' ${D}${libdir}/ssl/misc/CA.pl | 140 | sed -i -e '1s,.*,#!${bindir}/env perl,' ${D}${libdir}/ssl/misc/CA.pl |
141 | |||
115 | } | 142 | } |
143 | |||
144 | BBCLASSEXTEND = "native nativesdk" | ||
145 | |||