Makefile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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:= 1
  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:= libusb alsa-lib libX11 libXext
  12. PKG_URL:= http://www.libsdl.org/
  13. PKG_SITES:= http://www.libsdl.org/release/
  14. PKG_FLAVOURS_LIBSDL:= WITH_TSLIB
  15. PKGFD_WITH_TSLIB:= enable touchscreen support
  16. PKGFS_WITH_TSLIB:= tslib
  17. PKGFB_WITH_TSLIB:= tslib
  18. PKG_SUBPKGS:= LIBSDL LIBSDL_DEV
  19. PKGSD_LIBSDL_DEV:= development files for libsdl
  20. PKGSC_LIBSDL_DEV:= devel
  21. DISTFILES:= SDL-${PKG_VERSION}.tar.gz
  22. WRKDIST= ${WRKDIR}/SDL-${PKG_VERSION}
  23. include $(TOPDIR)/mk/package.mk
  24. $(eval $(call PKG_template,LIBSDL,libsdl,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  25. $(eval $(call PKG_template,LIBSDL_DEV,libsdl-dev,$(PKG_VERSION)-${PKG_RELEASE},libsdl,${PKGSD_LIBSDL_DEV},${PKGSC_LIBSDL_DEV}))
  26. ifeq ($(ADK_PACKAGE_SDL_WITH_TSLIB),y)
  27. CONFIGURE_ARGS+= --enable-input-tslib
  28. endif
  29. CONFIGURE_ARGS+= --disable-esd \
  30. --disable-oss \
  31. --enable-alsa \
  32. --enable-video-fbcon \
  33. --disable-video-directfb \
  34. --disable-video-opengl \
  35. --disable-video-ps2gs \
  36. --disable-video-ps3 \
  37. --with-x
  38. libsdl-install:
  39. $(INSTALL_DIR) $(IDIR_LIBSDL)/usr/lib
  40. $(CP) ${WRKINST}/usr/lib/libSDL*.so* $(IDIR_LIBSDL)/usr/lib
  41. libsdl-dev-install:
  42. $(INSTALL_DIR) $(IDIR_LIBSDL_DEV)/usr/bin
  43. ${INSTALL_BIN} ${WRKINST}/usr/bin/sdl-config \
  44. $(IDIR_LIBSDL_DEV)/usr/bin
  45. $(INSTALL_DIR) $(IDIR_LIBSDL_DEV)/usr/include/SDL
  46. $(CP) ${WRKINST}/usr/include/SDL/* $(IDIR_LIBSDL_DEV)/usr/include/SDL
  47. include ${TOPDIR}/mk/pkg-bottom.mk