Makefile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= sdl
  5. PKG_VERSION:= 1.2.15
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 9d96df8417572a2afb781a7c4c811a85
  8. PKG_DESCR:= simple directmedia layer
  9. PKG_SECTION:= libs/misc
  10. PKG_DEPENDS:= libusb alsa-lib libpthread libx11 libxext
  11. PKG_BUILDDEP:= sdl-host libusb alsa-lib libX11 libXext
  12. PKG_URL:= http://www.libsdl.org/
  13. PKG_SITES:= http://www.libsdl.org/release/
  14. PKG_LIBNAME:= libsdl
  15. PKG_OPTS:= dev
  16. PKG_FLAVOURS_LIBSDL:= WITH_TSLIB
  17. PKGFD_WITH_TSLIB:= enable touchscreen support
  18. PKGFS_WITH_TSLIB:= tslib
  19. PKGFB_WITH_TSLIB:= tslib
  20. DISTFILES:= SDL-${PKG_VERSION}.tar.gz
  21. WRKDIST= ${WRKDIR}/SDL-${PKG_VERSION}
  22. include $(ADK_TOPDIR)/mk/host.mk
  23. include $(ADK_TOPDIR)/mk/package.mk
  24. $(eval $(call HOST_template,LIBSDL,libsdl,$(PKG_VERSION)-${PKG_RELEASE}))
  25. $(eval $(call PKG_template,LIBSDL,libsdl,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  26. HOST_STYLE:= auto
  27. HOST_CONFIGURE_ARGS+= --without-x \
  28. --enable-shared \
  29. --disable-cdrom \
  30. --disable-joystick \
  31. --disable-audio \
  32. --disable-video \
  33. --disable-assembly \
  34. --disable-input-tslib \
  35. --disable-video-directfb \
  36. --disable-video-cocoa \
  37. --disable-video-opengl
  38. ifeq ($(ADK_PACKAGE_SDL_WITH_TSLIB),y)
  39. CONFIGURE_ARGS+= --enable-input-tslib
  40. endif
  41. CONFIGURE_ARGS+= --disable-esd \
  42. --disable-oss \
  43. --enable-alsa \
  44. --enable-video-fbcon \
  45. --disable-video-directfb \
  46. --disable-video-opengl \
  47. --disable-video-ps2gs \
  48. --disable-video-ps3 \
  49. --with-x
  50. libsdl-install:
  51. $(INSTALL_DIR) $(IDIR_LIBSDL)/usr/lib
  52. $(CP) ${WRKINST}/usr/lib/libSDL*.so* $(IDIR_LIBSDL)/usr/lib
  53. include ${ADK_TOPDIR}/mk/host-bottom.mk
  54. include ${ADK_TOPDIR}/mk/pkg-bottom.mk