1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/mbone/udpcast/Makefile

61 lines
1.4 KiB
Makefile
Raw Normal View History

# 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}
2005-03-10 22:10:03 +00:00
MAINTAINER= ports@FreeBSD.org
COMMENT= A file transfer tool using ethernet's multicast
USE_GETOPT_LONG=yes
USE_GMAKE= yes
2004-08-22 15:39:37 +00:00
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)
2004-12-13 13:37:53 +00:00
${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>