1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR
)/rules.mk
9 PKG_HASH
:= d6d316a793e5e348155f0dd93b979798933fb98aa1edebcc108829d6474aad00
10 PKG_DESCR
:= simple directmedia layer
11 PKG_SECTION
:= libs
/misc
12 PKG_DEPENDS
:= libusb alsa-lib libx11 libxext
13 PKG_BUILDDEP
:= sdl-host libusb alsa-lib libX11 libXext
15 PKG_URL
:= http
://www.libsdl.org
/
16 PKG_SITES
:= http
://www.libsdl.org
/release
/
20 PKG_FLAVOURS_LIBSDL
:= WITH_TSLIB
21 PKGFD_WITH_TSLIB
:= enable touchscreen support
22 PKGFS_WITH_TSLIB
:= tslib
23 PKGFB_WITH_TSLIB
:= tslib
25 DISTFILES
:= SDL-
${PKG_VERSION}.
tar.gz
26 WRKDIST
= ${WRKDIR}/SDL-
${PKG_VERSION}
28 include $(ADK_TOPDIR
)/mk
/host.mk
29 include $(ADK_TOPDIR
)/mk
/package.mk
31 $(eval
$(call HOST_template
,LIBSDL
,libsdl
,$(PKG_VERSION
)-${PKG_RELEASE}))
32 $(eval
$(call PKG_template
,LIBSDL
,libsdl
,$(PKG_VERSION
)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
35 HOST_CONFIGURE_ARGS
+= --without-x \
42 --disable-input-tslib \
43 --disable-video-directfb \
44 --disable-video-cocoa \
45 --disable-video-opengl
47 ifeq ($(ADK_PACKAGE_SDL_WITH_TSLIB
),y
)
48 CONFIGURE_ARGS
+= --enable-input-tslib
50 CONFIGURE_ARGS
+= --disable-esd \
53 --enable-video-fbcon \
54 --disable-video-directfb \
55 --disable-video-opengl \
56 --disable-video-ps2gs \
61 $(INSTALL_DIR
) $(IDIR_LIBSDL
)/usr
/lib
62 $(CP
) ${WRKINST}/usr
/lib
/libSDL
*.so
* $(IDIR_LIBSDL
)/usr
/lib
64 include ${ADK_TOPDIR}/mk
/host-bottom.mk
65 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk