aboutsummaryrefslogtreecommitdiffstats
path: root/devel/libcoro/Makefile
blob: 8d2ff1a558db0b8a30cd1962011494285e8b1fe5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# 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=       ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= kbyanc
DISTNAME=       coro-${PORTVERSION}

MAINTAINER=     ports@FreeBSD.org
COMMENT=        C library that implements coroutines

ONLY_FOR_ARCHS=     i386

HAS_CONFIGURE=      yes
CONFIGURE_ARGS=     --arch arch/x86-freebsd
NOPRECIOUSMAKEVARS= yes

MAN2=           coro.2

PLIST_FILES=        lib/libcoro.a include/coro.h

post-extract:
    ${CP} -r ${WRKSRC}/arch/x86-linux ${WRKSRC}/arch/x86-freebsd
    ${SED} -e '43,43s/$$/ __attribute__((noreturn,regparm(1)))/' \
        ${WRKSRC}/arch/x86-linux/coro.c > ${WRKSRC}/arch/x86-freebsd/coro.c

.include <bsd.port.mk>