2 # Copyright (C) 2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://www.libsdl.org
/release
/
16 PKG_MD5SUM
:=e52086d1b508fa0b76c52ee30b55bec4
19 PKG_LICENSE_FILES
:=COPYING
test/COPYING
24 PKG_CONFIG_DEPENDS
:=CONFIG_AUDIO_SUPPORT
26 include $(INCLUDE_DIR
)/package.mk
31 TITLE
:=Simple DirectMedia Layer
32 URL
:=http
://www.libsdl.org
33 DEPENDS
:=+directfb
+zlib
+libpthread
+AUDIO_SUPPORT
:alsa-lib
36 define Package
/libsdl
/description
37 SDL is a library that allows programs portable low level access to a video
38 framebuffer
, audio output
, mouse
, and keyboard.
55 --enable-alsa-shared \
59 --disable-pulseaudio \
60 --enable-pulseaudio-shared \
62 --enable-arts-shared \
66 --disable-dummyaudio \
76 --enable-video-x11-dgamouse \
77 --enable-video-x11-vm \
78 --enable-video-x11-xv \
79 --disable-video-x11-xinerama \
80 --disable-video-x11-xme \
81 --disable-video-x11-xrandr \
82 --disable-video-photon \
83 --disable-video-carbon \
84 --disable-video-cocoa \
85 --enable-video-fbcon \
86 --enable-video-directfb \
87 --disable-video-ps2gs \
90 --disable-video-svga \
92 --disable-video-wscons \
93 --disable-video-aalib \
94 --disable-video-caca \
95 --disable-video-qtopia \
96 --disable-video-picogui \
97 --disable-video-xbios \
99 --disable-video-dummy \
100 --disable-video-opengl \
101 --disable-osmesa-shared \
102 --disable-screensaver \
103 --enable-input-events \
104 --disable-input-tslib \
107 --enable-pthread-sem \
108 --disable-stdio-redirect \
110 --enable-sdl-dlopen \
111 --disable-atari-ldg \
112 --disable-clock_gettime \
116 ifneq ($(CONFIG_AUDIO_SUPPORT
),)
127 ac_cv_path_DIRECTFBCONFIG
=no \
129 define Build
/InstallDev
130 $(INSTALL_DIR
) $(1)/usr
/include $(1)/usr
/lib
/pkgconfig
132 $(PKG_INSTALL_DIR
)/usr
/include/SDL
* \
135 $(PKG_INSTALL_DIR
)/usr
/lib
/libSDL
*.
{a
,so
*} \
138 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/* \
139 $(1)/usr
/lib
/pkgconfig
142 $(INSTALL_DIR
) $(1)/usr
/share
/aclocal
144 $(PKG_INSTALL_DIR
)/usr
/share
/aclocal
/* \
145 $(1)/usr
/share
/aclocal
/
147 $(INSTALL_DIR
) $(1)/usr
/bin
149 $(PKG_INSTALL_DIR
)/usr
/bin
/sdl-config \
152 $(SED
) 's,^\(exec_prefix\|prefix\)=.*,\1=\"$(STAGING_DIR)/usr/\",g' \
153 $(1)/usr
/bin
/sdl-config
155 $(INSTALL_DIR
) $(1)/host
/bin
156 ln
-sf ..
/..
/usr
/bin
/sdl-config
$(1)/host
/bin
/
159 define Package
/libsdl
/install
160 $(INSTALL_DIR
) $(1)/usr
/lib
161 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libSDL
*.so.
* $(1)/usr
/lib
/
164 $(eval
$(call BuildPackage
,libsdl
))