2011-01-31 11:50:37 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= erlyvideo
|
2011-05-31 02:45:34 +00:00
|
|
|
PORTVERSION= 2.8.1
|
2011-06-02 16:31:42 +00:00
|
|
|
PORTREVISION= 1
|
2011-01-31 11:50:37 +00:00
|
|
|
CATEGORIES= net
|
2011-02-01 15:14:56 +00:00
|
|
|
MASTER_SITES= http://host5.webstroy.ru/
|
2011-01-31 11:50:37 +00:00
|
|
|
|
2011-11-10 22:20:18 +00:00
|
|
|
MAINTAINER= rm@FreeBSD.org
|
2011-01-31 11:50:37 +00:00
|
|
|
COMMENT= RTMP flash streaming server written in erlang
|
|
|
|
|
2013-12-06 16:42:15 +00:00
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2011-03-27 10:12:44 +00:00
|
|
|
BUILD_DEPENDS= erlc:${PORTSDIR}/lang/erlang
|
2011-01-31 11:50:37 +00:00
|
|
|
RUN_DEPENDS= erl:${PORTSDIR}/lang/erlang
|
|
|
|
|
2013-12-06 16:42:15 +00:00
|
|
|
BROKEN= Does not builds with current erlang from ports
|
|
|
|
DEPRECATED= Development of erlyvideo is abandoned upstream. Use flussonic instead
|
|
|
|
EXPIRATON_DATE= 2014-01-06
|
2011-01-31 11:50:37 +00:00
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
|
|
|
|
ERLANGDIR= ${PREFIX}/lib/erlang
|
|
|
|
ERLYDIR= ${ERLANGDIR}/lib/${PORTNAME}-${PORTVERSION}
|
2011-05-31 02:45:34 +00:00
|
|
|
ERLYVIDEO= ebin src include Emakefile
|
|
|
|
DEPSLIST= amf log4erl erlmedia mpegts rtmp rtp rtsp ibrowse
|
2011-01-31 11:50:37 +00:00
|
|
|
PLIST_SUB= PORTNAME=${PORTNAME} PORTVERSION=${PORTVERSION}
|
2011-03-17 12:51:15 +00:00
|
|
|
SUB_FILES= pkg-deinstall
|
2011-01-31 11:50:37 +00:00
|
|
|
|
2013-09-20 22:10:23 +00:00
|
|
|
NO_STAGE= yes
|
2011-01-31 11:50:37 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's#/etc/#${PREFIX}/etc/#g' \
|
2011-02-27 13:44:21 +00:00
|
|
|
${WRKSRC}/src/${PORTNAME}.erl ${WRKSRC}/contrib/erlyctl \
|
2011-03-17 12:51:15 +00:00
|
|
|
${WRKSRC}/deps/erlmedia/src/ems_log.erl \
|
|
|
|
${WRKSRC}/priv/production.config.debian
|
2011-01-31 11:50:37 +00:00
|
|
|
@${REINPLACE_CMD} -e 's#"wwwroot"#"${PREFIX}/www/${PORTNAME}/wwwroot"#g' \
|
|
|
|
${WRKSRC}/priv/${PORTNAME}.conf.sample
|
|
|
|
@${REINPLACE_CMD} -e 's#"movies"#"/var/lib/${PORTNAME}/movies"#g' \
|
|
|
|
${WRKSRC}/priv/${PORTNAME}.conf.sample
|
2011-06-02 19:35:53 +00:00
|
|
|
@${FIND} ${WRKSRC} -type f -name .gitignore -delete -or -name "*.bak" \
|
|
|
|
-delete -or -name "*.orig" -delete
|
2011-05-31 02:45:34 +00:00
|
|
|
@${RMDIR} ${WRKSRC}/src/plugins
|
2011-01-31 11:50:37 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${ETCDIR} ${ERLYDIR} ${WWWDIR}
|
|
|
|
.for dir in /var/lib/${PORTNAME}/movies /var/lib/${PORTNAME}/plugins \
|
2011-03-17 12:51:15 +00:00
|
|
|
/var/log/${PORTNAME} /var/cache/${PORTNAME}/licensed
|
2011-01-31 11:50:37 +00:00
|
|
|
${MKDIR} ${dir}
|
|
|
|
.endfor
|
|
|
|
.for entry in ${ERLYVIDEO}
|
|
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} ${entry} ${ERLYDIR}/)
|
|
|
|
.endfor
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/contrib/reverse_mpegts ${PREFIX}/bin/reverse_mpegts
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/contrib/erlyctl ${PREFIX}/bin/erlyctl
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/deps/rtmp/contrib/rtmp_bench ${PREFIX}/bin/rtmp_bench
|
|
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} wwwroot ${WWWDIR})
|
|
|
|
${CP} ${WRKSRC}/priv/${PORTNAME}.conf.sample ${ETCDIR}/${PORTNAME}.conf.sample
|
|
|
|
${CP} ${WRKSRC}/priv/log4erl.conf.debian ${ETCDIR}/log4erl.conf.sample
|
|
|
|
${CP} ${WRKSRC}/priv/production.config.debian ${ETCDIR}/production.config.sample
|
|
|
|
.for dep in ${DEPSLIST}
|
2011-02-27 13:44:21 +00:00
|
|
|
cd ${WRKSRC}/deps/${dep} && ${GMAKE} DESTROOT= ERLANG_ROOT=${ERLANGDIR} \
|
2011-01-31 11:50:37 +00:00
|
|
|
VERSION=${PORTVERSION} install
|
|
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|