summaryrefslogtreecommitdiff
path: root/graphics/sdl_image
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-01-18 18:10:44 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-01-18 18:10:44 +0000
commit122d8a5f68d3eba78f7e5734ef4262197a089d9c (patch)
tree728df8f4663a67abd77efa695bab0c0ac0782029 /graphics/sdl_image
parent- Update to version 3.04 (diff)
- Update to version 1.2.3
PR: 61524 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=98490
Diffstat (limited to 'graphics/sdl_image')
-rw-r--r--graphics/sdl_image/Makefile11
-rw-r--r--graphics/sdl_image/distinfo2
-rw-r--r--graphics/sdl_image/files/patch-ac11
-rw-r--r--graphics/sdl_image/files/patch-ad79
4 files changed, 5 insertions, 98 deletions
diff --git a/graphics/sdl_image/Makefile b/graphics/sdl_image/Makefile
index a30ea26c655e..ebab5067869a 100644
--- a/graphics/sdl_image/Makefile
+++ b/graphics/sdl_image/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= sdl_image
-PORTVERSION= 1.2.2
-PORTREVISION= 1
+PORTVERSION= 1.2.3
CATEGORIES= graphics
MASTER_SITES= http://www.libsdl.org/projects/SDL_image/release/
DISTNAME= SDL_image-${PORTVERSION}
@@ -20,18 +19,16 @@ LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
tiff.4:${PORTSDIR}/graphics/tiff
USE_SDL= yes
-USE_REINPLACE= yes
USE_GMAKE= yes
USE_LIBTOOL= yes
LIBTOOLFLAGS= --disable-ltlibs --release-ignore
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib -lm"
CONFIGURE_ARGS= --enable-tif --enable-xcf
+MAKE_ARGS= LT_CURRENT=10 LT_REVISION=0 LT_AGE=0
INSTALLS_SHLIB= yes
-post-configure:
- @${REINPLACE_CMD} -e \
- 's|^deplibs_check_method=.*|deplibs_check_method=pass_all|' \
- ${WRKSRC}/libtool
+post-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/.libs/showimage ${PREFIX}/bin
.include <bsd.port.mk>
diff --git a/graphics/sdl_image/distinfo b/graphics/sdl_image/distinfo
index c002c176b680..69268771fd8f 100644
--- a/graphics/sdl_image/distinfo
+++ b/graphics/sdl_image/distinfo
@@ -1 +1 @@
-MD5 (SDL_image-1.2.2.tar.gz) = d07cb8f3f0e8bbb645ef8369d96eb7db
+MD5 (SDL_image-1.2.3.tar.gz) = d55826ffbd2bdc48b09cc64a9ed9e59e
diff --git a/graphics/sdl_image/files/patch-ac b/graphics/sdl_image/files/patch-ac
deleted file mode 100644
index c6086becc0e6..000000000000
--- a/graphics/sdl_image/files/patch-ac
+++ /dev/null
@@ -1,11 +0,0 @@
---- configure 2000/12/11 14:34:53 1.1
-+++ configure 2000/12/11 14:35:05
-@@ -581,7 +581,7 @@
-
- # libtool versioning
- LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
--LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
-+LT_CURRENT=10
- LT_REVISION=$INTERFACE_AGE
- LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
-
diff --git a/graphics/sdl_image/files/patch-ad b/graphics/sdl_image/files/patch-ad
deleted file mode 100644
index b3a49176b14e..000000000000
--- a/graphics/sdl_image/files/patch-ad
+++ /dev/null
@@ -1,79 +0,0 @@
---- IMG_xcf.c.orig Mon Apr 29 03:01:48 2002
-+++ IMG_xcf.c Mon Apr 29 03:17:07 2002
-@@ -166,6 +166,7 @@
-
- Uint32 offset_x;
- Uint32 offset_y;
-+ int visible : 1;
- } xcf_layer;
-
- typedef struct {
-@@ -179,6 +180,7 @@
- Uint32 color;
- Uint32 opacity;
- int selection : 1;
-+ int visible : 1;
- } xcf_channel;
-
- typedef struct {
-@@ -245,7 +247,9 @@
- prop->id = SDL_ReadBE32 (src);
- prop->length = SDL_ReadBE32 (src);
-
-+#if 0
- printf ("%.8X: %s: %d\n", SDL_RWtell (src), prop->id < 25 ? prop_names [prop->id] : "unknown", prop->length);
-+#endif
-
- switch (prop->id) {
- case PROP_COLORMAP:
-@@ -265,6 +269,9 @@
- case PROP_COLOR:
- SDL_RWread (src, &prop->data, prop->length, 1);
- break;
-+ case PROP_VISIBLE:
-+ prop->data.visible = SDL_ReadBE32 (src);
-+ break;
- default:
- // SDL_RWread (src, &prop->data, prop->length, 1);
- SDL_RWseek (src, prop->length, SEEK_CUR);
-@@ -332,6 +339,8 @@
- if (prop.id == PROP_OFFSETS) {
- l->offset_x = prop.data.offset.x;
- l->offset_y = prop.data.offset.y;
-+ } else if (prop.id == PROP_VISIBLE) {
-+ l->visible = prop.data.visible ? 1 : 0;
- }
- } while (prop.id != PROP_END);
-
-@@ -371,6 +380,9 @@
- case PROP_SELECTION:
- l->selection = 1;
- break;
-+ case PROP_VISIBLE:
-+ l->visible = prop.data.visible ? 1 : 0;
-+ break;
- default:
- }
- } while (prop.id != PROP_END);
-@@ -724,9 +736,10 @@
- rd.y = layer->offset_y;
- rd.w = layer->width;
- rd.h = layer->height;
-- free_xcf_layer (layer);
-
-- SDL_BlitSurface (lays, &rs, surface, &rd);
-+ if (layer->visible)
-+ SDL_BlitSurface (lays, &rs, surface, &rd);
-+ free_xcf_layer (layer);
- }
-
- SDL_FreeSurface (lays);
-@@ -756,7 +769,7 @@
- }
- for (i = 0; i < chnls; i++) {
- // printf ("CNLBLT %i\n", i);
-- if (!channel [i]->selection) {
-+ if (!channel [i]->selection && channel [i]->visible) {
- create_channel_surface (chs, head->image_type, channel [i]->color, channel [i]->opacity);
- SDL_BlitSurface (chs, NULL, surface, NULL);
- }