Lines 1-6
Link Here
|
1 |
# PORTNAME block |
1 |
# PORTNAME block |
2 |
PORTNAME= motion |
2 |
PORTNAME= motion |
3 |
PORTVERSION= 4.3.2 |
3 |
DISTVERSION= 4.5.1 |
4 |
PORTREVISION= 8 |
4 |
PORTREVISION= 8 |
5 |
DISTVERSIONPREFIX= release- |
5 |
DISTVERSIONPREFIX= release- |
6 |
CATEGORIES= multimedia |
6 |
CATEGORIES= multimedia |
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-53
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 |
33 |
# Options definitions |
40 |
PLIST_FILES= bin/motion \ |
34 |
OPTIONS_DEFINE= DOCS EXAMPLES FFMPEG MYSQL PGSQL SQLITE3 NLS |
41 |
man/man1/motion.1.gz \ |
35 |
OPTIONS_SUB= yes |
42 |
"@sample ${ETCDIR}/motion.conf.sample" \ |
|
|
43 |
"@dir ${ETCDIR}/conf.d" |
44 |
PORTDOCS= * |
45 |
|
36 |
|
46 |
PORTEXAMPLES= camera1-dist.conf camera2-dist.conf \ |
37 |
NLS_USES= gettext |
47 |
camera3-dist.conf camera4-dist.conf |
38 |
NLS_CONFIGURE_ENABLE= nls |
48 |
|
39 |
|
49 |
# Options definitions |
|
|
50 |
OPTIONS_DEFINE= DOCS EXAMPLES FFMPEG MYSQL PGSQL SQLITE3 |
51 |
OPTIONS_DEFAULT= WEBCAMD FFMPEG |
40 |
OPTIONS_DEFAULT= WEBCAMD FFMPEG |
52 |
OPTIONS_RADIO= VIDEO |
41 |
OPTIONS_RADIO= VIDEO |
53 |
OPTIONS_RADIO_VIDEO= BKTR PWCBSD WEBCAMD |
42 |
OPTIONS_RADIO_VIDEO= BKTR PWCBSD WEBCAMD |
Lines 61-68
WEBCAMD_DESC= Webcams using webcamd
Link Here
|
61 |
|
50 |
|
62 |
BKTR_CONFIGURE_WITH= bktr |
51 |
BKTR_CONFIGURE_WITH= bktr |
63 |
|
52 |
|
64 |
FFMPEG_LIB_DEPENDS= libavformat.so.58:multimedia/ffmpeg4 |
53 |
FFMPEG_LIB_DEPENDS= libavformat.so.60:multimedia/ffmpeg |
65 |
FFMPEG_CONFIGURE_ON= --with-ffmpeg=${LOCALBASE}/ffmpeg4 |
54 |
FFMPEG_CONFIGURE_ON= --with-ffmpeg=${LOCALBASE}/ffmpeg |
66 |
FFMPEG_CONFIGURE_OFF= --without-ffmpeg |
55 |
FFMPEG_CONFIGURE_OFF= --without-ffmpeg |
67 |
|
56 |
|
68 |
MYSQL_USES= mysql |
57 |
MYSQL_USES= mysql |
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 |
|
78 |
|
112 |
.include <bsd.port.post.mk> |
|
|