View | Details | Raw Unified | Return to bug 74489
Collapse All | Expand All

(-)pixieplus/Makefile (-1 / +7 lines)
Lines 7-19 Link Here
7
7
8
PORTNAME=	pixieplus
8
PORTNAME=	pixieplus
9
PORTVERSION=	0.5.4.1
9
PORTVERSION=	0.5.4.1
10
PORTREVISION=	1
10
CATEGORIES=	graphics kde
11
CATEGORIES=	graphics kde
11
MASTER_SITES=	http://people.fruitsalad.org/avleeuwen/distfiles/${PORTNAME}/
12
MASTER_SITES=	http://people.fruitsalad.org/avleeuwen/distfiles/${PORTNAME}/
12
13
13
MAINTAINER=	avleeuwen@piwebs.com
14
MAINTAINER=	avleeuwen@piwebs.com
14
COMMENT=	A free, fast, and feature packed image browser and viewer for KDE
15
COMMENT=	A free, fast, and feature packed image browser and viewer for KDE
15
16
16
LIB_DEPENDS=	Magick.6:${PORTSDIR}/graphics/ImageMagick \
17
LIB_DEPENDS=	Magick.7:${PORTSDIR}/graphics/ImageMagick \
17
		ungif.5:${PORTSDIR}/graphics/libungif
18
		ungif.5:${PORTSDIR}/graphics/libungif
18
19
19
GNU_CONFIGURE=	yes
20
GNU_CONFIGURE=	yes
Lines 28-32 Link Here
28
.if ${OSVERSION} < 500000
29
.if ${OSVERSION} < 500000
29
BROKEN=		"Does not compile on 4.x"
30
BROKEN=		"Does not compile on 4.x"
30
.endif
31
.endif
32
33
post-patch:
34
	@${CP} ${FILESDIR}/blob_private.h ${WRKSRC}/app/
35
	@${CP} ${FILESDIR}/exception_private.h ${WRKSRC}/app/
36
	@${CP} ${FILESDIR}/image_private.h ${WRKSRC}/app/
31
37
32
.include <bsd.port.post.mk>
38
.include <bsd.port.post.mk>
(-)pixieplus/files/blob_private.h (+102 lines)
Line 0 Link Here
1
/*
2
  Copyright 1999-2004 ImageMagick Studio LLC, a non-profit organization
3
  dedicated to making software imaging solutions freely available.
4
  
5
  You may not use this file except in compliance with the License.
6
  obtain a copy of the License at
7
  
8
    http://www.imagemagick.org/www/Copyright.html
9
  
10
  Unless required by applicable law or agreed to in writing, software
11
  distributed under the License is distributed on an "AS IS" BASIS,
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
  See the License for the specific language governing permissions and
14
  limitations under the License.
15
16
  ImageMagick Binary Large OBjects private methods.
17
*/
18
#ifndef _MAGICK_BLOB_PRIVATE_H
19
#define _MAGICK_BLOB_PRIVATE_H
20
21
#if defined(__cplusplus) || defined(c_plusplus)
22
extern "C" {
23
#endif
24
25
#include "magick/image.h"
26
#include "magick/stream.h"
27
28
#if !defined(MagickMaxBufferSize)
29
#define MagickMaxBufferSize  0x3c005UL
30
#endif
31
32
typedef enum
33
{
34
  UndefinedBlobMode,
35
  ReadBlobMode,
36
  ReadBinaryBlobMode,
37
  WriteBlobMode,
38
  WriteBinaryBlobMode,
39
  IOBinaryBlobMode
40
} BlobMode;
41
42
typedef int
43
  *(*BlobFifo)(const Image *,const void *,const size_t);
44
45
typedef struct _BlobInfo
46
  BlobInfo;
47
48
extern MagickExport BlobInfo
49
  *CloneBlobInfo(const BlobInfo *),
50
  *ReferenceBlob(BlobInfo *);
51
52
extern MagickExport char
53
  *ReadBlobString(Image *,char *);
54
55
extern MagickExport int
56
  EOFBlob(const Image *),
57
  ReadBlobByte(Image *),
58
  SyncBlob(Image *);
59
60
extern MagickExport  MagickBooleanType
61
  OpenBlob(const ImageInfo *,Image *,const BlobMode,ExceptionInfo *),
62
  UnmapBlob(void *,const size_t);
63
64
extern MagickExport MagickOffsetType
65
  SeekBlob(Image *,const MagickOffsetType,const int),
66
  TellBlob(const Image *image);
67
68
extern MagickExport ssize_t
69
  ReadBlob(Image *,const size_t,unsigned char *),
70
  WriteBlob(Image *,const size_t,const unsigned char *),
71
  WriteBlobByte(Image *,const unsigned char),
72
  WriteBlobLSBLong(Image *,const unsigned long),
73
  WriteBlobLSBShort(Image *,const unsigned short),
74
  WriteBlobMSBLong(Image *,const unsigned long),
75
  WriteBlobMSBShort(Image *,const unsigned short),
76
  WriteBlobString(Image *,const char *);
77
78
extern MagickExport unsigned char
79
  *DetachBlob(BlobInfo *),
80
  *ImageToBlob(const ImageInfo *,Image *,size_t *,ExceptionInfo *),
81
  *MapBlob(int,const MapMode,const MagickOffsetType,const size_t);
82
83
extern MagickExport unsigned long
84
  ReadBlobLSBLong(Image *),
85
  ReadBlobMSBLong(Image *);
86
87
extern MagickExport unsigned short
88
  ReadBlobLSBShort(Image *),
89
  ReadBlobMSBShort(Image *);
90
91
extern MagickExport void
92
  AttachBlob(BlobInfo *,const void *,const size_t),
93
  CloseBlob(Image *),
94
  GetBlobInfo(BlobInfo *),
95
  MSBOrderLong(unsigned char *,const size_t),
96
  MSBOrderShort(unsigned char *,const size_t);
97
98
#if defined(__cplusplus) || defined(c_plusplus)
99
}
100
#endif
101
102
#endif
(-)pixieplus/files/exception_private.h (+92 lines)
Line 0 Link Here
1
/*
2
  Copyright 1999-2004 ImageMagick Studio LLC, a non-profit organization
3
  dedicated to making software imaging solutions freely available.
4
  
5
  You may not use this file except in compliance with the License.
6
  obtain a copy of the License at
7
  
8
    http://www.imagemagick.org/www/Copyright.html
9
  
10
  Unless required by applicable law or agreed to in writing, software
11
  distributed under the License is distributed on an "AS IS" BASIS,
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
  See the License for the specific language governing permissions and
14
  limitations under the License.
15
16
  ImageMagick private exception methods.
17
*/
18
#ifndef _MAGICK_EXCEPTION_PRIVATE_H
19
#define _MAGICK_EXCEPTION_PRIVATE_H
20
21
#if defined(__cplusplus) || defined(c_plusplus)
22
extern "C" {
23
#endif
24
25
#include "magick/log.h"
26
27
#define ThrowBinaryException(severity,tag,context) \
28
{ \
29
  if (image != (Image *) NULL) \
30
    (void) ThrowMagickException(&image->exception,GetMagickModule(),severity, \
31
      tag,context); \
32
  return(MagickFalse); \
33
}
34
#define ThrowFileException(exception,severity,tag,context) \
35
  (void) ThrowMagickException(exception,GetMagickModule(),severity,tag, \
36
    context,strerror(errno));
37
#define ThrowImageException(severity,tag) \
38
{ \
39
  (void) ThrowMagickException(exception,GetMagickModule(),severity,tag, \
40
    image->filename); \
41
  return((Image *) NULL); \
42
}
43
#define ThrowMagickFatalException(severity,tag,context) \
44
{ \
45
  ExceptionInfo \
46
    exception; \
47
 \
48
  GetExceptionInfo(&exception); \
49
  (void) ThrowMagickException(&exception,GetMagickModule(),severity,tag, \
50
    context); \
51
  CatchException(&exception); \
52
  DestroyExceptionInfo(&exception); \
53
}
54
#define ThrowReaderException(severity,tag) \
55
{ \
56
  (void) ThrowMagickException(exception,GetMagickModule(),severity,tag, \
57
    image_info->filename); \
58
  if ((image) != (Image *) NULL) \
59
    { \
60
      CloseBlob(image); \
61
      DestroyImageList(image); \
62
    } \
63
  return((Image *) NULL); \
64
}
65
#define ThrowWriterException(severity,tag) \
66
{ \
67
  assert(image != (Image *) NULL); \
68
  (void) ThrowMagickException(&image->exception,GetMagickModule(),severity, \
69
    tag,image->filename); \
70
  if (image_info->adjoin != MagickFalse) \
71
    while (image->previous != (Image *) NULL) \
72
      image=image->previous; \
73
  CloseBlob(image); \
74
  return(MagickFalse); \
75
}
76
#define ThrowXWindowException(severity,tag,context) \
77
{ \
78
  ExceptionInfo \
79
    exception; \
80
 \
81
  GetExceptionInfo(&exception); \
82
  (void) ThrowMagickException(&exception,GetMagickModule(),severity,tag, \
83
    context); \
84
  CatchException(&exception); \
85
  DestroyExceptionInfo(&exception); \
86
}
87
88
#if defined(__cplusplus) || defined(c_plusplus)
89
}
90
#endif
91
92
#endif
(-)pixieplus/files/image_private.h (+47 lines)
Line 0 Link Here
1
/*
2
  Copyright 1999-2004 ImageMagick Studio LLC, a non-profit organization
3
  dedicated to making software imaging solutions freely available.
4
  
5
  You may not use this file except in compliance with the License.
6
  obtain a copy of the License at
7
  
8
    http://www.imagemagick.org/www/Copyright.html
9
  
10
  Unless required by applicable law or agreed to in writing, software
11
  distributed under the License is distributed on an "AS IS" BASIS,
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
  See the License for the specific language governing permissions and
14
  limitations under the License.
15
16
  ImageMagick private image methods.
17
*/
18
#ifndef _MAGICK_IMAGE_PRIVATE_H
19
#define _MAGICK_IMAGE_PRIVATE_H
20
21
#if defined(__cplusplus) || defined(c_plusplus)
22
extern "C" {
23
#endif
24
25
extern MagickExport const char
26
  *BackgroundColor,
27
  *BorderColor,
28
  *DefaultTileFrame,
29
  *DefaultTileGeometry,
30
  *DefaultTileLabel,
31
  *ForegroundColor,
32
  *MatteColor,
33
  *LoadImageTag,
34
  *LoadImagesTag,
35
  *PSDensityGeometry,
36
  *PSPageGeometry,
37
  *SaveImageTag,
38
  *SaveImagesTag;
39
40
extern MagickExport const unsigned long
41
  UndefinedCompressionQuality;
42
43
#if defined(__cplusplus) || defined(c_plusplus)
44
}
45
#endif
46
47
#endif
(-)pixieplus/files/patch-app_compressedgif.cpp (+13 lines)
Line 0 Link Here
1
--- app/compressedgif.cpp.orig	Sat May 22 16:02:26 2004
2
+++ app/compressedgif.cpp	Sun Nov 28 21:37:00 2004
3
@@ -9,6 +9,10 @@
4
 #include <api.h>
5
 #include <assert.h>
6
 
7
+#include "blob_private.h"
8
+#include "image_private.h"
9
+#include "exception_private.h"
10
+
11
 #ifndef False
12
 #define False 0
13
 #endif

Return to bug 74489