source: trunk/dports/gnustep/gnustep-base/Portfile @ 139229

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

misc: Change port:openssl dependency to path:lib/libssl.dylib:openssl

This should allow usage of libressl as a replacement for openssl in relevant
ports. Not all ports have been tested, but libressl aims for API
compatibility with OpenSSL, so it is expected to work.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 KB
Line 
1# $Id: Portfile 139229 2015-08-08 03:10:35Z jeremyhu@macports.org $
2
3PortSystem 1.0
4PortGroup   gnustep 1.0
5
6name                gnustep-base
7version             1.19.1
8revision            2
9platforms           darwin
10# libs are LGPL, tools are GPL
11license             {LGPL-3+ GPL-3+}
12maintainers         nomaintainer
13
14description         A library of general-purpose Objective C objects.
15long_description \
16    The GNUstep Base Library is a library of general-purpose, non-graphical \
17    Objective C objects.  For example, it includes classes for strings, \
18    object collections, byte streams, typed coders, invocations, \
19    notifications, notification dispatchers, moments in time, network ports, \
20    remote object messaging support (distributed objects), and event loops. \
21    \
22    It provides functionality that aims to implement the non-graphical \
23    portion of the OpenStep standard (the Foundation library).
24
25checksums           md5     100e433a7e0624a6e4e5727b87e48c82 \
26                    sha1    98d1881b44f412432547abd7504ad654dc9f711f \
27                    rmd160  056e1d1a40479eddf6cd93b452897896e869733e
28
29depends_lib         port:gnustep-make \
30                    port:libxslt \
31                    path:lib/libssl.dylib:openssl
32
33universal_variant   no
34
35use_configure       yes
36configure.env-append    LIBOBJC=-lobjc-gnu
37configure.args-append   --disable-tls
38
39destroot.keepdirs   ${destroot}${prefix}/var/run
40
41pre-extract {
42    if { [variant_isset with_docs] &&
43            [catch {set ilist [registry_installed ${name}]} result ]           
44    } then {
45        return -code error "
46       
47            gnustep-base documentation depends on gnustep-base ...
48            You must install gnustep-base before trying to install\
49            gnustep-base +with_docs
50        "
51    }
52}
53
54post-patch {
55    reinplace "s|CODING-STANDARDS|GS-CODING-STANDARDS|g" \
56        ${worksrcpath}/Documentation/GNUmakefile
57}
58
59startupitem.create  yes
60startupitem.name    gdomap
61set my_pid          ${prefix}/var/run/gdomap.pid
62startupitem.start   \
63    "GNUSTEP_SYSTEM_ROOT=${prefix}/GNUstep/System" \
64    "\[ -f \$GNUSTEP_SYSTEM_ROOT/Tools/gdomap \] && \\" \
65    "rm -f ${my_pid} && \\" \
66    "\$GNUSTEP_SYSTEM_ROOT/Tools/gdomap -p -I ${my_pid}"
67startupitem.stop    \
68    "\[ -r ${prefix}/var/run/gdomap.pid \] && \\" \
69    "kill -9 `cat ${my_pid}` && \\" \
70    "rm -f ${my_pid}"
71
72
73if { ![variant_isset ffcall] } {
74    default_variants +ffi
75}
76
77variant ffi description conflicts ffcall description {Build with ffi} {
78    depends_lib-append port:libffi
79    configure.args-append \
80        --enable-libffi \
81        --with-ffi-include=${prefix}/include/gcc42 \
82        --with-ffi-library=${prefix}/lib/gcc42
83}
84
85variant ffcall conflicts ffi description {Build with ffcall} {
86    depends_lib-append port:ffcall
87    configure.args-append \
88        --enable-ffcall
89}
90
91platform darwin {
92    patchfiles-append       patch-SSL-GNUMakefile.diff
93
94    post-destroot {
95        set system_dir ${destroot}${prefix}/GNUstep/Local
96        move ${system_dir}/Tools/defaults ${system_dir}/Tools/gdefaults
97        move ${system_dir}/Library/Documentation/man/man1/defaults.1.gz \
98            ${system_dir}/Library/Documentation/man/man1/gdefaults.1.gz
99    }
100    post-install {
101        ui_msg "
102            **** GNUstep 'defaults' tool is renamed 'gdefaults' to avoid\
103            overriding Apple's defaults tool. *****
104        "
105    }
106}
Note: See TracBrowser for help on using the repository browser.