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

Last change on this file since 32265 was 32265, checked in by ryandesign@…, 13 years ago

gnustep-base: use ffi by default now instead of ffcall because ffcall doesn't seem to work properly as of Mac OS X 10.4; see #13693

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 KB
RevLine 
[20307]1# $Id: Portfile 32265 2007-12-23 12:30:16Z ryandesign@macports.org $
[17783]2
[26263]3PortSystem 1.0
[17783]4PortGroup   gnustep 1.0
5
6name        gnustep-base
[26263]7version     1.14.0
[17783]8platforms   darwin
[30229]9maintainers nomaintainer
[17783]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
[26263]22checksums           md5 10a24a5568c5505c4b7480f170733d4d
[17783]23
[32265]24depends_lib         port:gnustep-make \
[26263]25                    port:libxslt \
26                    port:openssl
27
28use_configure       yes
29
30destroot.keepdirs   ${destroot}${prefix}/var/run
31
[17783]32pre-extract {
[26263]33    if { [variant_isset with_docs] &&
34            [catch {set ilist [registry_installed ${name}]} result ]           
[17783]35    } then {
[27243]36        return -code error "
37       
[26263]38            gnustep-base documentation depends on gnustep-base ...
[17783]39            You must install gnustep-base before trying to install\
[26263]40            gnustep-base +with_docs
41        "
[17783]42    }
43}
44
[22988]45post-patch {
[17783]46    reinplace "s|CODING-STANDARDS|GS-CODING-STANDARDS|g" \
47        ${worksrcpath}/Documentation/GNUmakefile
48}
49
[22988]50startupitem.create  yes
51startupitem.name        gdomap
52set my_pid          ${prefix}/var/run/gdomap.pid
53startupitem.start   \
54    "GNUSTEP_SYSTEM_ROOT=${prefix}/GNUstep/System" \
55    "\[ -f \$GNUSTEP_SYSTEM_ROOT/Tools/gdomap \] && \\" \
56    "rm -f ${my_pid} && \\" \
57    "\$GNUSTEP_SYSTEM_ROOT/Tools/gdomap -p -I ${my_pid}"
58startupitem.stop    \
59    "\[ -r ${prefix}/var/run/gdomap.pid \] && \\" \
60    "kill -9 `cat ${my_pid}` && \\" \
61    "rm -f ${my_pid}"
62
[32265]63
64if { ![variant_isset ffcall] } {
65    default_variants +ffi
66}
67
68variant ffi description conflicts ffcall {Build with ffi (default)} {
69    depends_lib-append port:libffi
[26263]70    configure.args-append \
[32265]71        --enable-libffi \
72        --with-ffi-include=${prefix}/include/gcc42 \
[26263]73        --with-ffi-library=${prefix}/lib/gcc42
[17783]74}
75
[32265]76variant ffcall conflicts ffi description {Build with ffcall} {
77    depends_lib-append port:ffcall
78    configure.args-append \
79        --enable-ffcall
80}
81
[17783]82platform darwin {
83    post-destroot {
[32264]84        set system_dir ${destroot}${prefix}/GNUstep/System
85        file rename ${system_dir}/Tools/defaults ${system_dir}/Tools/gdefaults
86        file rename ${system_dir}/Library/Documentation/man/man1/defaults.1.gz \
87            ${system_dir}/Library/Documentation/man/man1/gdefaults.1.gz
[17783]88    }
89    post-install {
[26263]90        ui_msg "
[17783]91            **** GNUstep 'defaults' tool is renamed 'gdefaults' to avoid\
[26263]92            overriding Apple's defaults tool. *****
93        "
[17783]94    }
95}
Note: See TracBrowser for help on using the repository browser.