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

Last change on this file since 17783 was 17783, checked in by yves, 14 years ago

Bug: 8139

gnustep-base

  • Property svn:eol-style set to native
File size: 2.5 KB
Line 
1# $Id: Portfile,v 1.1 2006/04/29 19:52:55 yves Exp $
2
3PortSystem   1.0
4PortGroup   gnustep 1.0
5
6name        gnustep-base
7version     1.12.0
8revision    1
9platforms   darwin
10maintainers yves@opendarwin.org
11
12description A library of general-purpose Objective C objects.
13long_description \
14    The GNUstep Base Library is a library of general-purpose, non-graphical \
15    Objective C objects.  For example, it includes classes for strings, \
16    object collections, byte streams, typed coders, invocations, \
17    notifications, notification dispatchers, moments in time, network ports, \
18    remote object messaging support (distributed objects), and event loops. \
19    \
20    It provides functionality that aims to implement the non-graphical \
21    portion of the OpenStep standard (the Foundation library).
22
23checksums     md5 e2ab022f8312fbbc1a9cab938edf70c4
24depends_lib   port:gnustep-make port:libxslt port:openssl
25
26pre-extract {
27    if {
28         [catch {set ilist [registry_installed ${name}]} result ] &&
29            [variant_isset with_docs]
30    } then {
31        ui_msg "\n\nWARNING\n\
32            gnustep-base documentation depends on gnustep-base ... \n\
33            You must install gnustep-base before trying to install\
34            gnustep-base +with_docs\n\n"
35        exit 1
36    }
37}
38
39patch {
40    reinplace "s|CODING-STANDARDS|GS-CODING-STANDARDS|g" \
41        ${worksrcpath}/Documentation/GNUmakefile
42}
43
44use_configure   yes
45
46platform powerpc {
47    configure.args-append --with-ffi-include=${prefix}/include/gcc41 \
48                          --with-ffi-library=${prefix}/lib/gcc41
49}
50
51platform x86 {
52    depends_lib-append port:ffcall
53}
54
55platform darwin {
56    build.args-append    GUI_LIBS=""
57    destroot.keepdirs    ${destroot}${prefix}/var/run
58   
59    post-destroot {
60        file rename ${destroot}${prefix}/GNUstep/System/Tools/defaults \
61            ${destroot}${prefix}/GNUstep/System/Tools/gdefaults
62    }
63    post-install {
64        ui_msg "\n\n\
65            **** GNUstep 'defaults' tool is renamed 'gdefaults' to avoid\
66            overriding Apple's defaults tool. *****\n\n"
67    }
68
69    startupitem.create  yes
70    startupitem.name    gdomap
71    set my_pid          ${prefix}/var/run/gdomap.pid
72    startupitem.start   \
73        "GNUSTEP_SYSTEM_ROOT=${prefix}/GNUstep/System" \
74        "\[ -f \$GNUSTEP_SYSTEM_ROOT/Tools/gdomap \] && \\" \
75        "rm -f ${my_pid} && \\" \
76        "\$GNUSTEP_SYSTEM_ROOT/Tools/gdomap -p -I ${my_pid}"
77    startupitem.stop    \
78        "\[ -r ${prefix}/var/run/gdomap.pid \] && \\" \
79        "kill -9 `cat ${my_pid}` && \\" \
80        "rm -f ${my_pid}"
81}
82
Note: See TracBrowser for help on using the repository browser.