summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2008-09-16 14:51:35 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2008-09-16 14:51:35 +0000
commit4c52de87774a8de0017c9de1a01ecd0404eb1d04 (patch)
treedf9b97c1a1bf1dc9c4798235e307140079683c7a
parent- Fix plist (diff)
- Fix build on sparc64
- Unbreak on amd64, GCC 4.x Approved by: portmgr (pav)
Notes
Notes: svn path=/head/; revision=220408
-rw-r--r--finance/xtrader/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/finance/xtrader/Makefile b/finance/xtrader/Makefile
index b3b6f8470f00..0082292176fd 100644
--- a/finance/xtrader/Makefile
+++ b/finance/xtrader/Makefile
@@ -29,15 +29,17 @@ PLIST_FILES= bin/xtrader \
%%DATADIR%%/sample.xt
PLIST_DIRS= %%DATADIR%%
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 700042 && ${ARCH} == "amd64"
-BROKEN= Does not compile
-.endif
+post-patch:
+ ${REINPLACE_CMD} -e 's|char|const char|' \
+ ${WRKSRC}/xtrader/src/Resource.cpp
+ ${REINPLACE_CMD} -e 's|static char|static const char|' \
+ ${WRKSRC}/xtrader/src/Resource.h
+ ${REINPLACE_CMD} -e 's|int(data)|(unsigned long)data|' \
+ ${WRKSRC}/xtrader/src/gui/XTrader.h
do-install:
@${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/sample.xt ${DATADIR}
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}/xtrader ${PREFIX}/bin
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>