1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00
freebsd-ports/finance/xtrader/Makefile
Gerald Pfeifer 15945f8122 Update the default version of GCC in the Ports Collection from GCC 4.7.4
to GCC 4.8.3.

Part II, Bump PORTREVISIONs.

PR:		192025
Tested by:	antoine (-exp runs)
Approved by:	portmgr (implicit)
2014-09-10 20:50:31 +00:00

42 lines
1.2 KiB
Makefile

# Created by: Michael Johnson <ahze@FreeBSD.org>
# $FreeBSD$
PORTNAME= xtrader
PORTVERSION= 0.99.9
PORTREVISION= 9
CATEGORIES= finance
MASTER_SITES= SF/${PORTNAME}/OldFiles
MAINTAINER= ports@FreeBSD.org
COMMENT= Technical analysis program for financial instruments
LIB_DEPENDS= libptypes.so:${PORTSDIR}/devel/ptypes \
libfltk.so.1:${PORTSDIR}/x11-toolkits/fltk
MAKEFILE= Makefile.linux
USE_XORG= x11 xpm
BUILD_WRKSRC= ${WRKSRC}/${PORTNAME}
NO_WRKSUBDIR= yes
USES= gmake
PLIST_FILES= bin/xtrader \
%%DATADIR%%/sample.xt
PLIST_DIRS= %%DATADIR%%
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>