blob: e87700c480e49da2eb2d04ea41d6c894065a9a6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
|
#
# Copyright (C) 2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=SDL
PKG_VERSION:=1.2.14
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.libsdl.org/release/
PKG_MD5SUM:=e52086d1b508fa0b76c52ee30b55bec4
PKG_LICENSE:=LGPLv2.1
PKG_LICENSE_FILES:=COPYING test/COPYING
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
PKG_CONFIG_DEPENDS:=CONFIG_AUDIO_SUPPORT
include $(INCLUDE_DIR)/package.mk
define Package/libsdl
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Simple DirectMedia Layer
URL:=http://www.libsdl.org
DEPENDS:=+directfb +zlib +libpthread +AUDIO_SUPPORT:alsa-lib
endef
define Package/libsdl/description
SDL is a library that allows programs portable low level access to a video
framebuffer, audio output, mouse, and keyboard.
endef
CONFIGURE_ARGS+= \
--enable-libc \
--enable-video \
--enable-events \
--enable-joystick \
--enable-cdrom \
--enable-threads \
--enable-timers \
--enable-file \
--enable-loadso \
--enable-cpuinfo \
--enable-assembly \
--disable-oss \
--disable-alsatest \
--enable-alsa-shared \
--disable-esd \
--disable-esdtest \
--enable-esd-shared \
--disable-pulseaudio \
--enable-pulseaudio-shared \
--disable-arts \
--enable-arts-shared \
--disable-nas \
--enable-nas-shared \
--disable-diskaudio \
--disable-dummyaudio \
--disable-mintaudio \
--disable-nasm \
--disable-altivec \
--disable-ipod \
--disable-nanox \
--disable-video-x11 \
--enable-x11-shared \
--enable-dga \
--enable-video-dga \
--enable-video-x11-dgamouse \
--enable-video-x11-vm \
--enable-video-x11-xv \
--disable-video-x11-xinerama \
--disable-video-x11-xme \
--disable-video-x11-xrandr \
--disable-video-photon \
--disable-video-carbon \
--disable-video-cocoa \
--enable-video-fbcon \
--enable-video-directfb \
--disable-video-ps2gs \
--disable-video-ps3 \
--disable-video-ggi \
--disable-video-svga \
--disable-video-vgl \
--disable-video-wscons \
--disable-video-aalib \
--disable-video-caca \
--disable-video-qtopia \
--disable-video-picogui \
--disable-video-xbios \
--disable-video-gem \
--disable-video-dummy \
--disable-video-opengl \
--disable-osmesa-shared \
--disable-screensaver \
--enable-input-events \
--disable-input-tslib \
--enable-pth \
--enable-pthreads \
--enable-pthread-sem \
--disable-stdio-redirect \
--disable-directx \
--enable-sdl-dlopen \
--disable-atari-ldg \
--disable-clock_gettime \
--without-x \
--disable-rpath \
ifneq ($(CONFIG_AUDIO_SUPPORT),)
CONFIGURE_ARGS+= \
--enable-audio \
--enable-alsa
else
CONFIGURE_ARGS+= \
--disable-audio \
--disable-alsa
endif
CONFIGURE_VARS+= \
ac_cv_path_DIRECTFBCONFIG=no \
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib/pkgconfig
$(CP) \
$(PKG_INSTALL_DIR)/usr/include/SDL* \
$(1)/usr/include/
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/libSDL*.{a,so*} \
$(1)/usr/lib/
$(INSTALL_DATA) \
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
$(1)/usr/lib/pkgconfig
$(INSTALL_DIR) $(1)/usr/share/aclocal
$(INSTALL_DATA) \
$(PKG_INSTALL_DIR)/usr/share/aclocal/* \
$(1)/usr/share/aclocal/
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) \
$(PKG_INSTALL_DIR)/usr/bin/sdl-config \
$(1)/usr/bin/
$(SED) 's,^\(exec_prefix\|prefix\)=.*,\1=\"$(STAGING_DIR)/usr/\",g' \
$(1)/usr/bin/sdl-config
$(INSTALL_DIR) $(1)/host/bin
ln -sf ../../usr/bin/sdl-config $(1)/host/bin/
endef
define Package/libsdl/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libSDL*.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libsdl))
|