2005-04-17 07:04:12 +02:00
|
|
|
# New ports collection makefile for: xtrader
|
|
|
|
# Date created: 2005-04-16
|
|
|
|
# Whom: Michael Johnson <ahze@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= xtrader
|
|
|
|
PORTVERSION= 0.99.9
|
2008-03-26 09:23:11 +01:00
|
|
|
PORTREVISION= 3
|
2005-04-17 07:04:12 +02:00
|
|
|
CATEGORIES= finance
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
|
|
|
MAINTAINER= lioux@FreeBSD.org
|
|
|
|
COMMENT= Technical analysis program for financial instruments
|
|
|
|
|
2007-12-17 16:37:10 +01:00
|
|
|
LIB_DEPENDS= ptypes.21:${PORTSDIR}/devel/ptypes \
|
2005-04-17 07:04:12 +02:00
|
|
|
fltk.1:${PORTSDIR}/x11-toolkits/fltk
|
|
|
|
|
|
|
|
MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}"
|
|
|
|
MAKEFILE= Makefile.linux
|
2008-03-26 09:23:11 +01:00
|
|
|
USE_XORG= x11 xpm
|
2005-04-17 07:04:12 +02:00
|
|
|
BUILD_WRKSRC= ${WRKSRC}/${PORTNAME}
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
|
|
|
|
PLIST_FILES= bin/xtrader \
|
|
|
|
%%DATADIR%%/sample.xt
|
|
|
|
PLIST_DIRS= %%DATADIR%%
|
|
|
|
|
2008-09-16 16:51:35 +02:00
|
|
|
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
|
2007-12-11 00:04:24 +01:00
|
|
|
|
2005-04-17 07:04:12 +02:00
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/sample.xt ${DATADIR}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}/xtrader ${PREFIX}/bin
|
|
|
|
|
2008-09-16 16:51:35 +02:00
|
|
|
.include <bsd.port.mk>
|