Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= sdl-image
  5. PKG_VERSION:= 1.2.12
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= a0f9098ebe5400f0bdc9b62e60797ecb
  8. PKG_DESCR:= simple directmedia layer image library
  9. PKG_SECTION:= libs/image
  10. PKG_DEPENDS:= libpng libtiff libjpeg-turbo libsdl libstdcxx
  11. PKG_BUILDDEP:= libpng libtiff libjpeg-turbo sdl
  12. HOST_BUILDDEP+= libpng-host
  13. PKG_URL:= http://www.libsdl.org/
  14. PKG_SITES:= http://www.libsdl.org/projects/SDL_image/release/
  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 $(ADK_TOPDIR)/mk/host.mk
  20. include $(ADK_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. ifeq ($(ADK_HOST_DARWIN),y)
  24. LDFLAGS_FOR_BUILD+= -framework Cocoa
  25. endif
  26. AUTOTOOL_STYLE:= autogen
  27. HOST_STYLE:= auto
  28. HOST_CONFIGURE_ARGS+= --with-sdl-prefix='${STAGING_HOST_DIR}/usr' \
  29. --enable-png \
  30. --disable-webp \
  31. --disable-jpg \
  32. --disable-tif \
  33. --disable-bmp
  34. CONFIGURE_ARGS+= --with-sdl-prefix='${STAGING_TARGET_DIR}/usr' \
  35. --enable-png \
  36. --enable-jpg \
  37. --enable-bmp \
  38. --enable-tif \
  39. --disable-webp
  40. libsdl-image-install:
  41. $(INSTALL_DIR) $(IDIR_LIBSDL_IMAGE)/usr/lib
  42. $(CP) ${WRKINST}/usr/lib/libSDL*.so* $(IDIR_LIBSDL_IMAGE)/usr/lib
  43. include ${ADK_TOPDIR}/mk/host-bottom.mk
  44. include ${ADK_TOPDIR}/mk/pkg-bottom.mk