1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00

- Unbreak on amd64

- Fix on sparc64
- Move pkg-plist to PLIST_FILES
- Take maintainship
This commit is contained in:
Pietro Cerutti 2008-06-13 14:04:39 +00:00
parent e09d68721e
commit 76b6ca5bf8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=214783
3 changed files with 26 additions and 11 deletions

View File

@ -12,7 +12,7 @@ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= FreeImage${PORTVERSION:S/.//g}
MAINTAINER= ports@FreeBSD.org
MAINTAINER= gahr@FreeBSD.org
COMMENT= An open source graphics library
WRKSRC= ${WRKDIR}/FreeImage
@ -22,10 +22,9 @@ USE_ZIP= yes
EXTRACT_BEFORE_ARGS= -qoa
USE_LDCONFIG= yes
.include <bsd.port.pre.mk>
PLIST_FILES= include/FreeImage.h \
lib/libfreeimage.a \
lib/libfreeimage.so \
lib/libfreeimage.so.3
.if ${ARCH} == "amd64"
BROKEN= does not compile
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -0,0 +1,20 @@
--- Source/FreeImage/PluginBMP.cpp.orig 2008-06-13 00:40:16.000000000 +0200
+++ Source/FreeImage/PluginBMP.cpp 2008-06-13 00:46:51.000000000 +0200
@@ -224,7 +224,7 @@
throw(1);
}
if (status_byte != 0) {
- status_byte = MIN(status_byte, end - q);
+ status_byte = MIN((size_t)status_byte, (size_t)(end - q));
// Encoded mode
if(io->read_proc(&second_byte, sizeof(BYTE), 1, handle) != 1) {
throw(1);
@@ -279,7 +279,7 @@
default:
{
// Absolute mode
- status_byte = MIN(status_byte, end - q);
+ status_byte = MIN((size_t)status_byte, (size_t)(end - q));
for (int i = 0; i < status_byte; i++) {
if ((i & 0x01) == 0) {
if(io->read_proc(&second_byte, sizeof(BYTE), 1, handle) != 1) {

View File

@ -1,4 +0,0 @@
include/FreeImage.h
lib/libfreeimage.a
lib/libfreeimage.so
lib/libfreeimage.so.3