aboutsummaryrefslogtreecommitdiff
path: root/devel/libcoro
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2000-06-23 10:08:05 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2000-06-23 10:08:05 +0000
commitd48cef5bf17ac1d7d4e2bab1c2729f3246ee4c00 (patch)
tree04c47320dfbcf2cb05c4fb43ba9e9957b203a76d /devel/libcoro
parentb930a240d419ba59dc0ad458feb2be94b530673c (diff)
downloadports-d48cef5bf17ac1d7d4e2bab1c2729f3246ee4c00.tar.gz
ports-d48cef5bf17ac1d7d4e2bab1c2729f3246ee4c00.zip
Notes
Diffstat (limited to 'devel/libcoro')
-rw-r--r--devel/libcoro/Makefile27
-rw-r--r--devel/libcoro/distinfo1
-rw-r--r--devel/libcoro/files/patch-aa14
-rw-r--r--devel/libcoro/files/patch-ab39
-rw-r--r--devel/libcoro/pkg-comment1
-rw-r--r--devel/libcoro/pkg-descr18
-rw-r--r--devel/libcoro/pkg-plist4
7 files changed, 104 insertions, 0 deletions
diff --git a/devel/libcoro/Makefile b/devel/libcoro/Makefile
new file mode 100644
index 000000000000..b5696b7ee978
--- /dev/null
+++ b/devel/libcoro/Makefile
@@ -0,0 +1,27 @@
+# Ports collection Makefile for: libcoro
+# Date created: 22 June 2000
+# Whom: Kelly Yancey <kbyanc@posi.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= libcoro
+PORTVERSION= 1.0.3
+CATEGORIES= devel
+MASTER_SITES= http://themen01.exit.de/user/member/froese/coro/
+DISTNAME= coro-${PORTVERSION}
+
+MAINTAINER= kbyanc@posi.net
+
+ONLY_FOR_ARCHS= i386
+
+INSTALLS_SHLIB= yes
+HAS_CONFIGURE= yes
+CONFIGURE_ARGS= --arch arch/x86-freebsd
+
+MAN2= coro.2
+
+post-extract:
+ ${CP} -r ${WRKSRC}/arch/x86-linux ${WRKSRC}/arch/x86-freebsd
+
+.include <bsd.port.mk>
diff --git a/devel/libcoro/distinfo b/devel/libcoro/distinfo
new file mode 100644
index 000000000000..40500998da65
--- /dev/null
+++ b/devel/libcoro/distinfo
@@ -0,0 +1 @@
+MD5 (coro-1.0.3.tar.gz) = eaa26cd2450f3dcaa84fed58c579214d
diff --git a/devel/libcoro/files/patch-aa b/devel/libcoro/files/patch-aa
new file mode 100644
index 000000000000..e3bb6caeb2d3
--- /dev/null
+++ b/devel/libcoro/files/patch-aa
@@ -0,0 +1,14 @@
+diff -u arch/x86-freebsd/coro.c arch/x86-freebsd/coro.c
+--- arch/x86-freebsd/coro.c Fri Jun 23 00:15:18 2000
++++ arch/x86-freebsd/coro.c Fri Jun 23 00:16:38 2000
+@@ -63,7 +63,7 @@
+ size += 4096-1;
+ size &= ~(4096-1);
+ stack = mmap(0, size, PROT_READ|PROT_WRITE,
+- MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
++ MAP_PRIVATE|MAP_ANON, -1, 0);
+ if (stack == (void*)-1)
+ return 0;
+
+Only in arch/x86-freebsd: coro.o
+Only in arch/x86-freebsd: libcoro.a
diff --git a/devel/libcoro/files/patch-ab b/devel/libcoro/files/patch-ab
new file mode 100644
index 000000000000..2c7ed72f5955
--- /dev/null
+++ b/devel/libcoro/files/patch-ab
@@ -0,0 +1,39 @@
+--- arch/x86-freebsd/Makefile.in.orig Fri Jun 23 12:43:22 2000
++++ arch/x86-freebsd/Makefile.in Fri Jun 23 12:50:30 2000
+@@ -1,22 +1,27 @@
+-CFLAGS=-O2 -Wall
++CFLAGS?=-O2 -Wall
++CFLAGS+=-fPIC -DPIC
+
+ MAN=@MANSRC@
+ LINST=@LINST@
+ HINST=@HINST@
+ MINST=@MINST@
+
+-all: libcoro.a
++SHARED_LIB=libcoro.so.1
++SHORT_SHARED_LIB=libcoro.so
+
+-libcoro.a: coro.o
++all: $(SHARED_LIB)
++
++$(SHARED_LIB): coro.o
+ rm -f $@
+- ar rcs $@ coro.o
++ $(CC) -shared -Wl,-soname -Wl,$(SHARED_LIB) -o $(SHARED_LIB) coro.o
+
+ coro.o: coro.h
+
+-install: libcoro.a coro.h $(MAN)
+- install -m 644 libcoro.a $(LINST)/libcoro.a
+- install -m 644 coro.h $(HINST)/coro.h
+- install -m 644 $(MAN) $(MINST)/man2/coro.2
++install: all $(MAN)
++ $(BSD_INSTALL_PROGRAM) $(SHARED_LIB) $(LINST)/$(SHARED_LIB)
++ ln -sf $(LINST)/$(SHARED_LIB) $(LINST)/$(SHORT_SHARED_LIB)
++ $(BSD_INSTALL_DATA) coro.h $(HINST)/coro.h
++ $(BSD_INSTALL_MAN) $(MAN) $(MINST)/man2/coro.2
+
+ clean:
+- rm -f libcoro.a coro.o
++ rm -f $(SHARED_LIB) coro.o
diff --git a/devel/libcoro/pkg-comment b/devel/libcoro/pkg-comment
new file mode 100644
index 000000000000..60c7adf6c06e
--- /dev/null
+++ b/devel/libcoro/pkg-comment
@@ -0,0 +1 @@
+C library that implements coroutines
diff --git a/devel/libcoro/pkg-descr b/devel/libcoro/pkg-descr
new file mode 100644
index 000000000000..c86f18180a7b
--- /dev/null
+++ b/devel/libcoro/pkg-descr
@@ -0,0 +1,18 @@
+Excerpt from The Art of Computer Programming by D. E. Knuth:
+
+ "Subroutines are special cases of more general program
+ components, called coroutines. In contrast to the un-
+ symmetric relationship between a main routine and a sub-
+ routine, there is complete symmetry between coroutines,
+ which call on each other."
+
+coro is a C library that implements the low level handling of coroutines.
+Despite it's simplicity, there is no portable way to implement them. The goal
+of this library is to build a standard API for coroutines and implement it for
+as many architectures as possible. Currently on the i386 architecture is
+supported.
+
+WWW: http://themen01.exit.de/user/member/froese/
+
+- Kelly
+kbyanc@posi.net
diff --git a/devel/libcoro/pkg-plist b/devel/libcoro/pkg-plist
new file mode 100644
index 000000000000..398746295390
--- /dev/null
+++ b/devel/libcoro/pkg-plist
@@ -0,0 +1,4 @@
+lib/libcoro.so
+lib/libcoro.so.1
+include/coro.h
+