summaryrefslogtreecommitdiff
path: root/devel/libstocks/files
diff options
context:
space:
mode:
authorMikhail Teterin <mi@FreeBSD.org>2002-01-08 06:08:13 +0000
committerMikhail Teterin <mi@FreeBSD.org>2002-01-08 06:08:13 +0000
commita68162ee38799a42e7721659a2c03391cf46f645 (patch)
treed7561e213710b34ae5c1198ef1a151694ca6020d /devel/libstocks/files
parentUpgrade to version 0.2.92 (diff)
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.
Notes
Notes: svn path=/head/; revision=52747
Diffstat (limited to 'devel/libstocks/files')
-rw-r--r--devel/libstocks/files/Makefile.client12
-rw-r--r--devel/libstocks/files/Makefile.lib16
-rw-r--r--devel/libstocks/files/patch-aa16
3 files changed, 44 insertions, 0 deletions
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>