freebsd-ports/multimedia/motion/Makefile
Jan Beich 84e727457f multimedia/ffmpeg: update to 3.4
Notable changes:
- i386/amd64 now depend on NASM per https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/4f9297ac3b39
- NETCDF is now MYSOFA but the dependency doesn't exist in ports yet
- SCHROEDINGER is gone per https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/220b24c7c9
- DRM, LIBRSVG2, LIBXML2 are new options
- ABI isn't completely compatible: some structs have changed

Minor cleanup:
- Don't pass --disable-{in,out}dev when it's already blocked by disabled dependency
- Drop redundant "Enable" from option descriptions
- Switch CDIO_DESC to use Mk/bsd.options.desc.mk

Changes:	https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/n3.4:/Changelog
ABI:		https://abi-laboratory.pro/tracker/timeline/ffmpeg/
PR:		223057
Exp-run by:	antoine
2017-10-21 06:50:49 +00:00

104 lines
2.9 KiB
Makefile

# Created by: Angel Carpintero <ack@telefonica.net>
# $FreeBSD$
PORTNAME= motion
PORTVERSION= 4.0.1
DISTVERSIONPREFIX= release-
PORTREVISION= 5
CATEGORIES= multimedia
MAINTAINER= ports@FreeBSD.org
COMMENT= Motion detection application
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
USES= autoreconf gmake jpeg localbase pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= Motion-Project
USE_RC_SUBR= ${PORTNAME}
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --without-linuxthreads \
--without-jpeg-mmx
KMODDIR?= /boot/modules
.if ${KMODDIR} == /boot/kernel
KMODDIR= /boot/modules
.endif
SUB_FILES= pkg-message
PLIST_FILES= bin/motion \
man/man1/motion.1.gz \
"@sample ${ETCDIR}/motion.conf.sample" \
"@dir ${ETCDIR}/conf.d"
PORTDOCS= CHANGELOG CREDITS README.md README.FreeBSD \
motion_guide.html mask1.png normal.jpg \
outputmotion1.jpg outputnormal1.jpg
PORTEXAMPLES= camera1-dist.conf camera2-dist.conf \
camera3-dist.conf camera4-dist.conf
OPTIONS_DEFINE= DOCS EXAMPLES FFMPEG MYSQL PGSQL SQLITE3
OPTIONS_RADIO= VIDEO
OPTIONS_RADIO_VIDEO= BKTR PWCBSD
OPTIONS_DEFAULT= BKTR FFMPEG
VIDEO_DESC= Video capture driver (Netcam support only if none selected)
BKTR_DESC= BKTR based TV capture cards
BKTR_CONFIGURE_WITH= bktr
PWCBSD_DESC= PWCBSD based Webcams
PWCBSD_BUILD_DEPENDS= v4l_compat>=1.0.20060801:multimedia/v4l_compat
PWCBSD_RUN_DEPENDS= ${KMODDIR}/pwc.ko:multimedia/pwcbsd
PWCBSD_CONFIGURE_WITH= pwcbsd
FFMPEG_LIB_DEPENDS= libavformat.so:multimedia/ffmpeg
FFMPEG_CONFIGURE_ON= --with-ffmpeg=${LOCALBASE}
FFMPEG_CONFIGURE_OFF= --without-ffmpeg
MYSQL_USES= mysql
MYSQL_CONFIGURE_ON= --with-mysql-lib=${LOCALBASE}/lib/mysql \
--with-mysql-include=${LOCALBASE}/include/mysql
MYSQL_CONFIGURE_OFF= --without-mysql
PGSQL_USES= pgsql
PGSQL_CONFIGURE_ON= --with-pgsql-lib=${LOCALBASE}/lib \
--with-pgsql-include=${LOCALBASE}/include
PGSQL_CONFIGURE_OFF= --without-pgsql
SQLITE3_USES= sqlite:3
SQLITE3_CONFIGURE_WITH= sqlite3
.include <bsd.port.pre.mk>
.if ${JPEG_PORT} == "graphics/jpeg-turbo"
CONFIGURE_ARGS+= --with-jpeg-turbo=${LOCALBASE}
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/configure.ac
# Fix pidfile path
@${REINPLACE_CMD} -e \
's|/run/motion|/run|' ${WRKSRC}/motion-dist.conf.in
# Fix warnings about mismatched format specifiers (Fixed upstream in dbd7282)
@${REINPLACE_CMD} -e \
's|%hd|%d|g;s|%hu|%u|g;s|%Zu|%zu|g' ${WRKSRC}/webhttpd.c ${WRKSRC}/stream.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/motion ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/motion.1 ${STAGEDIR}${MANPREFIX}/man/man1
@${MKDIR} ${STAGEDIR}${ETCDIR}/conf.d
${INSTALL_DATA} ${WRKSRC}/motion-dist.conf \
${STAGEDIR}${ETCDIR}/motion.conf.sample
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
do-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/|} ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.post.mk>