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

(-)Makefile (-18 / +15 lines)
Lines 1-12 Link Here
1
# New ports collection makefile for:	freeimage
1
# New ports collection makefile for:	FreeImage
2
# Date created:		2005-09-01
2
# Date created:				2005-09-01
3
# Whom:			Choe, Cheng-Dae
3
# Whom:					Choe, Cheng-Dae <whitekid@gmail.com>
4
#
4
#
5
# $FreeBSD: ports/graphics/freeimage/Makefile,v 1.13 2009/08/22 00:22:48 amdmi3 Exp $
5
# $FreeBSD: ports/graphics/freeimage/Makefile,v 1.13 2009/08/22 00:22:48 amdmi3 Exp $
6
#
6
#
7
7
8
PORTNAME=	freeimage
8
PORTNAME=	freeimage
9
PORTVERSION=	3.12.0
9
PORTVERSION=	3.14.1
10
CATEGORIES=	graphics
10
CATEGORIES=	graphics
11
MASTER_SITES=	SF/${PORTNAME}/Source%20Distribution/${PORTVERSION}
11
MASTER_SITES=	SF/${PORTNAME}/Source%20Distribution/${PORTVERSION}
12
DISTNAME=	FreeImage${PORTVERSION:S/.//g}
12
DISTNAME=	FreeImage${PORTVERSION:S/.//g}
Lines 14-25 Link Here
14
MAINTAINER=	gahr@FreeBSD.org
14
MAINTAINER=	gahr@FreeBSD.org
15
COMMENT=	An open source graphics library
15
COMMENT=	An open source graphics library
16
16
17
WRKSRC=		${WRKDIR}/FreeImage
18
USE_GMAKE=	yes
19
USE_ZIP=	yes
17
USE_ZIP=	yes
20
# convert CRLF to LF for gcc-2.95
18
USE_DOS2UNIX=	Source/LibOpenJPEG/opj_malloc.h
21
EXTRACT_BEFORE_ARGS=	-qoa
19
USE_GMAKE=	yes
22
USE_LDCONFIG=	yes
20
USE_LDCONFIG=	yes
21
WRKSRC=		${WRKDIR}/FreeImage
22
23
PLIST_FILES=	include/FreeImage.h \
24
		lib/libfreeimage.a \
25
		lib/libfreeimage-${PORTVERSION}.so \
26
		lib/libfreeimage.so.3 \
27
		lib/libfreeimage.so
23
28
24
.include <bsd.port.pre.mk>
29
.include <bsd.port.pre.mk>
25
30
Lines 27-42 Link Here
27
CFLAGS+=	-fPIC
32
CFLAGS+=	-fPIC
28
.endif
33
.endif
29
34
30
PLIST_FILES=	include/FreeImage.h \
31
		lib/libfreeimage.a \
32
		lib/libfreeimage-3.12.0.so \
33
		lib/libfreeimage.so.3
34
35
post-patch:
35
post-patch:
36
	${FIND} ${WRKSRC} -type f -print0 | ${XARGS} -0 ${REINPLACE_CMD} -e 's|<malloc\.h>|<stdlib.h>|g'
36
	@${REINPLACE_CMD} -e 's|/usr|${PREFIX}| ; s|-g root|-g wheel|' \
37
	${REINPLACE_CMD} -e 's|/usr|${PREFIX}|g; s|-g root|-g wheel|g' ${WRKSRC}/Makefile.gnu
37
		${WRKSRC}/Makefile.gnu
38
39
post-install:
40
	${LN} -f ${PREFIX}/lib/libfreeimage-3.12.0.so ${PREFIX}/lib/libfreeimage.so.3
41
38
42
.include <bsd.port.post.mk>
39
.include <bsd.port.post.mk>
(-)distinfo (-3 / +2 lines)
Lines 1-3 Link Here
1
MD5 (FreeImage3120.zip) = 47b259102f776a4bcd7affc00942f3b4
1
SHA256 (FreeImage3141.zip) = d5c5b5ea96897f4b81e79a37b1149a12bb396039002f22d32f9f98f6b96cff65
2
SHA256 (FreeImage3120.zip) = a431fccbfd7c06fd32155b39361d520a710ee878440cca3e11706c0bd1ae6cc3
2
SIZE (FreeImage3141.zip) = 10865165
3
SIZE (FreeImage3120.zip) = 4335135
(-)pkg-descr (-6 / +5 lines)
Lines 1-7 Link Here
1
FreeImage is an Open Source library project for developers who would like to
1
FreeImage is an open source library project for developers who would like to
2
support popular graphics image formats like PNG, BMP, JPEG, TIFF and others as
2
support popular graphics image formats like PNG, BMP, JPEG, TIFF and others
3
needed by today's multimedia applications. FreeImage is easy to use, fast,
3
as needed by today's multimedia applications.  FreeImage is easy to use,
4
multithreading safe, compatible with all 32-bit versions of Windows, and
4
fast, multithreading safe, and cross-platform.
5
cross-platform (works both with Linux and Mac OS X).
6
5
7
WWW:	http://freeimage.sf.net
6
WWW: http://freeimage.sourceforge.net/
(-)files/patch-Source-LibOpenJPEG_opj_malloc.h (-4 / +6 lines)
Lines 1-12 Link Here
1
--- Source/LibOpenJPEG/opj_malloc.h.orig	2008-12-03 16:48:35.000000000 +0100
1
--- Source/LibOpenJPEG/opj_malloc.h.orig
2
+++ Source/LibOpenJPEG/opj_malloc.h	2008-12-03 16:49:08.000000000 +0100
2
+++ Source/LibOpenJPEG/opj_malloc.h
3
@@ -77,7 +77,9 @@
3
@@ -85,8 +85,10 @@
4
 		#define HAVE_MEMALIGN
4
 		#define HAVE_MEMALIGN
5
 	/* Linux x86_64 and OSX always align allocations to 16 bytes */
5
 	/* Linux x86_64 and OSX always align allocations to 16 bytes */
6
 	#elif !defined(__amd64__) && !defined(__APPLE__)	
6
 	#elif !defined(__amd64__) && !defined(__APPLE__)	
7
+	#ifndef __FreeBSD__
7
+	#ifndef __FreeBSD__
8
 		#define HAVE_MEMALIGN
8
 		#define HAVE_MEMALIGN
9
-		#include <malloc.h>			
9
+	#endif
10
+	#endif
10
 		#include <malloc.h>			
11
+		#include <stdlib.h>
11
 	#endif
12
 	#endif
12
 #endif
13
 #endif
14

Return to bug 153178