aboutsummaryrefslogtreecommitdiff
path: root/graphics/grx
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2015-09-05 08:44:40 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2015-09-05 08:44:40 +0000
commit4e5c09d2e1bb9ff4d37eb3f9f7c64da97233119b (patch)
treee68fae9d6503657e7e9eb112bbafc6edaf4ee625 /graphics/grx
parentb95b3730b56069e88d9f89436b425c5d6a5fb934 (diff)
Fix the build on big-endian architectures (powerpc and hopefully sparc64).
Notes
Notes: svn path=/head/; revision=396162
Diffstat (limited to 'graphics/grx')
-rw-r--r--graphics/grx/Makefile6
1 files changed, 2 insertions, 4 deletions
diff --git a/graphics/grx/Makefile b/graphics/grx/Makefile
index d60f9c76e438..090ca8358745 100644
--- a/graphics/grx/Makefile
+++ b/graphics/grx/Makefile
@@ -57,10 +57,6 @@ IGNORE= PNG support requires ZLIB support
CONFIGURE_ARGS+=--enable-x86_64
.endif
-.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
-BROKEN= Does not compile on ia64, powerpc, or sparc64
-.endif
-
post-patch:
@${GREP} -ERl '<(malloc|alloca)\.h>' ${WRKSRC} | ${XARGS} \
${REINPLACE_CMD} -Ee 's|<(malloc\|alloca)\.h>|<stdlib.h>|'
@@ -72,6 +68,8 @@ post-patch:
s|-m64|| ; \
s|-m32||' \
${WRKSRC}/makedefs.grx
+ @${REINPLACE_CMD} -e '/_GR_swap32u/s|length|numchars|' \
+ ${WRKSRC}/src/fonts/fdv_raw.c
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgrx20X.so