blob: 1b299300311dc49c54e3b16bcdbb6024323fa93d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
PORTNAME= libstocks
PORTVERSION= 0.5.0
PORTREVISION= 1
CATEGORIES= finance devel
MASTER_SITES= SF
MAINTAINER= ports@virtual-estates.net
COMMENT= C library which can be used to fetch stocks quotes
WWW= https://libstocks.sourceforge.net/
USE_LDCONFIG= yes
REINPLACE_ARGS= -i ""
MAKE_ENV= WITHOUT_PROFILE=yes SRCCONF=/dev/null
MAKE_ENV+= STAGEDIR="${STAGEDIR}"
USES= uidfix
OPTIONS_DEFINE= DOCS
post-patch:
${REINPLACE_CMD} -e 's/<malloc.h>/<stdlib.h>/' \
-e 's/__UNIX__/__unix__/' \
$$(${GREP} -El '<malloc.h>|__UNIX__' \
${WRKSRC}/lib/*.c); \
do-build do-install:
.for d in lib client
cd ${WRKSRC}/$d && ${SETENVI} ${WRK_ENV} ${MAKE_ENV} ${MAKE_CMD} \
${MAKEFLAGS} -j2 -f ${FILESDIR}/Makefile.$d ${.TARGET:S/do-//}
.endfor
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|