2010-11-15 14:45:56 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.32 2010/11/15 19:46:09 espie 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
|
|
|
|
|
|
|
DISTNAME= SDL_image-1.2.10
|
|
|
|
PKGNAME= ${DISTNAME:L:S/_/-/}
|
2010-09-02 03:04:15 -04:00
|
|
|
REVISION= 0
|
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
|
2007-01-21 09:47:58 -05:00
|
|
|
MASTER_SITES= ftp://ftp.fr.freebsd.org/pub/FreeBSD/distfiles/ \
|
|
|
|
http://www.libsdl.org/projects/SDL_image/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
|
|
|
|
2010-07-09 05:20:53 -04:00
|
|
|
SHARED_LIBS= SDL_image 3.0
|
|
|
|
|
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
|
|
|
|
2010-07-09 05:20:53 -04:00
|
|
|
# LGPLv2.1+
|
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
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2010-09-02 03:04:15 -04:00
|
|
|
|
|
|
|
WANTLIB= SDL jpeg m png tiff sndio usbhid 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 \
|
|
|
|
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
|
|
|
|
2010-07-09 05:20:53 -04:00
|
|
|
USE_LIBTOOL= Yes
|
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 \
|
|
|
|
--disable-tif-shared
|
2010-09-02 03:04:15 -04:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include/libpng -I${LOCALBASE}/include" \
|
|
|
|
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>
|