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
| System | Port | Version |
|---|---|---|
| MidnightBSD | graphics/sdl_image | 1.2.12_4 |
| FreeBSD | graphics/sdl_image | 1.2.12_14 |
| DragonFly | graphics/sdl_image | 1.2.12_14 |
| HardenedBSD | graphics/sdl_image | 1.2.12_14 |
| GhostBSD | graphics/sdl_image | 1.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
| Option | Default | Description |
|---|---|---|
| JPEG | on | |
| PNG | on | |
| TIFF | on | |
| WEBP | on |
- 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
| File | Size | SHA256 |
|---|---|---|
| SDL_image-1.2.12.tar.gz | 2.231074e+06 | 0b90722984561004de84847744d566809dbb9daf732a9e503b91a1b5a84e5699 |
Master sites 1
- https://www.libsdl.org/projects/SDL_image/release/