From a68162ee38799a42e7721659a2c03391cf46f645 Mon Sep 17 00:00:00 2001 From: Mikhail Teterin Date: Tue, 8 Jan 2002 06:08:13 +0000 Subject: 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. --- devel/libstocks/Makefile | 34 ++++++++++++++++++++++++++++++++++ devel/libstocks/distinfo | 1 + devel/libstocks/files/Makefile.client | 12 ++++++++++++ devel/libstocks/files/Makefile.lib | 16 ++++++++++++++++ devel/libstocks/files/patch-aa | 16 ++++++++++++++++ devel/libstocks/pkg-comment | 1 + devel/libstocks/pkg-descr | 15 +++++++++++++++ devel/libstocks/pkg-plist | 7 +++++++ 8 files changed, 102 insertions(+) create mode 100644 devel/libstocks/Makefile create mode 100644 devel/libstocks/distinfo create mode 100644 devel/libstocks/files/Makefile.client create mode 100644 devel/libstocks/files/Makefile.lib create mode 100644 devel/libstocks/files/patch-aa create mode 100644 devel/libstocks/pkg-comment create mode 100644 devel/libstocks/pkg-descr create mode 100644 devel/libstocks/pkg-plist (limited to 'devel/libstocks') 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 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 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 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 ++ + #include + #include +@@ -32,5 +34,4 @@ + #endif + +-#include + #include + #include 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 -- cgit v1.2.3