freebsd-ports/multimedia/tvheadend/Makefile
Alex Kozlov 43a22bb0dd - Fix various distinfo errors
- Remove unused USE_* knobs
- Fix typos in USE_* knobs
- Remove empty lines after .include <bsd.port.mk>

Approved by:	portmgr (bapt)
Differential Revision:	https://reviews.freebsd.org/D911
2014-10-16 08:55:30 +00:00

91 lines
2.6 KiB
Makefile

# Created by: Bernhard Froehlich <decke@FreeBSD.org>
# $FreeBSD$
PORTNAME= tvheadend
PORTVERSION= 3.9.20140806
CATEGORIES= multimedia
MAINTAINER= decke@FreeBSD.org
COMMENT= TV streaming server supporting DVB, IPTV and V4L
LICENSE= GPLv3
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash \
${LOCALBASE}/include/linux/videodev2.h:${PORTSDIR}/multimedia/v4l_compat
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl \
liburiparser.so:${PORTSDIR}/net/uriparser
RUN_DEPENDS= dtv-scan-tables>=0:${PORTSDIR}/multimedia/dtv-scan-tables
USE_GITHUB= yes
GH_ACCOUNT= ${PORTNAME}
GH_TAGNAME= ${GH_COMMIT}
GH_COMMIT= 6d19440
USES= execinfo gmake pkgconfig python shebangfix
GNU_CONFIGURE= yes
MAKE_JOBS_UNSAFE= yes
USE_RC_SUBR= ${PORTNAME}
SHEBANG_FILES= ${WRKSRC}/Autobuild.sh \
${WRKSRC}/configure \
${WRKSRC}/support/configure.inc \
${WRKSRC}/support/getmuxlist \
${WRKSRC}/support/pbuilder \
${WRKSRC}/support/version
TVHUSER?= tvheadend
TVHGROUP?= tvheadend
USERS= ${TVHUSER}
GROUPS= ${TVHGROUP} webcamd
SUB_LIST+= TVHUSER="${TVHUSER}" \
TVHGROUP="${TVHGROUP}"
CONFIGURE_ENV+= PLATFORM=freebsd
CONFIGURE_ARGS+=--disable-dvbscan --disable-zlib
CFLAGS+= -I${LOCALBASE}/include -Wno-conversion -Wno-int-to-pointer-cast
LDFLAGS+= -L${LOCALBASE}/lib -lexecinfo -lssl -lcrypto -lz
OPTIONS_DEFINE= AVAHI DVBCSA TRANSCODING XMLTV
OPTIONS_DEFAULT=DVBCSA
AVAHI_LIB_DEPENDS= libavahi-client.so:${PORTSDIR}/net/avahi-app
DVBCSA_DESC= Replace internal ffdecsa with dvbcsa
DVBCSA_LIB_DEPENDS= libdvbcsa.so:${PORTSDIR}/multimedia/libdvbcsa
DVBCSA_CONFIGURE_ENABLE= dvbcsa
TRANSCODING_DESC= Transcoding for mobile and web clients
TRANSCODING_LIB_DEPENDS= libavcodec.so:${PORTSDIR}/multimedia/ffmpeg
TRANSCODING_CONFIGURE_ENABLE= libav
XMLTV_RUN_DEPENDS= p5-xmltv>=0:${PORTSDIR}/textproc/p5-xmltv
.include <bsd.port.pre.mk>
.if ( !empty(CC:M*clang*) || ${OSVERSION} >= 1000024 )
# CLANG also needs -Wno-microsoft which GCC 4.2 does not know
CFLAGS+= -Wno-microsoft \
-Wno-tautological-constant-out-of-range-compare
.endif
post-patch:
@${REINPLACE_CMD} 's|0.0.0~unknown|${PORTVERSION}-${GH_COMMIT}|' \
${WRKSRC}/support/version
@${REINPLACE_CMD} 's|-g||' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} 's|-ldl||' \
${WRKSRC}/Makefile
# ignore gcc warnings on FreeBSD 9.X, and clang warnings on FreeBSD 10+
@${REINPLACE_CMD} 's|-Werror||' \
${WRKSRC}/Makefile
.if ${OSVERSION} >= 1000000
# to suppress clang CC flags on FreeBSD 10+
# @${REINPLACE_CMD} 's|clang|clang-options-disabled|' \
# to enable clang CC flags, because clang is identified as 'cc' on FreeBSD 10+
@${REINPLACE_CMD} 's|clang|cc|' \
${WRKSRC}/Makefile
.endif
.include <bsd.port.post.mk>