diff options
-rw-r--r-- | devel/Makefile | 1 | ||||
-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 | ||||
-rw-r--r-- | finance/libstocks/Makefile | 34 | ||||
-rw-r--r-- | finance/libstocks/distinfo | 1 | ||||
-rw-r--r-- | finance/libstocks/files/Makefile.client | 12 | ||||
-rw-r--r-- | finance/libstocks/files/Makefile.lib | 16 | ||||
-rw-r--r-- | finance/libstocks/files/patch-aa | 16 | ||||
-rw-r--r-- | finance/libstocks/pkg-comment | 1 | ||||
-rw-r--r-- | finance/libstocks/pkg-descr | 15 | ||||
-rw-r--r-- | finance/libstocks/pkg-plist | 7 |
17 files changed, 205 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 28587afdc93d..7b7fe08b61d7 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -244,6 +244,7 @@ SUBDIR += libshhopt SUBDIR += libsigc++ SUBDIR += libslang + SUBDIR += libstocks SUBDIR += libstrfunc SUBDIR += libtai SUBDIR += libtar 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 diff --git a/finance/libstocks/Makefile b/finance/libstocks/Makefile new file mode 100644 index 000000000000..22353dc3b789 --- /dev/null +++ b/finance/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/finance/libstocks/distinfo b/finance/libstocks/distinfo new file mode 100644 index 000000000000..00db83be9d53 --- /dev/null +++ b/finance/libstocks/distinfo @@ -0,0 +1 @@ +MD5 (libstocks-0.5.0.tar.gz) = 495760d82d6abc7a8877aef0e187782a diff --git a/finance/libstocks/files/Makefile.client b/finance/libstocks/files/Makefile.client new file mode 100644 index 000000000000..ccb4bbafd213 --- /dev/null +++ b/finance/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/finance/libstocks/files/Makefile.lib b/finance/libstocks/files/Makefile.lib new file mode 100644 index 000000000000..d4c59208ceaf --- /dev/null +++ b/finance/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/finance/libstocks/files/patch-aa b/finance/libstocks/files/patch-aa new file mode 100644 index 000000000000..994c6a391a48 --- /dev/null +++ b/finance/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/finance/libstocks/pkg-comment b/finance/libstocks/pkg-comment new file mode 100644 index 000000000000..c8421758ba49 --- /dev/null +++ b/finance/libstocks/pkg-comment @@ -0,0 +1 @@ +A C library which can be used to fetch stocks quotes diff --git a/finance/libstocks/pkg-descr b/finance/libstocks/pkg-descr new file mode 100644 index 000000000000..1933d932d247 --- /dev/null +++ b/finance/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/finance/libstocks/pkg-plist b/finance/libstocks/pkg-plist new file mode 100644 index 000000000000..7bd42312294f --- /dev/null +++ b/finance/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 |