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

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

policykit: reconfigure using autogen.sh for intltool 0.51 compatibility.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 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 134340 2015-03-23 13:38:16Z devans@macports.org $
3
4PortSystem      1.0
5PortGroup       gobject_introspection 1.0
6
7name            policykit
8version         0.112
9revision        1
10description     PolicyKit is an application-level toolkit for defining and \
11                handling the policy that allows unprivileged processes to \
12                speak to privileged processes
13long_description \
14                ${description}
15maintainers     devans openmaintainer
16categories      security
17platforms       darwin
18license         LGPL-2+
19homepage        http://www.freedesktop.org/Software/polkit
20master_sites    http://www.freedesktop.org/software/polkit/releases/
21
22distname        polkit-${version}
23
24checksums       rmd160  0fecdcbfffe5f79dbb44f38dee9c4f060d60e7b1 \
25                sha256  d695f43cba4748a822fbe864dd32c4887c5da1c71694a47693ace5e88fcf6af6
26
27depends_build-append \
28                port:pkgconfig \
29                port:intltool \
30                port:gtk-doc \
31                port:autoconf \
32                port:automake \
33                port:libtool
34
35depends_lib     path:lib/pkgconfig/glib-2.0.pc:glib2 \
36                port:mozjs17
37
38patchfiles      patch-configure.ac.diff \
39                patch-setnetgrent-returns-void.diff \
40                patch-no-sigpoll.diff \
41                patch-no-tests.diff
42
43gobject_introspection yes
44
45pre-patch {
46    if {${os.platform} eq "darwin" && ${os.major} < 10} {
47        patchfiles-append patch-fdatasync.diff
48        reinplace "s|security/pam|pam/pam|" ${worksrcpath}/configure.ac \
49            ${worksrcpath}/src/polkitagent/polkitagenthelper-pam.c \
50            ${worksrcpath}/src/programs/pkexec.c
51    }
52}
53
54# reconfigure using autogen.sh for intltool 0.51 compatibility
55
56post-patch {
57    xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
58}
59
60configure.cmd   ./autogen.sh
61
62configure.cflags-append -I/usr/include
63configure.ldflags-append -L/usr/lib
64
65configure.args  --with-authfw=pam \
66                --with-pam-prefix=/etc/pam.d \
67                --with-pam-module-dir=/usr/lib/pam \
68                --with-mozjs=mozjs-17.0 \
69                --enable-systemd=no \
70                --disable-silent-rules \
71                --enable-man-pages \
72                --disable-gtk-doc
73
74destroot.keepdirs \
75                ${destroot}${prefix}/etc/polkit-1/localauthority \
76                ${destroot}${prefix}/var/lib/polkit-1
77
78variant docs description {Build API docs using gtk-doc} {
79        configure.args-delete --disable-gtk-doc
80        depends_build-append  port:gtk-doc
81}
82
83add_users       polkituser group=polkituser realname=Policy\ Kit
84
85livecheck.type  regex
86livecheck.url   ${master_sites}
87livecheck.regex "polkit-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.