Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 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. PKG_URL:= http://www.libsdl.org/
  13. PKG_SITES:= http://www.libsdl.org/projects/SDL_image/release/
  14. PKG_LIBNAME:= libsdl-image
  15. PKG_OPTS:= dev
  16. DISTFILES:= SDL_image-${PKG_VERSION}.tar.gz
  17. WRKDIST= ${WRKDIR}/SDL_image-${PKG_VERSION}
  18. include $(TOPDIR)/mk/host.mk
  19. include $(TOPDIR)/mk/package.mk
  20. $(eval $(call HOST_template,LIBSDL_IMAGE,libsdl-image,$(PKG_VERSION)-${PKG_RELEASE}))
  21. $(eval $(call PKG_template,LIBSDL_IMAGE,libsdl-image,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  22. ifeq ($(ADK_HOST_DARWIN),y)
  23. LDFLAGS_FOR_BUILD+= -framework Cocoa
  24. endif
  25. HOST_STYLE:= auto
  26. HOST_CONFIGURE_ARGS+= --disable-png-shared
  27. CONFIGURE_ARGS+= --enable-png \
  28. --enable-jpg \
  29. --enable-bmp \
  30. --enable-tif
  31. libsdl-image-install:
  32. $(INSTALL_DIR) $(IDIR_LIBSDL_IMAGE)/usr/lib
  33. $(CP) ${WRKINST}/usr/lib/libSDL*.so* $(IDIR_LIBSDL_IMAGE)/usr/lib
  34. include ${TOPDIR}/mk/host-bottom.mk
  35. include ${TOPDIR}/mk/pkg-bottom.mk