blob: cd4ed32d33dd10a17a985b06479e1c2f979d1f18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
PORTNAME= xtrader
PORTVERSION= 0.99.9
PORTREVISION= 10
CATEGORIES= finance
MASTER_SITES= SF/${PORTNAME}/OldFiles
MAINTAINER= ports@FreeBSD.org
COMMENT= Technical analysis program for financial instruments
WWW= http://xtrader.sourceforge.net/
LIB_DEPENDS= libptypes.so:devel/ptypes \
libfltk.so.1:x11-toolkits/fltk
MAKEFILE= Makefile.linux
USES= gmake xorg
USE_XORG= x11 xpm
BUILD_WRKSRC= ${WRKSRC}/${PORTNAME}
NO_WRKSUBDIR= yes
PLIST_FILES= bin/xtrader \
%%DATADIR%%/sample.xt
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
${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} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/sample.xt ${STAGEDIR}${DATADIR}
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}/xtrader ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>
|