Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 tslib
  11. PKG_BUILDDEP+= libusb alsa-lib tslib
  12. PKG_URL:= http://www.libsdl.org
  13. PKG_SITES:= http://www.libsdl.org/release/
  14. PKG_DESCR_LIB_DEV:= development files for libsdl
  15. PKG_SECTION_LIB_DEV:= devel
  16. DISTFILES:= SDL-${PKG_VERSION}.tar.gz
  17. WRKDIST= ${WRKDIR}/SDL-${PKG_VERSION}
  18. include $(TOPDIR)/mk/package.mk
  19. $(eval $(call PKG_template,LIBSDL,libsdl,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. $(eval $(call PKG_template,LIBSDL_DEV,libsdl-dev,$(PKG_VERSION)-${PKG_RELEASE},libsdl,${PKG_DESCR_LIB_DEV},${PKG_SECTION_LIB_DEV}))
  21. SUB_INSTALLS-y:=
  22. SUB_INSTALLS-m:=
  23. SUB_INSTALLS-${ADK_PACKAGE_LIBSDL_DEV}+= libsdl-dev-install
  24. CONFIGURE_ARGS+= --disable-esd \
  25. --disable-oss \
  26. --enable-alsa \
  27. --enable-video-fbcon \
  28. --disable-video-directfb \
  29. --disable-video-opengl \
  30. --enable-input-tslib \
  31. --with-x
  32. post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
  33. $(INSTALL_DIR) $(IDIR_LIBSDL)/usr/lib
  34. $(CP) ${WRKINST}/usr/lib/libSDL*.so* $(IDIR_LIBSDL)/usr/lib
  35. libsdl-dev-install:
  36. $(INSTALL_DIR) $(IDIR_LIBSDL_DEV)/usr/include/SDL
  37. $(CP) ${WRKINST}/usr/include/SDL/* $(IDIR_LIBSDL_DEV)/usr/include/SDL
  38. include ${TOPDIR}/mk/pkg-bottom.mk