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
| System | Port | Version |
|---|---|---|
| MidnightBSD | graphics/sdl2_image | 2.0.5_1 |
| FreeBSD | graphics/sdl2_image | 2.8.12_1 |
| DragonFly | graphics/sdl2_image | 2.8.8 |
| HardenedBSD | graphics/sdl2_image | 2.8.12_1 |
| GhostBSD | graphics/sdl2_image | 2.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
| Option | Default | Description |
|---|---|---|
| JPEG | on | |
| PNG | on | |
| TIFF | on | |
| WEBP | on |
- 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
| File | Size | SHA256 |
|---|---|---|
| SDL2_image-2.0.5.tar.gz | 1.1736518e+07 | bdd5f6e026682f7d7e1be0b6051b209da2f402a2dd8bd1c4bd9c25ad263108d0 |
Master sites 1
- https://www.libsdl.org/projects/SDL_image/release/