Date:2010-04-17 12:53:01 (13 years 11 months ago)
Author:Mirko Lindner
Commit:56054b32a7e64a50624552c272bfffc8d5735262
Message:add dfbsee makefile

marked as broken

Signed-off-by: Mirko Lindner <mirko@sharism.cc>
Files: dfbsee/Makefile (1 diff)
dfbsee/patches/010-fix-compile.patch (1 diff)
dfbsee/patches/020-asm-types.patch (1 diff)
dfbsee/patches/030-makefile-am.patch (1 diff)

Change Details

dfbsee/Makefile
1#
2# Copyright (c) 2010 wejp
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=dfbsee
11PKG_VERSION:=0.7.4
12PKG_RELEASE:=1
13
14PKG_SOURCE:=DFBSee-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://www.directfb.org/download/DFBSee/
16PKG_MD5SUM:=3320a976457d3b3e9eaef530fdf56b37
17PKG_BUILD_DIR:=$(BUILD_DIR)/DFBSee-$(PKG_VERSION)
18
19include $(INCLUDE_DIR)/package.mk
20
21define Package/dfbsee
22  SECTION:=multimedia
23  CATEGORY:=Multimedia
24  TITLE:=directfb media player
25  URL:=
26  MENU:=1
27  DEPENDS:=@BROKEN
28endef
29
30define Package/dfbsee/description
31  A popular music player for various handheld devices.
32  It supports various file formats and comes with a
33  file browser and a playlist editor/viewer.
34endef
35
36TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
37
38define Build/Compile
39    -$(MAKE) -C $(PKG_BUILD_DIR) distclean
40    (cd $(PKG_BUILD_DIR); \
41    ./configure \
42    );
43    $(MAKE) -C $(PKG_BUILD_DIR)/src \
44        volume-tables-gen
45
46    $(MAKE) -C $(PKG_BUILD_DIR)/src \
47        volume-tables.header
48
49    $(MAKE) -C $(PKG_BUILD_DIR) distclean
50
51    $(call Build/Configure/Default, \
52    );
53
54    $(MAKE) -C $(PKG_BUILD_DIR)/src/gfx \
55        $(MAKE_OPTS) \
56        gfx.h
57
58    $(MAKE) -C $(PKG_BUILD_DIR)/src \
59        dfbsee
60endef
61
62define Package/dfbsee/install
63    $(INSTALL_DIR) \
64        $(1)/usr/share/DFBSee \
65        $(1)/usr/bin \
66
67    $(INSTALL_BIN) \
68        $(PKG_BUILD_DIR)/src/dfbsee \
69        $(1)/usr/bin/
70
71    $(INSTALL_DATA) \
72        $(PKG_BUILD_DIR)/data/decker.ttf \
73        $(1)/usr/share/DFBSee/
74endef
75
76$(eval $(call BuildPackage,dfbsee))
dfbsee/patches/010-fix-compile.patch
1# --- T2-COPYRIGHT-NOTE-BEGIN ---
2# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3#
4# T2 SDE: package/.../dfbsee/compile-fix.patch
5# Copyright (C) 2004 - 2005 The T2 SDE Project
6#
7# More information can be found in the files COPYING and README.
8#
9# This patch file is dual-licensed. It is available under the license the
10# patched project is licensed under, as long as it is an OpenSource license
11# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12# of the GNU General Public License as published by the Free Software
13# Foundation; either version 2 of the License, or (at your option) any later
14# version.
15# --- T2-COPYRIGHT-NOTE-END ---
16diff -Nur DFBSee-0.7.4.orig/src/main.c DFBSee-0.7.4/src/main.c
17--- DFBSee-0.7.4.orig/src/main.c 2002-11-02 01:08:18.000000000 +0200
18@@ -53,7 +53,7 @@
19 main (int argc,
20       char **argv)
21 {
22- DFBCardCapabilities caps;
23+ DFBGraphicsDeviceDescription desc;
24   DFBSurfaceDescription dsc;
25   IDirectFBEventBuffer *buffer;
26   IDirectFBSurface *image_area;
27@@ -78,8 +78,8 @@
28   /* create the super interface */
29   DFBCHECK (DirectFBCreate (&dfb));
30
31- dfb->GetCardCapabilities (dfb, &caps);
32- hw_stretchblit = caps.acceleration_mask & DFXL_STRETCHBLIT;
33+ dfb->GetDeviceDescription (dfb, &desc);
34+ hw_stretchblit = desc.acceleration_mask & DFXL_STRETCHBLIT;
35
36   dfb->SetCooperativeLevel (dfb, DFSCL_FULLSCREEN);
37
38diff -Nur DFBSee-0.7.4.orig/src/rotate.c DFBSee-0.7.4/src/rotate.c
39--- DFBSee-0.7.4.orig/src/rotate.c 2002-08-26 21:14:14.000000000 +0200
40@@ -43,9 +43,9 @@
41         {\
42           *d = *s;\
43           s++;\
44- (__u8*)d += dest_pitch;\
45+ d = ((void*) d) + dest_pitch;\
46         }\
47- (__u8*)src += src_pitch;\
48+ src = ((void*) src) + src_pitch;\
49     }\
50 }\
51
52@@ -53,7 +53,7 @@
53 {\
54   type d;\
55   type s;\
56- (__u8 *) dest += (height - 1) * dest_pitch;\
57+ dest = ((void*) dest) + (height - 1) * dest_pitch;\
58   for (w = 0; w < width; w++)\
59     {\
60       h = height;\
61@@ -63,9 +63,9 @@
62         {\
63           *d = *s;\
64           s++;\
65- (__u8*)d -= dest_pitch;\
66+ d = ((void*) d) - dest_pitch;\
67         }\
68- (__u8*)src += src_pitch;\
69+ src = ((void*) src) + src_pitch;\
70     }\
71 }\
72
73@@ -73,7 +73,7 @@
74 {\
75   type d;\
76   type s;\
77- (__u8 *) dest += (height - 1) * dest_pitch;\
78+ dest = ((void*) dest) + (height - 1) * dest_pitch;\
79   while (--height)\
80     {\
81       d = (type) dest + width - 1;\
82@@ -85,8 +85,8 @@
83           s++;\
84           d--;\
85         }\
86- (__u8*)src += src_pitch;\
87- (__u8*)dest -= dest_pitch;\
88+ src = ((void*) src) - src_pitch;\
89+ dest = ((void*) dest) + dest_pitch;\
90     }\
91 }\
92
93@@ -172,7 +172,7 @@
94   source->Lock (source, DSLF_READ, &src, &src_pitch);
95   destination->Lock (destination, DSLF_READ, &dest, &dest_pitch);
96
97- (__u8 *) dest += dest_pitch * y + DFB_BYTES_PER_PIXEL (pixelformat) * x;
98+ dest += dest_pitch * y + DFB_BYTES_PER_PIXEL (pixelformat) * x;
99
100   rotate (dest, dest_pitch,
101           src, src_pitch, width, height, DFB_BYTES_PER_PIXEL (pixelformat),
102
103
dfbsee/patches/020-asm-types.patch
1*** DFBSee-0.7.4/src/rotate.c 2010-04-16 20:01:33.000000000 +0200
2--- b-DFBSee-0.7.4/src/rotate.c 2010-04-17 10:45:19.000000000 +0200
3***************
4*** 26,31 ****
5--- 26,32 ----
6
7  #include "dfbsee.h"
8  #include "rotate.h"
9+ #include <asm/types.h>
10
11
12  #define SWAP(a,b,tmp) { (tmp) = *(b); *(b) = *(a); *(a) = (tmp); }
dfbsee/patches/030-makefile-am.patch
1*** DFBSee-0.7.4/src/Makefile.am 2002-08-12 16:24:43.000000000 +0200
2--- b-DFBSee-0.7.4/src/Makefile.am 2010-04-17 12:39:26.000000000 +0200
3***************
4*** 42,46 ****
5  volume_tables_gen_INCLUDES =
6  volume_tables_gen_LDADD = -lm
7
8! volume-tables.h: volume-tables-gen
9      ./volume-tables-gen > $(srcdir)/volume-tables.h
10--- 42,46 ----
11  volume_tables_gen_INCLUDES =
12  volume_tables_gen_LDADD = -lm
13
14! volume-tables.header: volume-tables-gen
15      ./volume-tables-gen > $(srcdir)/volume-tables.h
16
17*** DFBSee-0.7.4/src/Makefile.in 2002-11-13 01:14:10.000000000 +0100
18--- b-DFBSee-0.7.4/src/Makefile.in 2010-04-17 12:45:26.000000000 +0200
19***************
20*** 402,408 ****
21  maintainer-clean-generic clean mostlyclean distclean maintainer-clean
22
23
24! volume-tables.h: volume-tables-gen
25      ./volume-tables-gen > $(srcdir)/volume-tables.h
26
27  # Tell versions [3.59,3.63) of GNU make to not export all variables.
28--- 402,408 ----
29  maintainer-clean-generic clean mostlyclean distclean maintainer-clean
30
31
32! volume-tables.header: volume-tables-gen
33      ./volume-tables-gen > $(srcdir)/volume-tables.h
34
35  # Tell versions [3.59,3.63) of GNU make to not export all variables.

Archive Download the corresponding diff file



interactive