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

Last change on this file since 21575 was 21575, checked in by yves@…, 14 years ago

gnustep base 1.13.1

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Portfile 21575 2007-01-29 14:44:07Z yves@macports.org $
2
3PortSystem   1.0
4PortGroup   gnustep 1.0
5
6name        gnustep-base
7version     1.13.1
8platforms   darwin
9maintainers yves@macports.org
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 531fd8a391d0159c6123e5dbb432a758
23depends_lib   port:gnustep-make port:libxslt port:openssl
24
25pre-extract {
26    if {
27         [catch {set ilist [registry_installed ${name}]} result ] &&
28            [variant_isset with_docs]
29    } then {
30        ui_msg "\n\nWARNING\n\
31            gnustep-base documentation depends on gnustep-base ... \n\
32            You must install gnustep-base before trying to install\
33            gnustep-base +with_docs\n\n"
34        exit 1
35    }
36}
37
38patch {
39    reinplace "s|CODING-STANDARDS|GS-CODING-STANDARDS|g" \
40        ${worksrcpath}/Documentation/GNUmakefile
41}
42
43use_configure   yes
44
45platform powerpc {
46    configure.args-append --with-ffi-include=${prefix}/include/gcc41 \
47                          --with-ffi-library=${prefix}/lib/gcc41
48}
49
50platform x86 {
51    depends_lib-append port:ffcall
52}
53
54platform darwin {
55    build.args-append    GUI_LIBS=""
56    destroot.keepdirs    ${destroot}${prefix}/var/run
57   
58    post-destroot {
59        cd ${destroot}${prefix}/GNUstep/System
60        file rename Tools/defaults Tools/gdefaults
61        file rename Library/Documentation/man/man1/defaults.1.gz \
62            Library/Documentation/man/man1/gdefaults.1.gz
63    }
64    post-install {
65        ui_msg "\n\n\
66            **** GNUstep 'defaults' tool is renamed 'gdefaults' to avoid\
67            overriding Apple's defaults tool. *****\n\n"
68    }
69
70    startupitem.create  yes
71    startupitem.name    gdomap
72    set my_pid          ${prefix}/var/run/gdomap.pid
73    startupitem.start   \
74        "GNUSTEP_SYSTEM_ROOT=${prefix}/GNUstep/System" \
75        "\[ -f \$GNUSTEP_SYSTEM_ROOT/Tools/gdomap \] && \\" \
76        "rm -f ${my_pid} && \\" \
77        "\$GNUSTEP_SYSTEM_ROOT/Tools/gdomap -p -I ${my_pid}"
78    startupitem.stop    \
79        "\[ -r ${prefix}/var/run/gdomap.pid \] && \\" \
80        "kill -9 `cat ${my_pid}` && \\" \
81        "rm -f ${my_pid}"
82}
83
Note: See TracBrowser for help on using the repository browser.