Commit 4105ebb5 authored by Rafaël Carré's avatar Rafaël Carré

contrib: openjpeg: freebsd has posix_memalign

parent 6dbbc2aa
--- openjpeg/libopenjpeg/opj_malloc.h.orig 2011-01-02 19:14:45.000000000 +0100
+++ openjpeg/libopenjpeg/opj_malloc.h 2012-01-27 17:18:30.000000000 +0100
@@ -83,6 +83,8 @@
#else /* Not _WIN32 */
#if defined(__sun)
#define HAVE_MEMALIGN
+ #elif defined(__FreeBSD__)
+ #define HAVE_POSIX_MEMALIGN
/* Linux x86_64 and OSX always align allocations to 16 bytes */
#elif !defined(__amd64__) && !defined(__APPLE__)
#define HAVE_MEMALIGN
......@@ -11,6 +11,7 @@ $(TARBALLS)/openjpeg_v$(OPENJPEG_VERSION).tgz:
openjpeg: openjpeg_v$(OPENJPEG_VERSION).tgz .sum-openjpeg
$(UNPACK)
$(APPLY) $(SRC)/openjpeg/pkg-config.patch
$(APPLY) $(SRC)/openjpeg/freebsd.patch
$(UPDATE_AUTOCONFIG)
$(MOVE)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment