Mercurial > gub
changeset 6377:954cd03fba1d
Fix freebsd-{x86|64}::ghostscript
FreeBSD 6 doesn't have posix_memalign().
FreeBSD 7 has posix_memalign().
author | Masamichi Hosoda <trueroad@users.noreply.github.com> |
---|---|
date | Fri, 13 Mar 2015 23:51:53 +0900 |
parents | 681ec138112d |
children | d5faec43550f |
files | gub/specs/ghostscript.py patches/ghostscript-9.15-freebsd6.patch |
diffstat | 2 files changed, 15 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gub/specs/ghostscript.py Fri Mar 13 23:16:16 2015 +0900 +++ b/gub/specs/ghostscript.py Fri Mar 13 23:51:53 2015 +0900 @@ -277,6 +277,7 @@ class Ghostscript__freebsd (Ghostscript): dependencies = Ghostscript.dependencies + ['libiconv-devel'] + patches = Ghostscript.patches + ['ghostscript-9.15-freebsd6.patch'] def configure (self): Ghostscript.configure (self) if 'linux' in self.settings.build_architecture:
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/patches/ghostscript-9.15-freebsd6.patch Fri Mar 13 23:51:53 2015 +0900 @@ -0,0 +1,14 @@ +FreeBSD 6 doesn't have posix_memalign(). +FreeBSD 7 has posix_memalign(). + +--- a/openjpeg/src/lib/openjp2/opj_malloc.h 2014-09-22 19:17:33.000000000 +0900 ++++ b/openjpeg/src/lib/openjp2/opj_malloc.h 2015-03-13 23:38:30.196095100 +0900 +@@ -99,7 +99,7 @@ + #if defined(__sun) + #define HAVE_MEMALIGN + #elif defined(__FreeBSD__) +- #define HAVE_POSIX_MEMALIGN ++ /*#define HAVE_POSIX_MEMALIGN*/ + /* Linux x86_64 and OSX always align allocations to 16 bytes */ + #elif !defined(__amd64__) && !defined(__APPLE__) && !defined(_AIX) + #define HAVE_MEMALIGN