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
21 PKG_CONFIG_DEPENDS
:=CONFIG_AUDIO_SUPPORT
23 include $(INCLUDE_DIR
)/package.mk
28 TITLE
:=Simple DirectMedia Layer
29 URL
:=http
://www.libsdl.org
30 DEPENDS
:=+DirectFB
+zlib
+libpthread
+AUDIO_SUPPORT
:alsa-lib
33 define Package
/libsdl
/description
34 SDL is a library that allows programs portable low level access to a video
35 framebuffer
, audio output
, mouse
, and keyboard.
38 define Build
/Configure
39 $(call Build
/Configure
/Default
, \
41 $(if
$(CONFIG_AUDIO_SUPPORT
),
60 --enable-alsa-shared \
64 --disable-pulseaudio \
65 --enable-pulseaudio-shared \
67 --enable-arts-shared \
71 --disable-dummyaudio \
81 --enable-video-x11-dgamouse \
82 --enable-video-x11-vm \
83 --enable-video-x11-xv \
84 --disable-video-x11-xinerama \
85 --disable-video-x11-xme \
86 --disable-video-x11-xrandr \
87 --disable-video-photon \
88 --disable-video-carbon \
89 --disable-video-cocoa \
90 --disable-video-fbcon \
91 --enable-video-directfb \
92 --disable-video-ps2gs \
95 --disable-video-svga \
97 --disable-video-wscons \
98 --disable-video-aalib \
99 --disable-video-caca \
100 --disable-video-qtopia \
101 --disable-video-picogui \
102 --disable-video-xbios \
103 --disable-video-gem \
104 --disable-video-dummy \
105 --disable-video-opengl \
106 --disable-osmesa-shared \
107 --disable-screensaver \
108 --enable-input-events \
109 --disable-input-tslib \
112 --enable-pthread-sem \
113 --disable-stdio-redirect \
115 --enable-sdl-dlopen \
116 --disable-atari-ldg \
117 --disable-clock_gettime \
121 ac_cv_path_DIRECTFBCONFIG
=no \
125 define Build
/InstallDev
126 $(INSTALL_DIR
) $(1)/usr
/include $(1)/usr
/lib
/pkgconfig
128 $(PKG_INSTALL_DIR
)/usr
/include/SDL
* \
131 $(PKG_INSTALL_DIR
)/usr
/lib
/libSDL
*.
{a
,so
*} \
134 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/* \
135 $(1)/usr
/lib
/pkgconfig
138 $(INSTALL_DIR
) $(1)/usr
/share
/aclocal
140 $(PKG_INSTALL_DIR
)/usr
/share
/aclocal
/* \
141 $(1)/usr
/share
/aclocal
/
143 $(INSTALL_DIR
) $(1)/host
/bin
145 $(PKG_INSTALL_DIR
)/usr
/bin
/sdl-config \
148 $(SED
) 's,^\(exec_prefix\|prefix\)=.*,\1=\"$(STAGING_DIR)/usr/\",g' \
149 $(1)/host
/bin
/sdl-config
152 define Package
/libsdl
/install
153 $(INSTALL_DIR
) $(1)/usr
/lib
154 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libSDL
*.so.
* $(1)/usr
/lib
/
157 $(eval
$(call BuildPackage
,libsdl
))