2006-08-01 23:39:08 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.20 2006/08/01 23:39:08 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 04:08:40 +00:00
|
|
|
|
|
|
|
COMMENT= "SDL image library"
|
2005-07-03 21:35:57 +00:00
|
|
|
DISTNAME= SDL_image-1.2.4
|
2006-01-13 23:40:22 +00:00
|
|
|
PKGNAME= ${DISTNAME:L:S/_/-/}p0
|
|
|
|
SHARED_LIBS= SDL_image 2.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 04:08:40 +00:00
|
|
|
CATEGORIES= devel graphics
|
2003-04-03 23:40:05 +00:00
|
|
|
MASTER_SITES= 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 04:08:40 +00:00
|
|
|
|
2003-04-03 23:40:05 +00: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 04:08:40 +00:00
|
|
|
|
2002-09-03 06:19:18 +00:00
|
|
|
# GPL
|
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 04:08:40 +00:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2005-07-03 21:35:57 +00:00
|
|
|
|
|
|
|
FAKE= lib
|
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
USE_X11= Yes
|
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 04:08:40 +00:00
|
|
|
|
2006-08-01 23:39:08 +00:00
|
|
|
LIB_DEPENDS= SDL::devel/sdl \
|
|
|
|
png.>=2::graphics/png \
|
|
|
|
tiff.>=35::graphics/tiff \
|
|
|
|
jpeg.>=62.::graphics/jpeg
|
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 04:08:40 +00:00
|
|
|
|
2005-07-03 21:35:57 +00:00
|
|
|
WANTLIB= X11 Xext m usbhid z
|
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 04:08:40 +00:00
|
|
|
|
2003-04-03 23:40:05 +00:00
|
|
|
CONFIGURE_STYLE=gnu
|
2005-07-03 21:35:57 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-tif \
|
|
|
|
${CONFIGURE_SHARED}
|
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${DEPBASE}/include -I${DEPBASE}/include/libpng" \
|
|
|
|
LDFLAGS="-L${X11BASE}/lib" \
|
|
|
|
sdlconf_args=--prefix=${DEPBASE}
|
2001-10-05 17:35:26 +00: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 04:08:40 +00:00
|
|
|
.include <bsd.port.mk>
|