summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2000-09-20 07:16:53 +0000
committersobomax <sobomax@FreeBSD.org>2000-09-20 07:16:53 +0000
commitf83e4616d88d268faf80a4e09105ecb80cc2d984 (patch)
tree6087e498dc5b8f9122aa6137140863cd0dccbd86 /graphics
parentfad27d4c3dfd75ef29874faf617c90f3bbfd8582 (diff)
downloadFreeBSD-ports-f83e4616d88d268faf80a4e09105ecb80cc2d984.zip
FreeBSD-ports-f83e4616d88d268faf80a4e09105ecb80cc2d984.tar.gz
Add sdl_image - a simple library to load images of various formats as SDL
surfaces.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/sdl_image/Makefile38
-rw-r--r--graphics/sdl_image/distinfo1
-rw-r--r--graphics/sdl_image/files/patch-ab11
-rw-r--r--graphics/sdl_image/pkg-comment1
-rw-r--r--graphics/sdl_image/pkg-descr18
-rw-r--r--graphics/sdl_image/pkg-plist5
7 files changed, 75 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index 416340c..c7d4361 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -158,6 +158,7 @@
SUBDIR += sane
SUBDIR += sced
SUBDIR += scwm-icons
+ SUBDIR += sdl_image
SUBDIR += sketch
SUBDIR += smpeg
SUBDIR += sodipodi
diff --git a/graphics/sdl_image/Makefile b/graphics/sdl_image/Makefile
new file mode 100644
index 0000000..f3be4f4
--- /dev/null
+++ b/graphics/sdl_image/Makefile
@@ -0,0 +1,38 @@
+# New ports collection makefile for: sdl_image
+# Date created: 20 September 2000
+# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= sdl_image
+PORTVERSION= 1.0.9
+CATEGORIES= graphics
+MASTER_SITES= http://www.devolution.com/~slouken/SDL/projects/SDL_image/src/
+DISTNAME= SDL_image-${PORTVERSION}
+
+MAINTAINER= sobomax@FreeBSD.org
+
+LIB_DEPENDS= SDL-1.1.2:${PORTSDIR}/devel/sdl-devel \
+ png.4:${PORTSDIR}/graphics/png \
+ tiff.4:${PORTSDIR}/graphics/tiff \
+ jpeg.9:${PORTSDIR}/graphics/jpeg
+
+SDL_CONFIG= ${LOCALBASE}/bin/sdl11-config
+
+USE_LIBTOOL= yes
+USE_GMAKE= yes
+INSTALLS_SHLIB= yes
+CONFIGURE_ENV= SDL_CONFIG="${SDL_CONFIG}" \
+ CPPFLAGS="-I${X11BASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib -lm"
+
+post-extract:
+ @find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
+ 's|-release \$$\(LT_RELEASE\)||g'
+
+post-configure:
+ @${PERL} -pi -e 's|^deplibs_check_method=.*|deplibs_check_method=pass_all|' \
+ ${WRKSRC}/libtool
+
+.include <bsd.port.mk>
diff --git a/graphics/sdl_image/distinfo b/graphics/sdl_image/distinfo
new file mode 100644
index 0000000..9ea8867
--- /dev/null
+++ b/graphics/sdl_image/distinfo
@@ -0,0 +1 @@
+MD5 (SDL_image-1.0.9.tar.gz) = 91d8014aacb35605b510443d9c468173
diff --git a/graphics/sdl_image/files/patch-ab b/graphics/sdl_image/files/patch-ab
new file mode 100644
index 0000000..120401d
--- /dev/null
+++ b/graphics/sdl_image/files/patch-ab
@@ -0,0 +1,11 @@
+--- Makefile.in 2000/09/20 07:05:33 1.1
++++ Makefile.in 2000/09/20 07:06:00
+@@ -89,7 +89,7 @@
+
+ lib_LTLIBRARIES = libSDL_image.la
+
+-libSDL_imageincludedir = $(includedir)/SDL
++libSDL_imageincludedir = $(includedir)/SDL11
+ libSDL_imageinclude_HEADERS = SDL_image.h
+
+
diff --git a/graphics/sdl_image/pkg-comment b/graphics/sdl_image/pkg-comment
new file mode 100644
index 0000000..1d3e8c9
--- /dev/null
+++ b/graphics/sdl_image/pkg-comment
@@ -0,0 +1 @@
+A simple library to load images of various formats as SDL surfaces
diff --git a/graphics/sdl_image/pkg-descr b/graphics/sdl_image/pkg-descr
new file mode 100644
index 0000000..2e038f4
--- /dev/null
+++ b/graphics/sdl_image/pkg-descr
@@ -0,0 +1,18 @@
+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
+
+WWW: http://www.devolution.com/~slouken/SDL/projects/SDL_image/
diff --git a/graphics/sdl_image/pkg-plist b/graphics/sdl_image/pkg-plist
new file mode 100644
index 0000000..388db17
--- /dev/null
+++ b/graphics/sdl_image/pkg-plist
@@ -0,0 +1,5 @@
+bin/showimage
+include/SDL11/SDL_image.h
+lib/libSDL_image.a
+lib/libSDL_image.so
+lib/libSDL_image.so.9
OpenPOWER on IntegriCloud