1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Stage textproc/rtfx and unbreak 64-bit arches

PR:		192667
Submitted by:	Jan Beich
This commit is contained in:
John Marino 2014-08-15 07:06:28 +00:00
parent 353e9f9015
commit 65980e508c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=364941
3 changed files with 17 additions and 15 deletions

View File

@ -5,7 +5,7 @@ PORTNAME= rtfx
PORTVERSION= 1.1
PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= http://memberwebs.com/stef/software/rtfx/
MASTER_SITES= http://thewalter.net/stef/software/rtfx/
MAINTAINER= ports@FreeBSD.org
COMMENT= RTF to XML converter
@ -13,18 +13,10 @@ COMMENT= RTF to XML converter
LIB_DEPENDS= libmba.so:${PORTSDIR}/devel/libmba \
libdomc.so:${PORTSDIR}/textproc/domc
HAS_CONFIGURE= yes
CONFIGURE_ARGS+= --prefix=${PREFIX} --datarootdir=${PREFIX}
GNU_CONFIGURE= yes
USES= gmake
PLIST_FILES= bin/rtfx
MAN1= rtfx.1
PLIST_FILES= bin/${PORTNAME} \
man/man1/${PORTNAME}.1.gz
NO_STAGE= yes
.include <bsd.port.pre.mk>
.if ${ARCH} == amd64 || ${ARCH} == sparc64
BROKEN= Does not compile on sparc64
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -0,0 +1,11 @@
--- src/xmlfixups.cpp~
+++ src/xmlfixups.cpp
@@ -453,7 +453,7 @@ void XmlFixups::runPassTwo(const DOM::Do
// Mark each node as we've seen it so we don't
// do a given element twice
- if((int)el.getUserData() == PASS_TWO)
+ if((intptr_t)el.getUserData() == (intptr_t)PASS_TWO)
continue;
el.setUserData((void*)PASS_TWO);

View File

@ -7,5 +7,4 @@ RTF features supported: page breaks, section breaks, style names,
lists (various types), tables, footnotes, info block, bold, italic,
underline, super/sub script, hidden text, strike out, text color, fonts.
Author: Nielsen <nielsen at memberwebs.com>
WWW: http://memberwebs.com/nielsen/software/rtfx/
WWW: http://thewalter.net/stef/software/rtfx/