Fix linking to libfreeimage on non-amd64 archs.

tested on powerpc and ok mpi@, ok eric@ (maintainer)
This commit is contained in:
pascal 2012-03-17 20:54:25 +00:00
parent 5ae99e3a74
commit e9768078c3
2 changed files with 14 additions and 1 deletions

View File

@ -1,9 +1,10 @@
# $OpenBSD: Makefile,v 1.2 2012/02/27 10:16:26 pascal Exp $
# $OpenBSD: Makefile,v 1.3 2012/03/17 20:54:25 pascal Exp $
COMMENT= c++ library for common image format
DISTNAME= FreeImage3152
PKGNAME= freeimage-3.15.2
REVISION= 0
CATEGORIES= graphics
SHARED_LIBS+= freeimage 2.0

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-Source_LibOpenJPEG_opj_malloc_h,v 1.1 2012/03/17 20:54:25 pascal Exp $
--- Source/LibOpenJPEG/opj_malloc.h.orig Sat Mar 17 18:18:00 2012
+++ Source/LibOpenJPEG/opj_malloc.h Sat Mar 17 18:19:23 2012
@@ -85,7 +85,7 @@ Allocate memory aligned to a 16 byte boundry
#define HAVE_MEMALIGN
/* Linux x86_64 and OSX always align allocations to 16 bytes */
#elif !defined(__amd64__) && !defined(__APPLE__)
- #define HAVE_MEMALIGN
+ #define HAVE_POSIX_MEMALIGN
#include <malloc.h>
#endif
#endif