BSD Ports

graphics/sdl_image 1.2.12_14 FreeBSD

Simple library to load images of various formats as SDL surfaces

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
LGPL21
Categories
graphics
Package size
40.8 KiB, 164.8 KiB installed

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
FreeBSDgraphics/sdl_image1.2.12_14
DragonFlygraphics/sdl_image1.2.12_14
MidnightBSDgraphics/sdl_image1.2.12_4
HardenedBSDgraphics/sdl_image1.2.12_14
GhostBSDgraphics/sdl_image1.2.12_14

Install

Binary package:

pkg install sdl_image

From the ports tree:

cd /usr/ports/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

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.2.12_141.2.12_141.2.12_121.2.12_141.2.12_14
FreeBSD:14:quarterly1.2.12_141.2.12_14n/a1.2.12_141.2.12_14
FreeBSD:15:latest1.2.12_141.2.12_14n/a1.2.12_141.2.12_14
FreeBSD:15:quarterly1.2.12_141.2.12_14n/an/an/a
FreeBSD:16:latest1.2.12_141.2.12_14n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 26
Run dependencies 23
Required by 149

The first 100 are listed.

Configuration

Options name: graphics_sdl_image

OptionDefaultDescription
JPEGonJPEG image format support
PNGonPNG image format support
TIFFonTIFF image format support
WEBPonWebP image format support
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/

Commit history 0

No commits in the history this site was built from.