directfb-1.5.3

svn path=/nixpkgs/trunk/; revision=31730
This commit is contained in:
Yury G. Kudryashov 2012-01-20 00:45:22 +00:00
parent 5cd82587aa
commit c2b80e225c
3 changed files with 32 additions and 5 deletions

View File

@ -10,6 +10,8 @@ stdenv.mkDerivation {
sha256 = s.hash;
};
patches = [ ./ftbfs.patch ];
buildNativeInputs = [ perl ];
buildInputs = [ zlib libjpeg freetype giflib libpng ]

View File

@ -0,0 +1,25 @@
From: André Draszik <andre.draszik@st.com>
Date: Wed, 28 Sep 2011 17:36:00 +0000 (+0100)
Subject: generic_stretch_blit: fix compilation due to undefined reference to DSPF_ARGBF88871
X-Git-Url: http://git.directfb.org/?p=core%2FDirectFB.git;a=commitdiff_plain;h=ef5e1398fe4037b63d6513e450f107fcfe91047f
generic_stretch_blit: fix compilation due to undefined reference to DSPF_ARGBF88871
../../../../DirectFB/src/gfx/generic/generic_stretch_blit.c: In function 'stretch_hvx':
../../../../DirectFB/src/gfx/generic/generic_stretch_blit.c:444:21: error: 'DSPF_ARGBF88871' undeclared (first use in this function)
../../../../DirectFB/src/gfx/generic/generic_stretch_blit.c:444:21: note: each undeclared identifier is reported only once for each function it appears in
---
diff --git a/src/gfx/generic/generic_stretch_blit.c b/src/gfx/generic/generic_stretch_blit.c
index 65076f4..6dd987b 100644
--- a/src/gfx/generic/generic_stretch_blit.c
+++ b/src/gfx/generic/generic_stretch_blit.c
@@ -441,7 +441,7 @@ stretch_hvx( CardState *state, DFBRectangle *srect, DFBRectangle *drect )
}
break;
- case DSPF_ARGBF88871:
+ case DSPF_RGBAF88871:
if (state->blittingflags & DSBLIT_SRC_PREMULTIPLY) {
for (i=0; i<gfxs->Blut->num_entries; i++) {
int alpha = entries[i].a + 1;

View File

@ -1,9 +1,9 @@
rec {
version="1.4.3";
name="directfb-1.4.3";
hash="0y79lwzq7srlbgrva7b5y8klbp6gmr8hxrayq8njaw7by3jald8l";
url="http://directfb.org/downloads/Core/DirectFB-1.4/DirectFB-${version}.tar.gz";
advertisedUrl="http://directfb.org/downloads/Core/DirectFB-1.4/DirectFB-1.4.3.tar.gz";
version="1.5.3";
name="directfb-1.5.3";
hash="1w2i4az6v4sh086s27qbyn5w02s67a7dfm2xdpdm4r2zpgl7axg5";
url="http://directfb.org/downloads/Core/DirectFB-1.5/DirectFB-${version}.tar.gz";
advertisedUrl="http://directfb.org/downloads/Core/DirectFB-1.5/DirectFB-1.5.3.tar.gz";
}