Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. HOST_CONFIGURE_ARGS+= --without-x
  28. ifeq ($(ADK_PACKAGE_SDL_WITH_TSLIB),y)
  29. CONFIGURE_ARGS+= --enable-input-tslib
  30. endif
  31. CONFIGURE_ARGS+= --disable-esd \
  32. --disable-oss \
  33. --enable-alsa \
  34. --enable-video-fbcon \
  35. --disable-video-directfb \
  36. --disable-video-opengl \
  37. --disable-video-ps2gs \
  38. --disable-video-ps3 \
  39. --with-x
  40. libsdl-install:
  41. $(INSTALL_DIR) $(IDIR_LIBSDL)/usr/lib
  42. $(CP) ${WRKINST}/usr/lib/libSDL*.so* $(IDIR_LIBSDL)/usr/lib
  43. include ${TOPDIR}/mk/host-bottom.mk
  44. include ${TOPDIR}/mk/pkg-bottom.mk