ltp: update to latest
[openadk.git] / package / sdl / Makefile
blob351a65f0166b8e58d2725fb74ab9669fe9e8c781
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
6 PKG_NAME:= sdl
7 PKG_VERSION:= 1.2.15
8 PKG_RELEASE:= 1
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
14 PKG_NEEDS:= threads
15 PKG_URL:= http://www.libsdl.org/
16 PKG_SITES:= http://www.libsdl.org/release/
17 PKG_LIBNAME:= libsdl
18 PKG_OPTS:= dev
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}))
34 HOST_STYLE:= auto
35 HOST_CONFIGURE_ARGS+= --without-x \
36 --enable-shared \
37 --disable-cdrom \
38 --disable-joystick \
39 --disable-audio \
40 --disable-video \
41 --disable-assembly \
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
49 endif
50 CONFIGURE_ARGS+= --disable-esd \
51 --disable-oss \
52 --enable-alsa \
53 --enable-video-fbcon \
54 --disable-video-directfb \
55 --disable-video-opengl \
56 --disable-video-ps2gs \
57 --disable-video-ps3 \
58 --with-x
60 libsdl-install:
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