BSD Ports

graphics/sdl_image 1.2.12_4 MidnightBSD

Simple library to load images of various formats as SDL surfaces

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
lgpl2.1
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/sdl_image1.2.12_4
FreeBSDgraphics/sdl_image1.2.12_14
DragonFlygraphics/sdl_image1.2.12_14
HardenedBSDgraphics/sdl_image1.2.12_14
GhostBSDgraphics/sdl_image1.2.12_14

Install

Binary package:

mport install sdl_image

From mports:

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

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

RUN_DEPENDS=	sdl_image>0:graphics/sdl_image
LIB_DEPENDS=	libSDL_image.so:graphics/sdl_image

Dependencies

No port depends on this one.

Configuration

Options name: graphics_sdl_image

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

Files

pkg-plist 7
  • bin/showimage
  • include/SDL/SDL_image.h
  • lib/libSDL_image-1.2.so.0
  • lib/libSDL_image-1.2.so.0.8.4
  • lib/libSDL_image.a
  • lib/libSDL_image.so
  • libdata/pkgconfig/SDL_image.pc
distinfo 1
FileSizeSHA256
SDL_image-1.2.12.tar.gz2.231074e+060b90722984561004de84847744d566809dbb9daf732a9e503b91a1b5a84e5699
Master sites 1
  • https://www.libsdl.org/projects/SDL_image/release/