blob: 681446a2c4f37f6c8f2e124e2218d5a7b3577b5f (
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
|
# New ports collection makefile for: udpcast
# Date created: Mon Jul 19 19:10:56 UTC 2004
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= udpcast
PORTVERSION= 0.${RELEASE_DATE}
CATEGORIES= mbone sysutils
MASTER_SITES= http://udpcast.linux.lu/current/
DISTNAME= ${PORTNAME}-${RELEASE_DATE}
MAINTAINER= ports@FreeBSD.org
COMMENT= A file transfer tool using ethernet's multicast
USE_REINPLACE= yes
USE_GETOPT_LONG=yes
USE_GMAKE= yes
USE_PERL5_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
RELEASE_DATE= 20040531
PROGRAM_SBIN_FILES= udp-receiver udp-sender
PLIST_FILES= sbin/udp-receiver \
sbin/udp-sender
PORTDOCS= Changelog.txt cmd.html
MAN1= udp-receiver.1 udp-sender.1
post-patch:
@${REINPLACE_CMD} -E \
-e 's|<malloc.h>|<stdlib.h>|' \
${WRKSRC}/libbb_udpcast.h
do-configure:
# C{C,FLAGS}, PTHREAD_* safeness
@${REINPLACE_CMD} -E \
-e 's|gcc|${CC}|' \
-e 's|^(CFLAGS[[:space:]]*=.+)$$|\1 ${CFLAGS} ${CPPFLAGS} ${PTHREAD_CFLAGS}|' \
-e 's|^(LDFLAGS[[:space:]]*=.+)$$|\1 ${LDFLAGS}|' \
-e 's|-lpthread|${PTHREAD_LIBS}|g' \
${BUILD_WRKSRC}/${MAKEFILE}
do-install:
.ifndef(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
. for file in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
. endfor
.endif
.for file in ${PROGRAM_SBIN_FILES}
@${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/sbin/
.endfor
.for file in ${MAN1}
@${INSTALL_MAN} ${WRKSRC}/${file} ${MANPREFIX}/man/man1/
.endfor
.include <bsd.port.mk>
|