Makefile 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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:= 3
  7. PKG_MD5SUM:= e52086d1b508fa0b76c52ee30b55bec4
  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 $(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_CONFIGURE_ARGS+= --without-x \
  27. --enable-shared \
  28. --disable-cdrom \
  29. --disable-joystick \
  30. --disable-audio \
  31. --disable-video \
  32. --disable-assembly \
  33. --disable-input-tslib \
  34. --disable-video-directfb \
  35. --disable-video-cocoa \
  36. --disable-video-opengl
  37. ifeq ($(ADK_PACKAGE_SDL_WITH_TSLIB),y)
  38. CONFIGURE_ARGS+= --enable-input-tslib
  39. endif
  40. CONFIGURE_ARGS+= --disable-esd \
  41. --disable-oss \
  42. --enable-alsa \
  43. --enable-video-fbcon \
  44. --disable-video-directfb \
  45. --disable-video-opengl \
  46. --disable-video-ps2gs \
  47. --disable-video-ps3 \
  48. --with-x
  49. libsdl-install:
  50. $(INSTALL_DIR) $(IDIR_LIBSDL)/usr/lib
  51. $(CP) ${WRKINST}/usr/lib/libSDL*.so* $(IDIR_LIBSDL)/usr/lib
  52. include ${TOPDIR}/mk/host-bottom.mk
  53. include ${TOPDIR}/mk/pkg-bottom.mk