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 include $(INCLUDE_DIR
)/package.mk
26 TITLE
:=Simple DirectMedia Layer
27 URL
:=http
://www.libsdl.org
28 DEPENDS
:=+DirectFB
+zlib
+libpthread
31 define Package
/libsdl
/description
32 SDL is a library that allows programs portable low level access to a video
33 framebuffer
, audio output
, mouse
, and keyboard.
36 define Build
/Configure
37 $(call Build
/Configure
/Default
, \
53 --enable-alsa-shared \
57 --disable-pulseaudio \
58 --enable-pulseaudio-shared \
60 --enable-arts-shared \
64 --disable-dummyaudio \
74 --enable-video-x11-dgamouse \
75 --enable-video-x11-vm \
76 --enable-video-x11-xv \
77 --disable-video-x11-xinerama \
78 --disable-video-x11-xme \
79 --disable-video-x11-xrandr \
80 --disable-video-photon \
81 --disable-video-carbon \
82 --disable-video-cocoa \
83 --disable-video-fbcon \
84 --enable-video-directfb \
85 --disable-video-ps2gs \
88 --disable-video-svga \
90 --disable-video-wscons \
91 --disable-video-aalib \
92 --disable-video-caca \
93 --disable-video-qtopia \
94 --disable-video-picogui \
95 --disable-video-xbios \
97 --disable-video-dummy \
98 --disable-video-opengl \
99 --disable-osmesa-shared \
100 --disable-screensaver \
101 --enable-input-events \
102 --disable-input-tslib \
105 --enable-pthread-sem \
106 --disable-stdio-redirect \
108 --enable-sdl-dlopen \
109 --disable-atari-ldg \
110 --disable-clock_gettime \
114 ac_cv_path_DIRECTFBCONFIG
=no \
118 define Build
/InstallDev
119 $(INSTALL_DIR
) $(1)/usr
/include $(1)/usr
/lib
/pkgconfig
121 $(PKG_INSTALL_DIR
)/usr
/include/SDL
* \
124 $(PKG_INSTALL_DIR
)/usr
/lib
/libSDL
*.
{a
,so
*} \
127 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/* \
128 $(1)/usr
/lib
/pkgconfig
131 $(INSTALL_DIR
) $(1)/usr
/share
/aclocal
133 $(PKG_INSTALL_DIR
)/usr
/share
/aclocal
/* \
134 $(1)/usr
/share
/aclocal
/
136 $(INSTALL_DIR
) $(1)/host
/bin
138 $(PKG_INSTALL_DIR
)/usr
/bin
/sdl-config \
141 $(SED
) 's,^\(exec_prefix\|prefix\)=.*,\1=\"$(STAGING_DIR)/usr/\",g' \
142 $(1)/host
/bin
/sdl-config
145 define Package
/libsdl
/install
146 $(INSTALL_DIR
) $(1)/usr
/lib
147 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libSDL
*.so.
* $(1)/usr
/lib
/
150 $(eval
$(call BuildPackage
,libsdl
))