summaryrefslogtreecommitdiff
path: root/net/mcl/Makefile
blob: 738f7ed4004c281f19da73b78c0f02b63466accc (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# New ports collection makefile for:   mcl
# Date created:        29 October 2003
# Whom:                past@noc.ntua.gr
#
# $FreeBSD$
#

PORTNAME=	mcl
PORTVERSION=	2.99.1
PORTREVISION=	1
CATEGORIES=	mbone net
MASTER_SITES=	http://www.inrialpes.fr/planete/people/roca/mcl/bin/
DISTNAME=	mcl_v2.99.1
EXTRACT_SUFX=	.tgz

MAINTAINER=	past@noc.ntua.gr
COMMENT=	Implementation of the ALC and NORM Reliable Multicast Protocols

BUILD_DEPENDS=	makedepend:${PORTSDIR}/devel/imake-4 \
		gdome-config:${PORTSDIR}/textproc/gdome2 \
		glib-gettextize:${PORTSDIR}/devel/glib20

USE_REINPLACE=	yes
INSTALLS_SHLIB=	yes
USE_GMAKE=	yes
MAN1=		fcast.1 fcastn.1 mclrecv2.1 mclsend2.1
MAN2=		mcl_abort.2 mcl_close.2 mcl_ctl.2 mcl_open.2 mcl_recv.2 \
		mcl_send.2 mcl_wait_event.2

pre-patch:
	@cd ${WRKSRC} &&  \
		${MKDIR} bin/freebsd

post-patch:
	@${REINPLACE_CMD} -Ee 's#-pthread|-lc_r#${PTHREAD_LIBS}#g' \
		${WRKSRC}/src/alc/Makefile
	@${REINPLACE_CMD} -Ee 's#-pthread|-lc_r#${PTHREAD_LIBS}#g' \
		${WRKSRC}/check/alc/Makefile
	@${REINPLACE_CMD} -Ee 's#-pthread|-lc_r#${PTHREAD_LIBS}#g' \
		${WRKSRC}/fcast/Makefile
	@${REINPLACE_CMD} -Ee 's#-pthread|-lc_r#${PTHREAD_LIBS}#g' \
		${WRKSRC}/flute/Makefile
	@${REINPLACE_CMD} -Ee 's#-pthread|-lc_r#${PTHREAD_LIBS}#g' \
		${WRKSRC}/mclftp/Makefile
	@${REINPLACE_CMD} -Ee 's#-pthread|-lc_r#${PTHREAD_LIBS}#g' \
		${WRKSRC}/robcast/Makefile

pre-install:
	@${REINPLACE_CMD} -Ee 's#../alc/#alc/#g' \
		${WRKSRC}/src/common/mcl_lib_api.h
	@${REINPLACE_CMD} -Ee 's#../norm/#norm/#g' \
		${WRKSRC}/src/common/mcl_lib_api.h

do-install:
	@${INSTALL_PROGRAM} ${WRKSRC}/bin/freebsd/fcast ${PREFIX}/bin
	@${INSTALL_PROGRAM} ${WRKSRC}/bin/freebsd/flute ${PREFIX}/bin
	@${INSTALL_PROGRAM} ${WRKSRC}/bin/freebsd/robcast_client ${PREFIX}/bin
	@${INSTALL_PROGRAM} ${WRKSRC}/bin/freebsd/robcast_server ${PREFIX}/bin
	@${INSTALL_DATA} ${WRKSRC}/bin/freebsd/libmclalc.a ${PREFIX}/lib
	@${INSTALL_DATA} ${WRKSRC}/src/common/mcl_lib_api.h ${PREFIX}/include
	@${INSTALL_DATA} -d ${PREFIX}/include/alc
	@${INSTALL_DATA} ${WRKSRC}/src/alc/mcl_lib_api_alc.h \
		${PREFIX}/include/alc
	@${INSTALL_MAN} ${WRKSRC}/man/fcast.man.1 ${PREFIX}/man/man1/fcast.1
	@${INSTALL_MAN} ${WRKSRC}/man/fcastn.man.1 ${PREFIX}/man/man1/fcastn.1
	@${INSTALL_MAN} ${WRKSRC}/man/mclrecv2.man.1 \
		${PREFIX}/man/man1/mclrecv2.1
	@${INSTALL_MAN} ${WRKSRC}/man/mclsend2.man.1 \
		${PREFIX}/man/man1/mclsend2.1
	@${INSTALL_MAN} ${WRKSRC}/man/mcl_abort.man.2 \
		${PREFIX}/man/man2/mcl_abort.2
	@${INSTALL_MAN} ${WRKSRC}/man/mcl_close.man.2 \
		${PREFIX}/man/man2/mcl_close.2
	@${INSTALL_MAN} ${WRKSRC}/man/mcl_ctl.man.2 ${PREFIX}/man/man2/mcl_ctl.2
	@${INSTALL_MAN} ${WRKSRC}/man/mcl_open.man.2 \
		${PREFIX}/man/man2/mcl_open.2
	@${INSTALL_MAN} ${WRKSRC}/man/mcl_recv.man.2 \
		${PREFIX}/man/man2/mcl_recv.2
	@${INSTALL_MAN} ${WRKSRC}/man/mcl_send.man.2 \
		${PREFIX}/man/man2/mcl_send.2
	@${INSTALL_MAN} ${WRKSRC}/man/mcl_wait_event.man.2 \
		${PREFIX}/man/man2/mcl_wait_event.2

.include <bsd.port.mk>