Patchwork [16/18] Add darwin compatible arch and make split rules more generic

login
register
mail settings
Submitter Yann Diorcet
Date Oct. 21, 2012, 3:27 p.m.
Message ID <1350833261-8401-16-git-send-email-diorcet.yann@gmail.com>
Download mbox | patch
Permalink /patch/193021/
State Accepted
Delegated to: Esben Haabendal
Headers show

Comments

Yann Diorcet - Oct. 21, 2012, 3:27 p.m.
From: Yann Diorcet <yann.diorcet@belledonne-communications.com>

---
 recipes/ncurses/ncurses.inc |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Esben Haabendal - Feb. 27, 2013, 11:28 a.m.
Yann Diorcet <diorcet.yann@gmail.com> writes:

> From: Yann Diorcet <yann.diorcet@belledonne-communications.com>
>
> ---
>  recipes/ncurses/ncurses.inc |    6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/recipes/ncurses/ncurses.inc b/recipes/ncurses/ncurses.inc
> index 0ba5fb3..2b3aaad 100644
> --- a/recipes/ncurses/ncurses.inc
> +++ b/recipes/ncurses/ncurses.inc
> @@ -4,7 +4,7 @@ HOMEPAGE = "http://www.gnu.org/software/ncurses/ncurses.html"
>  
>  RECIPE_TYPES = "machine native sdk"
>  
> -COMPATIBLE_HOST_ARCHS = ".*-linux-gnu.*"
> +COMPATIBLE_HOST_ARCHS = ".*-linux-gnu.* .*darwin.*"
>  
>  require conf/fetch/gnu.conf
>  SRC_URI = "${GNU_MIRROR}/ncurses/ncurses-${PV}.tar.gz"
> @@ -39,7 +39,7 @@ do_install() {
>          ln -sf curses.h ${D}${includedir}/ncurses.h
>  
>          # our ncurses has termcap support
> -        ln -sf libncurses.so ${D}${libdir}/libtermcap.so
> +        ln -sf libncurses${SOLIBSDEV} ${D}${libdir}/libtermcap${SOLIBSDEV}
>          ln -sf libncurses.a ${D}${libdir}/libtermcap.a
>  
>          # include some basic terminfo files
> @@ -68,7 +68,7 @@ PACKAGES =+ "${PN}-tools ${PN}-terminfo"
>  
>  inherit auto-package-libs
>  AUTO_PACKAGE_LIBS = "ncurses form menu panel"
> -FILES_${PN}-libncurses-dev = "${libdir}/libtermcap.a ${libdir}/libtermcap.so"
> +FILES_${PN}-libncurses-dev = "${libdir}/libtermcap.a ${libdir}/libtermcap${SOLIBSDEV}"
>  PROVIDES_${PN}-libncurses = "libtermcap"
>  PROVIDES_${PN}-libncurses-dev = "libtermcap-dev"

Merged to master, thanks.

/Esben

Patch

diff --git a/recipes/ncurses/ncurses.inc b/recipes/ncurses/ncurses.inc
index 0ba5fb3..2b3aaad 100644
--- a/recipes/ncurses/ncurses.inc
+++ b/recipes/ncurses/ncurses.inc
@@ -4,7 +4,7 @@  HOMEPAGE = "http://www.gnu.org/software/ncurses/ncurses.html"
 
 RECIPE_TYPES = "machine native sdk"
 
-COMPATIBLE_HOST_ARCHS = ".*-linux-gnu.*"
+COMPATIBLE_HOST_ARCHS = ".*-linux-gnu.* .*darwin.*"
 
 require conf/fetch/gnu.conf
 SRC_URI = "${GNU_MIRROR}/ncurses/ncurses-${PV}.tar.gz"
@@ -39,7 +39,7 @@  do_install() {
         ln -sf curses.h ${D}${includedir}/ncurses.h
 
         # our ncurses has termcap support
-        ln -sf libncurses.so ${D}${libdir}/libtermcap.so
+        ln -sf libncurses${SOLIBSDEV} ${D}${libdir}/libtermcap${SOLIBSDEV}
         ln -sf libncurses.a ${D}${libdir}/libtermcap.a
 
         # include some basic terminfo files
@@ -68,7 +68,7 @@  PACKAGES =+ "${PN}-tools ${PN}-terminfo"
 
 inherit auto-package-libs
 AUTO_PACKAGE_LIBS = "ncurses form menu panel"
-FILES_${PN}-libncurses-dev = "${libdir}/libtermcap.a ${libdir}/libtermcap.so"
+FILES_${PN}-libncurses-dev = "${libdir}/libtermcap.a ${libdir}/libtermcap${SOLIBSDEV}"
 PROVIDES_${PN}-libncurses = "libtermcap"
 PROVIDES_${PN}-libncurses-dev = "libtermcap-dev"