BSD Ports

graphics/sdl2_image 2.0.5_1 MidnightBSD

Simple library to load images of various formats as SDL surfaces

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
zlib
Categories
graphics

Description

This is a simple library to load images of various formats as SDL surfaces. This library supports BMP, PPM, PCX, GIF, JPEG, PNG, TGA, and TIFF formats.

API: #include "SDL_image.h"

SDL\_Surface \*IMG\_Load(const char \*file);

or SDL_Surface *IMG_Load_RW(SDL_RWops *src, int freesrc); or SDL_Surface *IMG_Load_RW(SDL_RWops *src, int freesrc, char *type);

where type is a string specifying the format (i.e. "PNG" or "pcx"). Note that IMG_Load_RW cannot load TGA images.

An example program 'showimage' is included, with source in showimage.c

In the other systems

SystemPortVersion
MidnightBSDgraphics/sdl2_image2.0.5_1
FreeBSDgraphics/sdl2_image2.8.12_1
DragonFlygraphics/sdl2_image2.8.8
HardenedBSDgraphics/sdl2_image2.8.12_1
GhostBSDgraphics/sdl2_image2.8.12_1

Install

Binary package:

mport install sdl2_image

From mports:

cd /usr/mports/graphics/sdl2_image && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	sdl2_image>0:graphics/sdl2_image
LIB_DEPENDS=	libSDL2_image.so:graphics/sdl2_image

Dependencies

No port depends on this one.

Configuration

Options name: graphics_sdl2_image

OptionDefaultDescription
JPEGon
PNGon
TIFFon
WEBPon
USES
gmake libtool localbase pkgconfig pathfix sdl
Service scripts
none

Files

pkg-plist 6
  • include/SDL2/SDL_image.h
  • lib/libSDL2_image-2.0.so.0
  • lib/libSDL2_image-2.0.so.0.2.3
  • lib/libSDL2_image.a
  • lib/libSDL2_image.so
  • libdata/pkgconfig/SDL2_image.pc
distinfo 1
FileSizeSHA256
SDL2_image-2.0.5.tar.gz1.1736518e+07bdd5f6e026682f7d7e1be0b6051b209da2f402a2dd8bd1c4bd9c25ad263108d0
Master sites 1
  • https://www.libsdl.org/projects/SDL_image/release/