Makefile 1.4 KB

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