Date: Fri, 23 Jun 2000 01:37:55 -0700 (PDT) From: kbyanc@posi.net To: FreeBSD-gnats-submit@freebsd.org Subject: ports/19463: new port: devel/libcoro Message-ID: <200006230837.BAA10917@gateway.posi.net>
next in thread | raw e-mail | index | archive | help
>Number: 19463 >Category: ports >Synopsis: new port: devel/libcoro >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jun 23 02:30:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Kelly Yancey >Release: FreeBSD 4.0-STABLE i386 >Organization: >Environment: >Description: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # devel/libcoro # devel/libcoro/files # devel/libcoro/files/md5 # devel/libcoro/pkg # devel/libcoro/pkg/PLIST # devel/libcoro/pkg/COMMENT # devel/libcoro/pkg/DESCR # devel/libcoro/patches # devel/libcoro/patches/patch-aa # devel/libcoro/patches/patch-ab # devel/libcoro/Makefile # echo c - devel/libcoro mkdir -p devel/libcoro > /dev/null 2>&1 echo c - devel/libcoro/files mkdir -p devel/libcoro/files > /dev/null 2>&1 echo x - devel/libcoro/files/md5 sed 's/^X//' >devel/libcoro/files/md5 << 'END-of-devel/libcoro/files/md5' XMD5 (coro-1.0.3.tar.gz) = eaa26cd2450f3dcaa84fed58c579214d END-of-devel/libcoro/files/md5 echo c - devel/libcoro/pkg mkdir -p devel/libcoro/pkg > /dev/null 2>&1 echo x - devel/libcoro/pkg/PLIST sed 's/^X//' >devel/libcoro/pkg/PLIST << 'END-of-devel/libcoro/pkg/PLIST' Xlib/libcoro.a Xinclude/coro.h X END-of-devel/libcoro/pkg/PLIST echo x - devel/libcoro/pkg/COMMENT sed 's/^X//' >devel/libcoro/pkg/COMMENT << 'END-of-devel/libcoro/pkg/COMMENT' XC library that implements coroutines END-of-devel/libcoro/pkg/COMMENT echo x - devel/libcoro/pkg/DESCR sed 's/^X//' >devel/libcoro/pkg/DESCR << 'END-of-devel/libcoro/pkg/DESCR' XExcerpt from The Art of Computer Programming by D. E. Knuth: X X "Subroutines are special cases of more general program X components, called coroutines. In contrast to the un- X symmetric relationship between a main routine and a sub- X routine, there is complete symmetry between coroutines, X which call on each other." X Xcoro is a C library that implements the low level handling of coroutines. XDespite it's simplicity, there is no portable way to implement them. The goal Xof this library is to build a standard API for coroutines and implement it for Xas many architectures as possible. Currently on the i386 architecture is Xsupported. X X -Kelly X kbyanc@posi.net END-of-devel/libcoro/pkg/DESCR echo c - devel/libcoro/patches mkdir -p devel/libcoro/patches > /dev/null 2>&1 echo x - devel/libcoro/patches/patch-aa sed 's/^X//' >devel/libcoro/patches/patch-aa << 'END-of-devel/libcoro/patches/patch-aa' Xdiff -u arch/x86-freebsd/coro.c arch/x86-freebsd/coro.c X--- arch/x86-freebsd/coro.c Fri Jun 23 00:15:18 2000 X+++ arch/x86-freebsd/coro.c Fri Jun 23 00:16:38 2000 X@@ -63,7 +63,7 @@ X size += 4096-1; X size &= ~(4096-1); X stack = mmap(0, size, PROT_READ|PROT_WRITE, X- MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); X+ MAP_PRIVATE|MAP_ANON, -1, 0); X if (stack == (void*)-1) X return 0; X XOnly in arch/x86-freebsd: coro.o XOnly in arch/x86-freebsd: libcoro.a END-of-devel/libcoro/patches/patch-aa echo x - devel/libcoro/patches/patch-ab sed 's/^X//' >devel/libcoro/patches/patch-ab << 'END-of-devel/libcoro/patches/patch-ab' X--- arch/x86-freebsd/Makefile.in.orig Fri Jun 23 01:18:53 2000 X+++ arch/x86-freebsd/Makefile.in Fri Jun 23 01:19:15 2000 X@@ -1,22 +1,28 @@ X-CFLAGS=-O2 -Wall X+CFLAGS?=-O2 -Wall X+CFLAGS+=-fPIC X X MAN=@MANSRC@ X LINST=@LINST@ X HINST=@HINST@ X MINST=@MINST@ X X+INSTALL_PROGRAM?=install -c -m 644 X+INSTALL_DATA?=install -c -m 644 X+ X+SHARED_LIB=libcoro.so.1 X+ X all: libcoro.a X X libcoro.a: coro.o X rm -f $@ X- ar rcs $@ coro.o X+ ld -Bshareable -o $(SHARED_LIB) coro.o X X coro.o: coro.h X X install: libcoro.a coro.h $(MAN) X- install -m 644 libcoro.a $(LINST)/libcoro.a X- install -m 644 coro.h $(HINST)/coro.h X- install -m 644 $(MAN) $(MINST)/man2/coro.2 X+ $(INSTALL_PROGRAM) $(SHARED_LIB) $(LINST)/$(SHARED_LIB) X+ $(INSTALL_DATA) coro.h $(HINST)/coro.h X+ $(INSTALL_DATA) $(MAN) $(MINST)/man2/coro.2 X X clean: X- rm -f libcoro.a coro.o X+ rm -f $(SHARED_LIB) coro.o END-of-devel/libcoro/patches/patch-ab echo x - devel/libcoro/Makefile sed 's/^X//' >devel/libcoro/Makefile << 'END-of-devel/libcoro/Makefile' X# Ports collection Makefile for: libcoro X# Date created: 06/22/2000 X# Whom: kbyanc@posi.net X# X# $FreeBSD$ X# X XPORTNAME= libcoro XPORTVERSION= 1.0.3 XCATEGORIES= devel XMASTER_SITES= http://themen01.exit.de/user/member/froese/coro/ XDISTNAME= coro-${PORTVERSION} X XMAINTAINER= kbyanc@posi.net X XONLY_FOR_ARCHS= i386 X XMAN2= coro.2 X XINSTALLS_SHLIB= yes XHAS_CONFIGURE= yes XCONFIGURE_ARGS= --arch arch/x86-freebsd X Xpost-extract: X ${CP} -r ${WRKSRC}/arch/x86-linux ${WRKSRC}/arch/x86-freebsd X X.include <bsd.port.mk> END-of-devel/libcoro/Makefile exit >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200006230837.BAA10917>