Lines 1-22
Link Here
|
1 |
# Created by: Angel Carpintero <ack@telefonica.net> |
1 |
# Created by: Angel Carpintero <ack@telefonica.net> |
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
|
|
4 |
# PORTNAME block |
4 |
PORTNAME= motion |
5 |
PORTNAME= motion |
5 |
PORTVERSION= 4.3.1 |
6 |
PORTVERSION= 4.3.2 |
6 |
DISTVERSIONPREFIX= release- |
7 |
DISTVERSIONPREFIX= release- |
7 |
CATEGORIES= multimedia |
8 |
CATEGORIES= multimedia |
8 |
|
9 |
|
|
|
10 |
# Maintainer block |
9 |
MAINTAINER= ports@blievers.net |
11 |
MAINTAINER= ports@blievers.net |
10 |
COMMENT= Motion detection application |
12 |
COMMENT= Motion detection application |
11 |
|
13 |
|
|
|
14 |
# License block |
12 |
LICENSE= GPLv2+ |
15 |
LICENSE= GPLv2+ |
13 |
LICENSE_FILE= ${WRKSRC}/doc/COPYING |
16 |
LICENSE_FILE= ${WRKSRC}/doc/COPYING |
14 |
|
17 |
|
|
|
18 |
# Dependencies |
15 |
LIB_DEPENDS= libwebp.so:graphics/webp \ |
19 |
LIB_DEPENDS= libwebp.so:graphics/webp \ |
16 |
libmicrohttpd.so:www/libmicrohttpd |
20 |
libmicrohttpd.so:www/libmicrohttpd |
17 |
|
21 |
|
|
|
22 |
# USES block |
18 |
USES= autoreconf gmake jpeg localbase pkgconfig gettext |
23 |
USES= autoreconf gmake jpeg localbase pkgconfig gettext |
19 |
|
24 |
|
|
|
25 |
KMODDIR?= /boot/modules |
26 |
.if ${KMODDIR} == /boot/kernel |
27 |
KMODDIR= /boot/modules |
28 |
.endif |
20 |
USE_GITHUB= yes |
29 |
USE_GITHUB= yes |
21 |
GH_ACCOUNT= Motion-Project |
30 |
GH_ACCOUNT= Motion-Project |
22 |
USE_RC_SUBR= ${PORTNAME} |
31 |
USE_RC_SUBR= ${PORTNAME} |
Lines 25-37
Link Here
|
25 |
CONFIGURE_ARGS= --without-linuxthreads \ |
34 |
CONFIGURE_ARGS= --without-linuxthreads \ |
26 |
--without-jpeg-mmx |
35 |
--without-jpeg-mmx |
27 |
|
36 |
|
28 |
KMODDIR?= /boot/modules |
37 |
# Standard bsd.port.mk variables |
29 |
.if ${KMODDIR} == /boot/kernel |
|
|
30 |
KMODDIR= /boot/modules |
31 |
.endif |
32 |
|
33 |
SUB_FILES= pkg-message |
38 |
SUB_FILES= pkg-message |
34 |
|
39 |
|
|
|
40 |
# Packaging list block |
35 |
PLIST_FILES= bin/motion \ |
41 |
PLIST_FILES= bin/motion \ |
36 |
man/man1/motion.1.gz \ |
42 |
man/man1/motion.1.gz \ |
37 |
"@sample ${ETCDIR}/motion.conf.sample" \ |
43 |
"@sample ${ETCDIR}/motion.conf.sample" \ |
Lines 41-65
Link Here
|
41 |
PORTEXAMPLES= camera1-dist.conf camera2-dist.conf \ |
47 |
PORTEXAMPLES= camera1-dist.conf camera2-dist.conf \ |
42 |
camera3-dist.conf camera4-dist.conf |
48 |
camera3-dist.conf camera4-dist.conf |
43 |
|
49 |
|
|
|
50 |
# Options definitions |
44 |
OPTIONS_DEFINE= DOCS EXAMPLES FFMPEG MYSQL PGSQL SQLITE3 |
51 |
OPTIONS_DEFINE= DOCS EXAMPLES FFMPEG MYSQL PGSQL SQLITE3 |
|
|
52 |
OPTIONS_DEFAULT= WEBCAMD FFMPEG |
45 |
OPTIONS_RADIO= VIDEO |
53 |
OPTIONS_RADIO= VIDEO |
46 |
OPTIONS_RADIO_VIDEO= BKTR PWCBSD WEBCAMD |
54 |
OPTIONS_RADIO_VIDEO= BKTR PWCBSD WEBCAMD |
47 |
OPTIONS_DEFAULT= WEBCAMD FFMPEG |
|
|
48 |
VIDEO_DESC= Video capture driver (Netcam support only if none selected) |
49 |
|
55 |
|
50 |
BKTR_DESC= BKTR based TV capture cards |
56 |
BKTR_DESC= BKTR based TV capture cards |
51 |
BKTR_CONFIGURE_WITH= bktr |
|
|
52 |
|
57 |
|
53 |
PWCBSD_DESC= PWCBSD based Webcams |
58 |
PWCBSD_DESC= PWCBSD based Webcams |
54 |
PWCBSD_BUILD_DEPENDS= v4l_compat>=1.0.20060801:multimedia/v4l_compat |
|
|
55 |
PWCBSD_RUN_DEPENDS= ${KMODDIR}/pwc.ko:multimedia/pwcbsd |
56 |
PWCBSD_CONFIGURE_WITH= pwcbsd |
57 |
|
59 |
|
|
|
60 |
VIDEO_DESC= Video capture driver (Netcam support only if none selected) |
58 |
WEBCAMD_DESC= Webcams using webcamd |
61 |
WEBCAMD_DESC= Webcams using webcamd |
59 |
WEBCAMD_BUILD_DEPENDS= v4l_compat>=1.0.20060801:multimedia/v4l_compat |
|
|
60 |
# note: all configure --with-pwcbsd does is not shut off v4l support |
61 |
WEBCAMD_CONFIGURE_WITH= pwcbsd |
62 |
|
62 |
|
|
|
63 |
BKTR_CONFIGURE_WITH= bktr |
63 |
FFMPEG_LIB_DEPENDS= libavformat.so:multimedia/ffmpeg |
64 |
FFMPEG_LIB_DEPENDS= libavformat.so:multimedia/ffmpeg |
64 |
FFMPEG_CONFIGURE_ON= --with-ffmpeg=${LOCALBASE} |
65 |
FFMPEG_CONFIGURE_ON= --with-ffmpeg=${LOCALBASE} |
65 |
FFMPEG_CONFIGURE_OFF= --without-ffmpeg |
66 |
FFMPEG_CONFIGURE_OFF= --without-ffmpeg |
Lines 74-82
Link Here
|
74 |
--with-pgsql-include=${LOCALBASE}/include |
75 |
--with-pgsql-include=${LOCALBASE}/include |
75 |
PGSQL_CONFIGURE_OFF= --without-pgsql |
76 |
PGSQL_CONFIGURE_OFF= --without-pgsql |
76 |
|
77 |
|
|
|
78 |
PWCBSD_BUILD_DEPENDS= v4l_compat>=1.0.20060801:multimedia/v4l_compat |
79 |
PWCBSD_RUN_DEPENDS= ${KMODDIR}/pwc.ko:multimedia/pwcbsd |
80 |
PWCBSD_CONFIGURE_WITH= pwcbsd |
81 |
|
77 |
SQLITE3_USES= sqlite:3 |
82 |
SQLITE3_USES= sqlite:3 |
78 |
SQLITE3_CONFIGURE_WITH= sqlite3 |
83 |
SQLITE3_CONFIGURE_WITH= sqlite3 |
79 |
|
84 |
|
|
|
85 |
WEBCAMD_BUILD_DEPENDS= v4l_compat>=1.0.20060801:multimedia/v4l_compat |
86 |
# note: all configure --with-pwcbsd does is not shut off v4l support |
87 |
WEBCAMD_CONFIGURE_WITH= pwcbsd |
88 |
|
80 |
.include <bsd.port.pre.mk> |
89 |
.include <bsd.port.pre.mk> |
81 |
|
90 |
|
82 |
.if ${JPEG_PORT} == "graphics/jpeg-turbo" |
91 |
.if ${JPEG_PORT} == "graphics/jpeg-turbo" |