diff options
author | gahr <gahr@FreeBSD.org> | 2008-09-16 22:51:35 +0800 |
---|---|---|
committer | gahr <gahr@FreeBSD.org> | 2008-09-16 22:51:35 +0800 |
commit | a07ee601834e42e3890d1250a354a70e863720b2 (patch) | |
tree | a9795370ff50058d1a64a22464f5287d4b44471f /finance/xtrader | |
parent | e0ff645c7ed1c7f3ae23d2808930c19f5fd15051 (diff) | |
download | freebsd-ports-gnome-a07ee601834e42e3890d1250a354a70e863720b2.tar.gz freebsd-ports-gnome-a07ee601834e42e3890d1250a354a70e863720b2.tar.zst freebsd-ports-gnome-a07ee601834e42e3890d1250a354a70e863720b2.zip |
- Fix build on sparc64
- Unbreak on amd64, GCC 4.x
Approved by: portmgr (pav)
Diffstat (limited to 'finance/xtrader')
-rw-r--r-- | finance/xtrader/Makefile | 14 |
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> |