mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
37 lines
813 B
Makefile
37 lines
813 B
Makefile
# Created by: Mikhail Teterin
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libstocks
|
|
PORTVERSION= 0.5.0
|
|
CATEGORIES= finance devel
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= mi@aldan.algebra.com
|
|
COMMENT= A C library which can be used to fetch stocks quotes
|
|
|
|
USE_LDCONFIG= yes
|
|
REINPLACE_ARGS= -i ""
|
|
MAKE_ENV= WITHOUT_PROFILE=yes __MAKE_CONF=/dev/null SRCCONF=/dev/null
|
|
|
|
NO_STAGE= yes
|
|
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 && ${SETENV} ${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>
|