Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 $(TOPDIR)/rules.mk
  4. PKG_NAME:= sdl
  5. PKG_VERSION:= 1.2.14
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= e52086d1b508fa0b76c52ee30b55bec4
  8. PKG_DESCR:= Simple DirectMedia Layer
  9. PKG_SECTION:= libs
  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 $(TOPDIR)/mk/host.mk
  23. include $(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. ifeq ($(ADK_PACKAGE_SDL_WITH_TSLIB),y)
  28. CONFIGURE_ARGS+= --enable-input-tslib
  29. endif
  30. CONFIGURE_ARGS+= --disable-esd \
  31. --disable-oss \
  32. --enable-alsa \
  33. --enable-video-fbcon \
  34. --disable-video-directfb \
  35. --disable-video-opengl \
  36. --disable-video-ps2gs \
  37. --disable-video-ps3 \
  38. --with-x
  39. libsdl-install:
  40. $(INSTALL_DIR) $(IDIR_LIBSDL)/usr/lib
  41. $(CP) ${WRKINST}/usr/lib/libSDL*.so* $(IDIR_LIBSDL)/usr/lib
  42. include ${TOPDIR}/mk/host-bottom.mk
  43. include ${TOPDIR}/mk/pkg-bottom.mk