1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/devel/libstocks/Makefile
Edwin Groothuis 17578e0979 Add finance category to the following ports.
PR:		ports/56259 (ports/39102)
Submitted by:	Mark Linimon <linimon@lonesome.com>
2003-10-04 02:27:44 +00:00

40 lines
901 B
Makefile

# New ports collection makefile for: libstocks
# Date created: this 7th day of January, 2002
# Whom: Mikhail Teterin
#
# $FreeBSD$
#
PORTNAME= libstocks
PORTVERSION= 0.5.0
CATEGORIES= devel finance
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= mi@aldan.algebra.com
COMMENT= A C library which can be used to fetch stocks quotes
USE_REINPLACE= yes
REINPLACE_ARGS= -i ""
post-patch:
${REINPLACE_CMD} -e 's/<malloc.h>/<stdlib.h>/' \
-e 's/__UNIX__/__unix__/' \
$$(${GREP} --mmap -El '<malloc.h>|__UNIX__' \
${WRKSRC}/lib/*.c); \
do-build do-install:
.for d in lib client
cd ${WRKSRC}/$d && ${ENV} ${MAKE_ENV} ${MAKE} ${MAKEFLAGS} -j2 \
-f ${FILESDIR}/Makefile.$d ${.TARGET:S/do-//}
.endfor
.ifndef NOPORTDOCS
post-install:
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.mk>