Skip to content

Commit

Permalink
multimedia/motion: Update to 4.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ports@blievers.net authored and Tectu committed Oct 3, 2023
1 parent ebbe527 commit 9c67d51
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 58 deletions.
67 changes: 14 additions & 53 deletions multimedia/motion/Makefile
@@ -1,8 +1,7 @@
# PORTNAME block
PORTNAME= motion
PORTVERSION= 4.3.2
PORTREVISION= 8
DISTVERSIONPREFIX= release-
DISTVERSION= 4.5.1
CATEGORIES= multimedia

# Maintainer block
Expand All @@ -12,14 +11,14 @@ WWW= https://motion-project.github.io/

# License block
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/doc/COPYING
LICENSE_FILE= ${WRKSRC}/LICENSE

# Dependencies
LIB_DEPENDS= libwebp.so:graphics/webp \
libmicrohttpd.so:www/libmicrohttpd

# USES block
USES= autoreconf cpe gmake jpeg localbase pkgconfig gettext
USES= autoreconf cpe gmake jpeg localbase pkgconfig
CPE_VENDOR= ${PORTNAME}_project

USE_GITHUB= yes
Expand All @@ -28,29 +27,16 @@ USE_RC_SUBR= ${PORTNAME}

GNU_CONFIGURE= yes

CFLAGS+= -I${LOCALBASE}/ffmpeg4/include
LDFLAGS+= -L${LOCALBASE}/ffmpeg4/lib
CONFIGURE_ENV+= PKG_CONFIG_PATH="${LOCALBASE}/ffmpeg4/libdata/pkgconfig"
MAKE_ENV+= PKG_CONFIG_PATH="${LOCALBASE}/ffmpeg4/libdata/pkgconfig"

# Standard bsd.port.mk variables
SUB_FILES= pkg-message

# Packaging list block
PLIST_FILES= bin/motion \
man/man1/motion.1.gz \
"@sample ${ETCDIR}/motion.conf.sample" \
"@dir ${ETCDIR}/conf.d"
PORTDOCS= *

PORTEXAMPLES= camera1-dist.conf camera2-dist.conf \
camera3-dist.conf camera4-dist.conf

# Options definitions
OPTIONS_DEFINE= DOCS EXAMPLES FFMPEG MYSQL PGSQL SQLITE3
OPTIONS_DEFINE= DOCS EXAMPLES FFMPEG MYSQL PGSQL SQLITE3 NLS

OPTIONS_DEFAULT= WEBCAMD FFMPEG
OPTIONS_RADIO= VIDEO
OPTIONS_RADIO_VIDEO= BKTR PWCBSD WEBCAMD
OPTIONS_SUB= yes

BKTR_DESC= BKTR based TV capture cards

Expand All @@ -61,18 +47,17 @@ WEBCAMD_DESC= Webcams using webcamd

BKTR_CONFIGURE_WITH= bktr

FFMPEG_LIB_DEPENDS= libavformat.so.58:multimedia/ffmpeg4
FFMPEG_CONFIGURE_ON= --with-ffmpeg=${LOCALBASE}/ffmpeg4
FFMPEG_CONFIGURE_OFF= --without-ffmpeg
FFMPEG_LIB_DEPENDS= libavformat.so.60:multimedia/ffmpeg
FFMPEG_CONFIGURE_WITH= ffmpeg

MYSQL_USES= mysql
MYSQL_CONFIGURE_ON= --with-mysql=${LOCALBASE}/include/mysql
MYSQL_CONFIGURE_OFF= --without-mysql
MYSQL_CONFIGURE_WITH= mysql

NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls

PGSQL_USES= pgsql
PGSQL_CONFIGURE_ON= --with-pgsql-lib=${LOCALBASE}/lib \
--with-pgsql-include=${LOCALBASE}/include
PGSQL_CONFIGURE_OFF= --without-pgsql
PGSQL_CONFIGURE_WITH= pgsql

PWCBSD_BUILD_DEPENDS= v4l_compat>=1.0.20060801:multimedia/v4l_compat
PWCBSD_RUN_DEPENDS= pwcbsd>0:multimedia/pwcbsd
Expand All @@ -85,28 +70,4 @@ WEBCAMD_BUILD_DEPENDS= v4l_compat>=1.0.20060801:multimedia/v4l_compat
# note: all configure --with-pwcbsd does is not shut off v4l support
WEBCAMD_CONFIGURE_WITH= pwcbsd

.include <bsd.port.pre.mk>

post-patch:
@${REINPLACE_CMD} -e \
's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/configure.ac
# Fix pidfile path
@${REINPLACE_CMD} -e \
's|/run/motion|/run|' ${WRKSRC}/data/motion-dist.conf.in

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/motion ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/man/motion.1 ${STAGEDIR}${MANPREFIX}/man/man1
@${MKDIR} ${STAGEDIR}${ETCDIR}/conf.d
${INSTALL_DATA} ${WRKSRC}/data/motion-dist.conf \
${STAGEDIR}${ETCDIR}/motion.conf.sample

do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/* ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}

do-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/data/|} ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.post.mk>
.include <bsd.port.mk>
8 changes: 3 additions & 5 deletions multimedia/motion/distinfo
@@ -1,5 +1,3 @@
TIMESTAMP = 1695017850
SHA256 (Motion-Project-motion-release-4.3.2_GH0.tar.gz) = dafa4264b2d8e4778f8be5871f09b6c0ec710d5a836182c583469c18db944d70
SIZE (Motion-Project-motion-release-4.3.2_GH0.tar.gz) = 849378
SHA256 (af632f831127499ee541d9c719a930321718f294.patch) = 85dc0562c7dc358084c8c9556ebb8ef1592527d79f576f035f356bbdadf40c6c
SIZE (af632f831127499ee541d9c719a930321718f294.patch) = 890
TIMESTAMP = 1694746910
SHA256 (Motion-Project-motion-release-4.5.1_GH0.tar.gz) = 0c824276bb23565b7cf10409ebdcb46b85fb1f6abca957252e52290bb1fe473e
SIZE (Motion-Project-motion-release-4.5.1_GH0.tar.gz) = 856665
31 changes: 31 additions & 0 deletions multimedia/motion/pkg-plist
@@ -0,0 +1,31 @@
bin/motion
man/man1/motion.1.gz
%%ETCDIR%%/camera1-dist.conf
%%ETCDIR%%/camera2-dist.conf
%%ETCDIR%%/camera3-dist.conf
%%ETCDIR%%/camera4-dist.conf
%%ETCDIR%%/motion-dist.conf
%%PORTDOCS%%%%DOCSDIR%%/CREDITS
%%PORTDOCS%%%%DOCSDIR%%/mask1.png
%%PORTDOCS%%%%DOCSDIR%%/motion_build.html
%%PORTDOCS%%%%DOCSDIR%%/motion_config.html
%%PORTDOCS%%%%DOCSDIR%%/motion_guide.html
%%PORTDOCS%%%%DOCSDIR%%/motion_stylesheet.css
%%PORTDOCS%%%%DOCSDIR%%/normal.jpg
%%PORTDOCS%%%%DOCSDIR%%/outputmotion1.jpg
%%PORTDOCS%%%%DOCSDIR%%/outputnormal1.jpg
%%NLS%%share/locale/da/LC_MESSAGES/motion.mo
%%NLS%%share/locale/de/LC_MESSAGES/motion.mo
%%NLS%%share/locale/es/LC_MESSAGES/motion.mo
%%NLS%%share/locale/fi/LC_MESSAGES/motion.mo
%%NLS%%share/locale/fr/LC_MESSAGES/motion.mo
%%NLS%%share/locale/it/LC_MESSAGES/motion.mo
%%NLS%%share/locale/ja/LC_MESSAGES/motion.mo
%%NLS%%share/locale/ko/LC_MESSAGES/motion.mo
%%NLS%%share/locale/li/LC_MESSAGES/motion.mo
%%NLS%%share/locale/nl/LC_MESSAGES/motion.mo
%%NLS%%share/locale/no/LC_MESSAGES/motion.mo
%%NLS%%share/locale/pt/LC_MESSAGES/motion.mo
%%NLS%%share/locale/sk/LC_MESSAGES/motion.mo
%%NLS%%share/locale/sv/LC_MESSAGES/motion.mo
%%NLS%%share/locale/zh/LC_MESSAGES/motion.mo

0 comments on commit 9c67d51

Please sign in to comment.