2002-01-08 07:08:13 +01:00
|
|
|
# New ports collection makefile for: libstocks
|
|
|
|
# Date created: this 7th day of January, 2002
|
|
|
|
# Whom: Mikhail Teterin
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= libstocks
|
|
|
|
PORTVERSION= 0.5.0
|
2004-01-22 18:59:27 +01:00
|
|
|
CATEGORIES= finance devel
|
2002-01-08 07:08:13 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
|
|
|
MAINTAINER= mi@aldan.algebra.com
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= A C library which can be used to fetch stocks quotes
|
2002-01-08 07:08:13 +01:00
|
|
|
|
2007-01-27 14:40:50 +01:00
|
|
|
USE_LDCONFIG= yes
|
2002-06-21 23:52:07 +02:00
|
|
|
REINPLACE_ARGS= -i ""
|
2002-01-08 07:08:13 +01:00
|
|
|
|
|
|
|
post-patch:
|
2002-06-21 23:52:07 +02:00
|
|
|
${REINPLACE_CMD} -e 's/<malloc.h>/<stdlib.h>/' \
|
|
|
|
-e 's/__UNIX__/__unix__/' \
|
|
|
|
$$(${GREP} --mmap -El '<malloc.h>|__UNIX__' \
|
|
|
|
${WRKSRC}/lib/*.c); \
|
|
|
|
|
2002-01-08 07:08:13 +01:00
|
|
|
|
|
|
|
do-build do-install:
|
|
|
|
.for d in lib client
|
2005-04-16 00:51:13 +02:00
|
|
|
cd ${WRKSRC}/$d && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKEFLAGS} -j2 \
|
2002-01-08 07:08:13 +01:00
|
|
|
-f ${FILESDIR}/Makefile.$d ${.TARGET:S/do-//}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.ifndef NOPORTDOCS
|
|
|
|
post-install:
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|