aboutsummaryrefslogtreecommitdiffstats
path: root/finance/xtrader/Makefile
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2011-11-15 20:54:11 +0800
committergahr <gahr@FreeBSD.org>2011-11-15 20:54:11 +0800
commit434262d99ae319bfb60a06ccb5d7b6ceb0ab58e5 (patch)
treed98358d44417cf85dff99835f0a8402e12f0043e /finance/xtrader/Makefile
parentf044119495cc2ab0a6c26fede95a88a5e86cdd03 (diff)
downloadfreebsd-ports-gnome-434262d99ae319bfb60a06ccb5d7b6ceb0ab58e5.tar.gz
freebsd-ports-gnome-434262d99ae319bfb60a06ccb5d7b6ceb0ab58e5.tar.zst
freebsd-ports-gnome-434262d99ae319bfb60a06ccb5d7b6ceb0ab58e5.zip
- Unbreak - fix build with latest x11-toolkits/fltk
Feature safe: yes
Diffstat (limited to 'finance/xtrader/Makefile')
-rw-r--r--finance/xtrader/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/finance/xtrader/Makefile b/finance/xtrader/Makefile
index de96e273a9d6..0e34f2ac7f29 100644
--- a/finance/xtrader/Makefile
+++ b/finance/xtrader/Makefile
@@ -17,8 +17,6 @@ COMMENT= Technical analysis program for financial instruments
LIB_DEPENDS= ptypes.21:${PORTSDIR}/devel/ptypes \
fltk.1:${PORTSDIR}/x11-toolkits/fltk
-BROKEN= does not compile
-
MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}"
MAKEFILE= Makefile.linux
USE_XORG= x11 xpm
@@ -38,6 +36,8 @@ post-patch:
${WRKSRC}/xtrader/src/Resource.h
${REINPLACE_CMD} -e 's|int(data)|(unsigned long)data|' \
${WRKSRC}/xtrader/src/gui/XTrader.h
+ ${FIND} ${WRKSRC} -type f -name "*.cpp" -o -name "*.h" | ${XARGS} \
+ ${REINPLACE_CMD} -e '/^#include <FL/s|.h>$$|.H>|; s|fl_file_chooser|Fl_File_Chooser|g'
do-install:
@${MKDIR} ${DATADIR}