2003-05-12 04:23:45 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.14 2003/05/12 08:23:46 jolan 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
|
|
|
|
|
|
|
COMMENT= "SDL image library"
|
|
|
|
|
2003-04-03 18:40:05 -05:00
|
|
|
DISTNAME= SDL_image-1.2.3
|
|
|
|
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
|
2003-04-03 18:40:05 -05: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 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
|
|
|
|
2003-05-12 04:23:45 -04:00
|
|
|
MAINTAINER= Jolan Luff <jolan@openbsd.org>
|
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
|
|
|
|
|
2001-12-28 17:21:29 -05:00
|
|
|
LIB_DEPENDS= SDL.::devel/sdl \
|
2001-10-05 13:35:26 -04:00
|
|
|
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
|
|
|
|
|
|
|
USE_X11= Yes
|
|
|
|
|
2003-04-03 18:40:05 -05:00
|
|
|
SEPARATE_BUILD= concurrent
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
CONFIGURE_ENV+= LDFLAGS="-L${X11BASE}/lib" \
|
|
|
|
CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/libpng"
|
|
|
|
CONFIGURE_ARGS+=${CONFIGURE_SHARED}
|
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
|
|
|
|
2001-12-23 00:07:55 -05:00
|
|
|
PATCH_LIST= ${PORTSDIR}/infrastructure/patches/patch-lt1.3.5-ltmain_sh \
|
2001-10-05 15:29:37 -04:00
|
|
|
patch-*
|
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>
|