1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00
freebsd-ports/net/mad_fcl/Makefile
2014-08-04 22:00:31 +00:00

51 lines
1.2 KiB
Makefile

# Created by: Janos.Mohacsi@bsd.hu
# $FreeBSD$
PORTNAME= mad_fcl
PORTVERSION= 1.3
PORTREVISION= 1
CATEGORIES= net ipv6
MASTER_SITES= http://www.atm.tut.fi/mad/download/
DISTNAME= ${PORTNAME}_v${PORTVERSION}_src
MAINTAINER= ports@FreeBSD.org
COMMENT= FLUTE - File Delivery over Unidirectional Transport implementation
LIB_DEPENDS= libexpat.so:${PORTSDIR}/textproc/expat2
USES= gmake
USE_OPENSSL= yes
CFLAGS+= ${PTHREAD_CFLAGS}
DOC_FILES= fdt-example.xml flute-sdp-example.sdp
PORTDOCS= ${DOC_FILES} README.TXT
PLIST_FILES= bin/flute
MAKE_JOBS_UNSAFE= yes
OPTIONS_DEFINE= DOCS
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
@${FIND} ${WRKSRC} -name Makefile | ${XARGS} \
${REINPLACE_CMD} -e 's|gcc|${CC}|'
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/flute ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in ${DOC_FILES}
${INSTALL_DATA} ${WRKSRC}/doc/${file} ${STAGEDIR}${DOCSDIR}
.endfor
${INSTALL_DATA} ${WRKSRC}/README.TXT ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>