2013-03-21 04:45:11 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.35 2013/03/21 08:45:16 ajacoutot Exp $
|
sdl-image-1.2.0 import
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
2001-05-07 00:08:40 -04:00
|
|
|
|
2007-09-15 22:52:56 -04:00
|
|
|
COMMENT= SDL image library
|
2010-07-09 05:20:53 -04:00
|
|
|
|
2012-04-05 07:40:46 -04:00
|
|
|
DISTNAME= SDL_image-1.2.12
|
2010-07-09 05:20:53 -04:00
|
|
|
PKGNAME= ${DISTNAME:L:S/_/-/}
|
sdl-image-1.2.0 import
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
2001-05-07 00:08:40 -04:00
|
|
|
CATEGORIES= devel graphics
|
2012-04-05 07:40:46 -04:00
|
|
|
MASTER_SITES= ${HOMEPAGE}release/
|
sdl-image-1.2.0 import
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
2001-05-07 00:08:40 -04:00
|
|
|
|
2012-04-05 07:40:46 -04:00
|
|
|
SHARED_LIBS= SDL_image 3.1
|
2010-07-09 05:20:53 -04:00
|
|
|
|
2003-04-03 18:40:05 -05:00
|
|
|
HOMEPAGE= http://www.libsdl.org/projects/SDL_image/
|
sdl-image-1.2.0 import
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
2001-05-07 00:08:40 -04:00
|
|
|
|
2012-04-05 07:40:46 -04:00
|
|
|
# Zlib
|
sdl-image-1.2.0 import
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
2001-05-07 00:08:40 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
2010-09-02 03:04:15 -04:00
|
|
|
|
2012-04-05 07:40:46 -04:00
|
|
|
WANTLIB= SDL jpeg m png sndio tiff usbhid webp z
|
2005-07-03 17:35:57 -04:00
|
|
|
|
2010-07-09 05:20:53 -04:00
|
|
|
MODULES= converters/libiconv
|
2010-11-15 14:45:56 -05:00
|
|
|
LIB_DEPENDS= devel/sdl \
|
|
|
|
graphics/jpeg \
|
2012-04-05 07:40:46 -04:00
|
|
|
graphics/libwebp \
|
2010-11-15 14:45:56 -05:00
|
|
|
graphics/png \
|
|
|
|
graphics/tiff
|
sdl-image-1.2.0 import
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
2001-05-07 00:08:40 -04:00
|
|
|
|
2003-04-03 18:40:05 -05:00
|
|
|
CONFIGURE_STYLE=gnu
|
2010-07-09 05:20:53 -04:00
|
|
|
CONFIGURE_ARGS+=${CONFIGURE_SHARED} \
|
|
|
|
--disable-jpg-shared \
|
|
|
|
--disable-png-shared \
|
2012-04-05 07:40:46 -04:00
|
|
|
--disable-tif-shared \
|
|
|
|
--disable-webp-shared
|
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
2010-09-02 03:04:15 -04:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2001-10-05 13:35:26 -04:00
|
|
|
|
sdl-image-1.2.0 import
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
2001-05-07 00:08:40 -04:00
|
|
|
.include <bsd.port.mk>
|