1
0

Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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-image
  5. PKG_VERSION:= 1.2.10
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 6c06584b31559e2b59f2b982d0d1f628
  8. PKG_DESCR:= Simple DirectMedia Layer
  9. PKG_SECTION:= libs
  10. PKG_DEPENDS:= libpng libtiff libjpeg-turbo libsdl
  11. PKG_BUILDDEP:= sdl-image-host libpng libtiff libjpeg-turbo sdl
  12. PKG_URL:= http://www.libsdl.org/
  13. PKG_SITES:= http://www.libsdl.org/projects/SDL_image/release/
  14. PKG_NEED_CXX:= 1
  15. PKG_LIBNAME:= libsdl-image
  16. PKG_OPTS:= dev
  17. DISTFILES:= SDL_image-${PKG_VERSION}.tar.gz
  18. WRKDIST= ${WRKDIR}/SDL_image-${PKG_VERSION}
  19. include $(TOPDIR)/mk/host.mk
  20. include $(TOPDIR)/mk/package.mk
  21. $(eval $(call HOST_template,LIBSDL_IMAGE,libsdl-image,$(PKG_VERSION)-${PKG_RELEASE}))
  22. $(eval $(call PKG_template,LIBSDL_IMAGE,libsdl-image,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  23. HOST_STYLE:= auto
  24. CONFIGURE_ARGS+= --enable-png \
  25. --enable-jpg \
  26. --enable-bmp \
  27. --enable-tif
  28. libsdl-image-install:
  29. $(INSTALL_DIR) $(IDIR_LIBSDL_IMAGE)/usr/lib
  30. $(CP) ${WRKINST}/usr/lib/libSDL*.so* $(IDIR_LIBSDL_IMAGE)/usr/lib
  31. include ${TOPDIR}/mk/host-bottom.mk
  32. include ${TOPDIR}/mk/pkg-bottom.mk