diff mbox

[v7,2/4] sdl_image: add host version

Message ID 1392680233-24585-3-git-send-email-maxime.hadjinlian@gmail.com
State Accepted
Headers show

Commit Message

Maxime Hadjinlian Feb. 17, 2014, 11:37 p.m. UTC
Host version is needed to build xbmc

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
Changes v6 -> v7:
  - None
Changes v5 -> v6:
  - None
Changes v4 -> v5:
  - None
Changes v3 -> v4:
  - None
Changes v2 -> v3:
  - None
Changes v1 -> v2:
  - None
---
 package/sdl_image/sdl_image.mk | 11 +++++++++++
 1 file changed, 11 insertions(+)

Comments

Thomas Petazzoni Feb. 18, 2014, 4:11 p.m. UTC | #1
Dear Maxime Hadjinlian,

On Tue, 18 Feb 2014 00:37:11 +0100, Maxime Hadjinlian wrote:

> diff --git a/package/sdl_image/sdl_image.mk b/package/sdl_image/sdl_image.mk
> index ba9751d..05b9a1f 100644
> --- a/package/sdl_image/sdl_image.mk
> +++ b/package/sdl_image/sdl_image.mk
> @@ -38,4 +38,15 @@ SDL_IMAGE_DEPENDENCIES = sdl \
>  	$(if $(BR2_PACKAGE_SDL_IMAGE_TIFF),tiff) \
>  	$(if $(BR2_PACKAGE_SDL_IMAGE_WEBP),webp)
>  
> +HOST_SDL_IMAGE_CONF_OPT = --with-sdl-prefix=$(HOST_DIR)/usr \
> +                --with-sdl-exec-prefix=$(HOST_DIR)/usr \
> +                --disable-sdltest \
> +                --disable-static \
> +                --disable-jpg-shared \
> +                --disable-png-shared \
> +                --disable-tif-shared \

This is nitpicking, but we normally intend this with one tab, do not
have a backslash on the last line, and also intend the first line. So,
something like:

HOST_SDL_IMAGE_CONF_OPT = \
	--with-sdl-prefix=... \
	--foo \
	--bar \
	--baz

Thanks,

Thomas
Peter Korsgaard Feb. 19, 2014, 3:14 p.m. UTC | #2
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

 > Dear Maxime Hadjinlian,
 > On Tue, 18 Feb 2014 00:37:11 +0100, Maxime Hadjinlian wrote:

 >> diff --git a/package/sdl_image/sdl_image.mk b/package/sdl_image/sdl_image.mk
 >> index ba9751d..05b9a1f 100644
 >> --- a/package/sdl_image/sdl_image.mk
 >> +++ b/package/sdl_image/sdl_image.mk
 >> @@ -38,4 +38,15 @@ SDL_IMAGE_DEPENDENCIES = sdl \
 >> $(if $(BR2_PACKAGE_SDL_IMAGE_TIFF),tiff) \
 >> $(if $(BR2_PACKAGE_SDL_IMAGE_WEBP),webp)
 >> 
 >> +HOST_SDL_IMAGE_CONF_OPT = --with-sdl-prefix=$(HOST_DIR)/usr \
 >> +                --with-sdl-exec-prefix=$(HOST_DIR)/usr \
 >> +                --disable-sdltest \
 >> +                --disable-static \
 >> +                --disable-jpg-shared \
 >> +                --disable-png-shared \
 >> +                --disable-tif-shared \

 > This is nitpicking, but we normally intend this with one tab, do not
 > have a backslash on the last line, and also intend the first line. So,
 > something like:

 > HOST_SDL_IMAGE_CONF_OPT = \
 > 	--with-sdl-prefix=... \
 > 	--foo \
 > 	--bar \
 > 	--baz

True, but this atleast matches what is done just above for the target
version. With that being said, a followup patch to cleanup both would be
nice.
Peter Korsgaard Feb. 19, 2014, 3:14 p.m. UTC | #3
>>>>> "Maxime" == Maxime Hadjinlian <maxime.hadjinlian@gmail.com> writes:

 > Host version is needed to build xbmc
 > Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
 > Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

Committed to next, thanks.
diff mbox

Patch

diff --git a/package/sdl_image/sdl_image.mk b/package/sdl_image/sdl_image.mk
index ba9751d..05b9a1f 100644
--- a/package/sdl_image/sdl_image.mk
+++ b/package/sdl_image/sdl_image.mk
@@ -38,4 +38,15 @@  SDL_IMAGE_DEPENDENCIES = sdl \
 	$(if $(BR2_PACKAGE_SDL_IMAGE_TIFF),tiff) \
 	$(if $(BR2_PACKAGE_SDL_IMAGE_WEBP),webp)
 
+HOST_SDL_IMAGE_CONF_OPT = --with-sdl-prefix=$(HOST_DIR)/usr \
+                --with-sdl-exec-prefix=$(HOST_DIR)/usr \
+                --disable-sdltest \
+                --disable-static \
+                --disable-jpg-shared \
+                --disable-png-shared \
+                --disable-tif-shared \
+
+HOST_SDL_IMAGE_DEPENDENCIES = host-libjpeg host-libpng host-sdl
+
 $(eval $(autotools-package))
+$(eval $(host-autotools-package))