source: trunk/dports/security/policykit/Portfile @ 126997

Last change on this file since 126997 was 126997, checked in by devans@…, 5 years ago

policykit: explicitly configure to use mozjs17 to avoid linking with spidermonkey185 if installed (#45426).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 126997 2014-10-18 21:45:11Z devans@macports.org $
3
4PortSystem      1.0
5
6name            policykit
7version         0.112
8revision        1
9description     PolicyKit is an application-level toolkit for defining and \
10                handling the policy that allows unprivileged processes to \
11                speak to privileged processes
12long_description \
13                ${description}
14maintainers     devans openmaintainer
15categories      security
16platforms       darwin
17license         LGPL-2+
18homepage        http://www.freedesktop.org/Software/polkit
19master_sites    http://www.freedesktop.org/software/polkit/releases/
20
21distname        polkit-${version}
22
23checksums       rmd160  0fecdcbfffe5f79dbb44f38dee9c4f060d60e7b1 \
24                sha256  d695f43cba4748a822fbe864dd32c4887c5da1c71694a47693ace5e88fcf6af6
25
26depends_build-append \
27                port:pkgconfig \
28                port:intltool \
29                port:gtk-doc
30
31depends_lib     path:lib/pkgconfig/glib-2.0.pc:glib2 \
32                port:gobject-introspection \
33                port:mozjs17
34
35patchfiles      patch-configure.ac.diff \
36                patch-setnetgrent-returns-void.diff \
37                patch-no-sigpoll.diff \
38                patch-no-tests.diff
39
40pre-patch {
41    if {${os.platform} eq "darwin" && ${os.major} < 10} {
42        patchfiles-append patch-fdatasync.diff
43        reinplace "s|security/pam|pam/pam|" ${worksrcpath}/configure.ac \
44            ${worksrcpath}/src/polkitagent/polkitagenthelper-pam.c \
45            ${worksrcpath}/src/programs/pkexec.c
46    }
47}
48
49# autoreconf to reconfigure with our intltool.m4
50
51use_autoreconf  yes
52autoreconf.args -fvi
53
54configure.cflags-append -I/usr/include
55configure.ldflags-append -L/usr/lib
56
57configure.args  --with-authfw=pam \
58                --with-pam-prefix=/etc/pam.d \
59                --with-pam-module-dir=/usr/lib/pam \
60                --with-mozjs=mozjs-17.0 \
61                --enable-systemd=no \
62                --enable-introspection \
63                --disable-silent-rules \
64                --enable-man-pages \
65                --disable-gtk-doc
66
67# gobject-introspection uses g-ir-scanner, which uses $CC from env
68build.args-append       CC="${configure.cc} ${configure.cc_archflags}"
69
70destroot.keepdirs \
71                ${destroot}${prefix}/etc/polkit-1/localauthority \
72                ${destroot}${prefix}/var/lib/polkit-1
73
74variant docs description {Build API docs using gtk-doc} {
75        configure.args-delete --disable-gtk-doc
76        depends_build-append  port:gtk-doc
77}
78
79add_users       polkituser group=polkituser realname=Policy\ Kit
80
81livecheck.type  regex
82livecheck.url   ${master_sites}
83livecheck.regex "polkit-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.