Makefile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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_HASH:= 0b90722984561004de84847744d566809dbb9daf732a9e503b91a1b5a84e5699
  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. HOST_LDFLAGS+= -framework Cocoa
  25. endif
  26. AUTOTOOL_STYLE:= autogen
  27. HOST_STYLE:= auto
  28. HOST_CONFIGURE_ARGS+= --with-sdl-prefix='${STAGING_HOST_DIR}/usr' \
  29. --disable-sdltest \
  30. --enable-png \
  31. --disable-webp \
  32. --disable-jpg \
  33. --disable-tif \
  34. --disable-bmp
  35. CONFIGURE_ARGS+= --with-sdl-prefix='${STAGING_TARGET_DIR}/usr' \
  36. --enable-png \
  37. --enable-jpg \
  38. --enable-bmp \
  39. --enable-tif \
  40. --disable-webp
  41. libsdl-image-install:
  42. $(INSTALL_DIR) $(IDIR_LIBSDL_IMAGE)/usr/lib
  43. $(CP) ${WRKINST}/usr/lib/libSDL*.so* $(IDIR_LIBSDL_IMAGE)/usr/lib
  44. include ${ADK_TOPDIR}/mk/host-bottom.mk
  45. include ${ADK_TOPDIR}/mk/pkg-bottom.mk