| @@ -1,24 +1,34 @@ | | | @@ -1,24 +1,34 @@ |
1 | # $NetBSD: options.mk,v 1.5 2016/12/01 11:08:56 martin Exp $ | | 1 | # $NetBSD: options.mk,v 1.6 2017/01/29 23:24:10 maya Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.gstreamer | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.gstreamer |
4 | PKG_SUPPORTED_OPTIONS= gstreamer-gstcheck introspection | | 4 | PKG_SUPPORTED_OPTIONS= gstreamer-gstcheck introspection ptp-suid |
5 | PKG_SUGGESTED_OPTIONS= introspection | | 5 | PKG_SUGGESTED_OPTIONS= introspection |
6 | | | 6 | |
7 | .include "../../mk/bsd.options.mk" | | 7 | .include "../../mk/bsd.options.mk" |
8 | | | 8 | |
9 | PLIST_VARS+= gstcheck introspection | | 9 | PLIST_VARS+= gstcheck introspection |
10 | .if !empty(PKG_OPTIONS:Mgstreamer-gstcheck) | | 10 | .if !empty(PKG_OPTIONS:Mgstreamer-gstcheck) |
11 | .include "../../devel/check/buildlink3.mk" | | 11 | .include "../../devel/check/buildlink3.mk" |
12 | PLIST.gstcheck= yes | | 12 | PLIST.gstcheck= yes |
13 | # don't worry if the "GstABI" check fails -- GstPlugin contains | | 13 | # don't worry if the "GstABI" check fails -- GstPlugin contains |
14 | # off_t and time_t which are system dependent | | 14 | # off_t and time_t which are system dependent |
15 | TEST_TARGET= check-torture | | 15 | TEST_TARGET= check-torture |
16 | .else | | 16 | .else |
17 | CONFIGURE_ARGS+=--disable-check | | 17 | CONFIGURE_ARGS+=--disable-check |
18 | .endif | | 18 | .endif |
19 | .if !empty(PKG_OPTIONS:Mintrospection) | | 19 | .if !empty(PKG_OPTIONS:Mintrospection) |
20 | .include "../../devel/gobject-introspection/buildlink3.mk" | | 20 | .include "../../devel/gobject-introspection/buildlink3.mk" |
21 | PLIST.introspection=yes | | 21 | PLIST.introspection=yes |
22 | .else | | 22 | .else |
23 | CONFIGURE_ARGS+=--disable-introspection | | 23 | CONFIGURE_ARGS+=--disable-introspection |
24 | .endif | | 24 | .endif |
| | | 25 | |
| | | 26 | # PTP network clock requires setuid root for gst-ptp-helper |
| | | 27 | # It's not useful enough to be a default, but left as an option |
| | | 28 | # for those interested in it. |
| | | 29 | .if !empty(PKG_OPTIONS:Mptp-suid) |
| | | 30 | SPECIAL_PERMS+= libexec/gstreamer-1.0/gst-ptp-helper ${SETUID_ROOT_PERMS} |
| | | 31 | CONFIGURE_ARGS+= --with-ptp-helper-permissions=setuid-root |
| | | 32 | .else |
| | | 33 | CONFIGURE_ARGS+= --with-ptp-helper-permissions=none |
| | | 34 | .endif |