blob: e139ca70af0d5daf9f9bec9c4d6be9ea721a6dd3 (
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
|
# New ports collection makefile for: mad_fcl
# Date created: 03.02.2003
# Whom: Janos.Mohacsi@bsd.hu
#
# $FreeBSD$
#
PORTNAME= mad_fcl
PORTVERSION= 1.3
CATEGORIES= net ipv6
MASTER_SITES= http://www.atm.tut.fi/mad/download/
DISTNAME= ${PORTNAME}_v${PORTVERSION}_src
MAINTAINER= janos.mohacsi@bsd.hu
COMMENT= FLUTE - File Delivery over Unidirectional Transport implementation
LIB_DEPENDS= expat.5:${PORTSDIR}/textproc/expat2
USE_GMAKE= yes
USE_REINPLACE= yes
USE_OPENSSL= yes
CFLAGS+= ${PTHREAD_CFLAGS}
DOC_FILES= fdt-example.xml flute-sdp-example.sdp
PORTDOCS= ${DOC_FILES} README.TXT
PLIST_FILES= bin/flute
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
BROKEN= "does not compile"
.endif
.if ${OSVERSION} < 502120
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-alclib_defines.h
.endif
pre-patch:
# Fixing the end-of-lines:
for f in `${FIND} ${WRKSRC}/.. -type f` ; do \
${TR} -d '\015' < $$f > $$f.noms && \
${CAT} $$f.noms > $$f && ${RM} $$f.noms; done
post-patch:
${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \
${WRKSRC}/flute/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/flute ${PREFIX}/bin
.ifndef(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in ${DOC_FILES}
@${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
.endfor
${INSTALL_DATA} ${WRKSRC}/README.TXT ${DOCSDIR}
.endif
.include <bsd.port.post.mk>
|