View | Details | Raw Unified | Return to bug 273810 | Differences between
and this patch

Collapse All | Expand All

(-)b/multimedia/motion/Makefile (-47 / +12 lines)
Lines 1-8 Link Here
1
# PORTNAME block
1
# PORTNAME block
2
PORTNAME=	motion
2
PORTNAME=	motion
3
PORTVERSION=	4.3.2
4
PORTREVISION=	8
5
DISTVERSIONPREFIX=	release-
3
DISTVERSIONPREFIX=	release-
4
DISTVERSION=	4.5.1
5
PORTREVISION=	8
6
CATEGORIES=	multimedia
6
CATEGORIES=	multimedia
7
7
8
# Maintainer block
8
# Maintainer block
Lines 12-25 WWW= https://motion-project.github.io/ Link Here
12
12
13
# License block
13
# License block
14
LICENSE=	GPLv2+
14
LICENSE=	GPLv2+
15
LICENSE_FILE=	${WRKSRC}/doc/COPYING
16
15
17
# Dependencies
16
# Dependencies
18
LIB_DEPENDS=	libwebp.so:graphics/webp \
17
LIB_DEPENDS=	libwebp.so:graphics/webp \
19
		libmicrohttpd.so:www/libmicrohttpd
18
		libmicrohttpd.so:www/libmicrohttpd
20
19
21
# USES block
20
# USES block
22
USES=		autoreconf cpe gmake jpeg localbase pkgconfig gettext
21
USES=		autoreconf cpe gmake jpeg localbase pkgconfig
23
CPE_VENDOR=	${PORTNAME}_project
22
CPE_VENDOR=	${PORTNAME}_project
24
23
25
USE_GITHUB=	yes
24
USE_GITHUB=	yes
Lines 28-56 USE_RC_SUBR= ${PORTNAME} Link Here
28
27
29
GNU_CONFIGURE=	yes
28
GNU_CONFIGURE=	yes
30
29
31
CFLAGS+=	-I${LOCALBASE}/ffmpeg4/include
32
LDFLAGS+=	-L${LOCALBASE}/ffmpeg4/lib
33
CONFIGURE_ENV+=	PKG_CONFIG_PATH="${LOCALBASE}/ffmpeg4/libdata/pkgconfig"
34
MAKE_ENV+=	PKG_CONFIG_PATH="${LOCALBASE}/ffmpeg4/libdata/pkgconfig"
35
36
# Standard bsd.port.mk variables
30
# Standard bsd.port.mk variables
37
SUB_FILES=	pkg-message
31
SUB_FILES=	pkg-message
38
32
39
# Packaging list block
40
PLIST_FILES=	bin/motion \
41
		man/man1/motion.1.gz \
42
		"@sample ${ETCDIR}/motion.conf.sample" \
43
		"@dir ${ETCDIR}/conf.d"
44
PORTDOCS=	*
45
46
PORTEXAMPLES=	camera1-dist.conf camera2-dist.conf \
47
		camera3-dist.conf camera4-dist.conf
48
49
# Options definitions
33
# Options definitions
50
OPTIONS_DEFINE=		DOCS EXAMPLES FFMPEG MYSQL PGSQL SQLITE3
34
OPTIONS_DEFINE=		DOCS EXAMPLES FFMPEG MYSQL PGSQL SQLITE3 NLS
35
51
OPTIONS_DEFAULT=	WEBCAMD FFMPEG
36
OPTIONS_DEFAULT=	WEBCAMD FFMPEG
52
OPTIONS_RADIO=		VIDEO
37
OPTIONS_RADIO=		VIDEO
53
OPTIONS_RADIO_VIDEO=	BKTR PWCBSD WEBCAMD
38
OPTIONS_RADIO_VIDEO=	BKTR PWCBSD WEBCAMD
39
OPTIONS_SUB=		yes
54
40
55
BKTR_DESC=		BKTR based TV capture cards
41
BKTR_DESC=		BKTR based TV capture cards
56
42
Lines 61-74 WEBCAMD_DESC= Webcams using webcamd Link Here
61
47
62
BKTR_CONFIGURE_WITH=	bktr
48
BKTR_CONFIGURE_WITH=	bktr
63
49
64
FFMPEG_LIB_DEPENDS=	libavformat.so.58:multimedia/ffmpeg4
50
FFMPEG_LIB_DEPENDS=	libavformat.so.60:multimedia/ffmpeg
65
FFMPEG_CONFIGURE_ON=	--with-ffmpeg=${LOCALBASE}/ffmpeg4
51
FFMPEG_CONFIGURE_ON=	--with-ffmpeg=${LOCALBASE}/ffmpeg
66
FFMPEG_CONFIGURE_OFF=	--without-ffmpeg
52
FFMPEG_CONFIGURE_OFF=	--without-ffmpeg
67
53
68
MYSQL_USES=		mysql
54
MYSQL_USES=		mysql
69
MYSQL_CONFIGURE_ON=	--with-mysql=${LOCALBASE}/include/mysql
55
MYSQL_CONFIGURE_ON=	--with-mysql=${LOCALBASE}/include/mysql
70
MYSQL_CONFIGURE_OFF=	--without-mysql
56
MYSQL_CONFIGURE_OFF=	--without-mysql
71
57
58
NLS_USES=		gettext
59
NLS_CONFIGURE_ENABLE=	nls
60
72
PGSQL_USES=		pgsql
61
PGSQL_USES=		pgsql
73
PGSQL_CONFIGURE_ON=	--with-pgsql-lib=${LOCALBASE}/lib \
62
PGSQL_CONFIGURE_ON=	--with-pgsql-lib=${LOCALBASE}/lib \
74
			--with-pgsql-include=${LOCALBASE}/include
63
			--with-pgsql-include=${LOCALBASE}/include
Lines 85-112 WEBCAMD_BUILD_DEPENDS= v4l_compat>=1.0.20060801:multimedia/v4l_compat Link Here
85
#  note: all configure --with-pwcbsd does is not shut off v4l support
74
#  note: all configure --with-pwcbsd does is not shut off v4l support
86
WEBCAMD_CONFIGURE_WITH=	pwcbsd
75
WEBCAMD_CONFIGURE_WITH=	pwcbsd
87
76
88
.include <bsd.port.pre.mk>
77
.include <bsd.port.mk>
89
90
post-patch:
91
	@${REINPLACE_CMD} -e \
92
		's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/configure.ac
93
# Fix pidfile path
94
	@${REINPLACE_CMD} -e \
95
		's|/run/motion|/run|' ${WRKSRC}/data/motion-dist.conf.in
96
97
do-install:
98
	${INSTALL_PROGRAM} ${WRKSRC}/src/motion ${STAGEDIR}${PREFIX}/bin
99
	${INSTALL_MAN} ${WRKSRC}/man/motion.1 ${STAGEDIR}${MANPREFIX}/man/man1
100
	@${MKDIR} ${STAGEDIR}${ETCDIR}/conf.d
101
	${INSTALL_DATA} ${WRKSRC}/data/motion-dist.conf \
102
		${STAGEDIR}${ETCDIR}/motion.conf.sample
103
104
do-install-DOCS-on:
105
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
106
	${INSTALL_DATA} ${WRKSRC}/doc/* ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
107
108
do-install-EXAMPLES-on:
109
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
110
	${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/data/|} ${STAGEDIR}${EXAMPLESDIR}
111
112
.include <bsd.port.post.mk>
(-)b/multimedia/motion/distinfo (-5 / +3 lines)
Lines 1-5 Link Here
1
TIMESTAMP = 1695017850
1
TIMESTAMP = 1694746910
2
SHA256 (Motion-Project-motion-release-4.3.2_GH0.tar.gz) = dafa4264b2d8e4778f8be5871f09b6c0ec710d5a836182c583469c18db944d70
2
SHA256 (Motion-Project-motion-release-4.5.1_GH0.tar.gz) = 0c824276bb23565b7cf10409ebdcb46b85fb1f6abca957252e52290bb1fe473e
3
SIZE (Motion-Project-motion-release-4.3.2_GH0.tar.gz) = 849378
3
SIZE (Motion-Project-motion-release-4.5.1_GH0.tar.gz) = 856665
4
SHA256 (af632f831127499ee541d9c719a930321718f294.patch) = 85dc0562c7dc358084c8c9556ebb8ef1592527d79f576f035f356bbdadf40c6c
5
SIZE (af632f831127499ee541d9c719a930321718f294.patch) = 890
(-)b/multimedia/motion/pkg-plist (+32 lines)
Added Link Here
1
bin/motion
2
man/man1/motion.1.gz
3
%%ETCDIR%%/camera1-dist.conf
4
%%ETCDIR%%/camera2-dist.conf
5
%%ETCDIR%%/camera3-dist.conf
6
%%ETCDIR%%/camera4-dist.conf
7
%%ETCDIR%%/motion-dist.conf
8
%%PORTDOCS%%%%DOCSDIR%%/CREDITS
9
%%PORTDOCS%%%%DOCSDIR%%/mask1.png
10
%%PORTDOCS%%%%DOCSDIR%%/motion_build.html
11
%%PORTDOCS%%%%DOCSDIR%%/motion_config.html
12
%%PORTDOCS%%%%DOCSDIR%%/motion_guide.html
13
%%PORTDOCS%%%%DOCSDIR%%/motion_stylesheet.css
14
%%PORTDOCS%%%%DOCSDIR%%/normal.jpg
15
%%PORTDOCS%%%%DOCSDIR%%/outputmotion1.jpg
16
%%PORTDOCS%%%%DOCSDIR%%/outputnormal1.jpg
17
%%NLS%%share/locale/da/LC_MESSAGES/motion.mo
18
%%NLS%%share/locale/de/LC_MESSAGES/motion.mo
19
%%NLS%%share/locale/es/LC_MESSAGES/motion.mo
20
%%NLS%%share/locale/fi/LC_MESSAGES/motion.mo
21
%%NLS%%share/locale/fr/LC_MESSAGES/motion.mo
22
%%NLS%%share/locale/it/LC_MESSAGES/motion.mo
23
%%NLS%%share/locale/ja/LC_MESSAGES/motion.mo
24
%%NLS%%share/locale/ko/LC_MESSAGES/motion.mo
25
%%NLS%%share/locale/li/LC_MESSAGES/motion.mo
26
%%NLS%%share/locale/nl/LC_MESSAGES/motion.mo
27
%%NLS%%share/locale/no/LC_MESSAGES/motion.mo
28
%%NLS%%share/locale/pt/LC_MESSAGES/motion.mo
29
%%NLS%%share/locale/sk/LC_MESSAGES/motion.mo
30
%%NLS%%share/locale/sv/LC_MESSAGES/motion.mo
31
%%NLS%%share/locale/zh/LC_MESSAGES/motion.mo
32

Return to bug 273810