2008-11-06 19:33:01 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.28 2008/11/07 00:36:08 sthen 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
|
2005-07-03 17:35:57 -04:00
|
|
|
DISTNAME= SDL_image-1.2.4
|
2008-11-06 19:33:01 -05:00
|
|
|
PKGNAME= ${DISTNAME:L:S/_/-/}p5
|
2006-01-13 18:40:22 -05:00
|
|
|
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 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
|
|
|
|
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
|
|
|
|
2002-09-03 02:19:18 -04: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 00:08:40 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2005-07-03 17:35:57 -04: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 00:08:40 -04:00
|
|
|
|
2006-08-01 19:39:08 -04: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 00:08:40 -04:00
|
|
|
|
2008-11-06 19:33:01 -05:00
|
|
|
WANTLIB= X11 Xau Xdmcp Xext Xrandr Xrender iconv m sndio 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 00:08:40 -04:00
|
|
|
|
2003-04-03 18:40:05 -05:00
|
|
|
CONFIGURE_STYLE=gnu
|
2005-07-03 17:35:57 -04: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 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>
|