Ticket #49858: Portfile

File Portfile, 2.5 KB (added by florian@…, 9 years ago)

Portfile

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 113063 2013-11-07 10:53:14Z raimue@macports.org $
3
4PortSystem          1.0
5
6name                fakeroot
7version             1.20.2
8categories          sysutils
9platforms           darwin
10license             GPL-3+
11maintainers         eprofs.de:florian openmaintainer
12
13description         Tool for simulating superuser privileges
14long_description    A fork/clone of the main debian fakeroot \
15                    repository that includes enhanced Mac OS X \
16                    fakeroot support which has since been merged back \
17                    into that repository as of release 1.19-2. \
18                    fakeroot provides a fake root environment by means \
19                    of LD_PRELOAD and SYSV IPC (or TCP) trickery.
20
21homepage            http://wiki.debian.org/FakeRoot/
22
23master_sites        debian:f/${name}
24distname            ${name}_${version}.orig
25worksrcdir          ${name}-${version}
26
27use_bzip2           yes
28
29checksums           rmd160  9f193b56314b797d5c03447e86e7c63299f3c0aa \
30                    sha256  7c0a164d19db3efa9e802e0fc7cdfeff70ec6d26cdbdc4338c9c2823c5ea230c
31
32patchfiles          patch-libfakeroot.c.diff \
33                    patch-wrapfunc.inp.diff
34
35# Build settings adapted from instructions at
36# https://github.com/mackyle/fakeroot/blob/787d757/README_MACOSX.txt
37
38use_autoreconf      yes
39autoreconf.cmd      ./bootstrap
40autoreconf.pre_args
41autoreconf.args
42depends_build       port:autoconf port:automake port:libtool
43depends_skip_archcheck-append libtool
44
45default_variants    +universal
46variant_set         universal
47switch -- ${os.major} {
48    8 {
49        configure.universal_archs   x86_64 i386 ppc64 ppc
50        configure.cflags-append     -mmacosx-version-min=10.4
51    }
52    9 {
53        configure.universal_archs   x86_64 i386 ppc64 ppc
54        configure.ldflags-append    -Wl,-force_cpusubtype_ALL
55    }
56    10 {
57        configure.universal_archs   x86_64 i386 ppc
58        configure.cflags-append     -Wno-deprecated-declarations
59        configure.ldflags-append    -Wl,-force_cpusubtype_ALL
60    }
61    default {
62        configure.universal_archs   x86_64 i386
63        configure.cflags-append     -Wno-deprecated-declarations
64    }
65}
66
67configure.args      --disable-static
68
69test.run            yes
70test.target         check
71
72livecheck.type      regex
73livecheck.url       http://packages.debian.org/unstable/fakeroot
74livecheck.regex     {fakeroot \(([\d.]+)}