diff options
author | mi <mi@FreeBSD.org> | 2002-01-08 14:08:13 +0800 |
---|---|---|
committer | mi <mi@FreeBSD.org> | 2002-01-08 14:08:13 +0800 |
commit | 6da19a7949477fdc70ed072af0830abb654b11e0 (patch) | |
tree | 8ff3de4cc20e12fdd24b52f24c1f52e2d587482c /devel/libstocks | |
parent | 709895014fa60c5635b63d31f50fd454d87ccb02 (diff) | |
download | freebsd-ports-gnome-6da19a7949477fdc70ed072af0830abb654b11e0.tar.gz freebsd-ports-gnome-6da19a7949477fdc70ed072af0830abb654b11e0.tar.zst freebsd-ports-gnome-6da19a7949477fdc70ed072af0830abb654b11e0.zip |
Libstocks is a C library which can be used to fetch stocks quotes.
It comes with a CLI client and the Siag Office can be built to
interface with it.
Diffstat (limited to 'devel/libstocks')
-rw-r--r-- | devel/libstocks/Makefile | 34 | ||||
-rw-r--r-- | devel/libstocks/distinfo | 1 | ||||
-rw-r--r-- | devel/libstocks/files/Makefile.client | 12 | ||||
-rw-r--r-- | devel/libstocks/files/Makefile.lib | 16 | ||||
-rw-r--r-- | devel/libstocks/files/patch-aa | 16 | ||||
-rw-r--r-- | devel/libstocks/pkg-comment | 1 | ||||
-rw-r--r-- | devel/libstocks/pkg-descr | 15 | ||||
-rw-r--r-- | devel/libstocks/pkg-plist | 7 |
8 files changed, 102 insertions, 0 deletions
diff --git a/devel/libstocks/Makefile b/devel/libstocks/Makefile new file mode 100644 index 000000000000..22353dc3b789 --- /dev/null +++ b/devel/libstocks/Makefile @@ -0,0 +1,34 @@ +# 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 +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER= mi@aldan.algebra.com + +#GNU_CONFIGURE= yes + +post-patch: + ${PERL} -pi -e 's/malloc.h/stdlib.h/; s/__UNIX__/__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> diff --git a/devel/libstocks/distinfo b/devel/libstocks/distinfo new file mode 100644 index 000000000000..00db83be9d53 --- /dev/null +++ b/devel/libstocks/distinfo @@ -0,0 +1 @@ +MD5 (libstocks-0.5.0.tar.gz) = 495760d82d6abc7a8877aef0e187782a diff --git a/devel/libstocks/files/Makefile.client b/devel/libstocks/files/Makefile.client new file mode 100644 index 000000000000..ccb4bbafd213 --- /dev/null +++ b/devel/libstocks/files/Makefile.client @@ -0,0 +1,12 @@ +PROG= libstocks_client +SRCS= client.c +NOMAN= 1 +PREFIX?=/usr/local +BINDIR= ${PREFIX}/bin + +CFLAGS+=-I../lib +LDADD+= -L../lib -lstocks + +build: all + +.include <bsd.prog.mk> diff --git a/devel/libstocks/files/Makefile.lib b/devel/libstocks/files/Makefile.lib new file mode 100644 index 000000000000..d4c59208ceaf --- /dev/null +++ b/devel/libstocks/files/Makefile.lib @@ -0,0 +1,16 @@ +PREFIX?=/usr/local +LIBDIR= ${PREFIX}/lib +INCDIR= ${PREFIX}/include + +LIB= stocks +SHLIB_MAJOR=0 +SHLIB_MINOR=5 + +NOPROFILE= True # to avoid building profiled library + +SRCS!= ${MAKE} -f ${.CURDIR}/Makefile.in -V libstocks_a_SOURCES +INCS!= ${MAKE} -f ${.CURDIR}/Makefile.in -V include_HEADERS + +build: all + +.include <bsd.lib.mk> diff --git a/devel/libstocks/files/patch-aa b/devel/libstocks/files/patch-aa new file mode 100644 index 000000000000..994c6a391a48 --- /dev/null +++ b/devel/libstocks/files/patch-aa @@ -0,0 +1,16 @@ +--- lib/http.c Tue Sep 5 10:42:34 2000 ++++ lib/http.c Tue Jan 8 00:09:06 2002 +@@ -21,5 +21,7 @@ + #define __HTTP_C__ + + #ifdef __UNIX__ ++#include <sys/types.h> ++ + #include <sys/socket.h> + #include <netinet/in.h> +@@ -32,5 +34,4 @@ + #endif + +-#include <sys/types.h> + #include <ctype.h> + #include <string.h> diff --git a/devel/libstocks/pkg-comment b/devel/libstocks/pkg-comment new file mode 100644 index 000000000000..c8421758ba49 --- /dev/null +++ b/devel/libstocks/pkg-comment @@ -0,0 +1 @@ +A C library which can be used to fetch stocks quotes diff --git a/devel/libstocks/pkg-descr b/devel/libstocks/pkg-descr new file mode 100644 index 000000000000..1933d932d247 --- /dev/null +++ b/devel/libstocks/pkg-descr @@ -0,0 +1,15 @@ +Libstocks is a C library which can be used to fetch stocks quotes. + +It is currently able to get quotes from a lot of stocks markets. The +supported markets are : + + Argentina European markets + Australia Mexico + Brasil United States + Canada Venezuela + Chili + +Unfortunatly, libstocks can get historical quotes just for the United +States market. + +WWW: http://libstocks.sourceforge.net/ diff --git a/devel/libstocks/pkg-plist b/devel/libstocks/pkg-plist new file mode 100644 index 000000000000..7bd42312294f --- /dev/null +++ b/devel/libstocks/pkg-plist @@ -0,0 +1,7 @@ +bin/libstocks_client +include/stocks.h +lib/libstocks.a +lib/libstocks.so +lib/libstocks.so.0.5 +%%PORTDOCS%%share/doc/libstocks/README +%%PORTDOCS%%@dirrm share/doc/libstocks |