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

Last change on this file since 53602 was 53602, checked in by and.damore@…, 11 years ago

GNUstep core (make, base, gui, back) updated, remember to install freetype --without-old-mac-fonts and aspell +nonls (default on macosx platform)

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