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

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

GNustep base now uses ffcall on ppc as suggested by W. Lux.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Portfile 22988 2007-03-21 04:38:47Z yves@macports.org $
2
3PortSystem   1.0
4PortGroup   gnustep 1.0
5
6name        gnustep-base
7version     1.13.1
8revision        1
9platforms   darwin
10maintainers yves@macports.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 bdc92ab7048cd1ee8c18957b750686b5
24depends_lib   port:ffcall 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
39patchfiles      base.patch
40post-patch {
41    reinplace "s|CODING-STANDARDS|GS-CODING-STANDARDS|g" \
42        ${worksrcpath}/Documentation/GNUmakefile
43}
44
45use_configure   yes
46configure.args-append   LDFLAGS=-L${prefix}/lib
47
48destroot.keepdirs    ${destroot}${prefix}/var/run
49
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
63platform powerpc {
64        variant with_ffi {
65        configure.args-append \
66                --enable-libffi \
67                --with-ffi-include=${prefix}/include/gcc41 \
68            --with-ffi-library=${prefix}/lib/gcc41
69    }
70}
71
72platform darwin {
73    build.args-append    GUI_LIBS=""
74   
75    post-destroot {
76        cd ${destroot}${prefix}/GNUstep/System
77        file rename Tools/defaults Tools/gdefaults
78        file rename Library/Documentation/man/man1/defaults.1.gz \
79            Library/Documentation/man/man1/gdefaults.1.gz
80    }
81    post-install {
82        ui_msg "\n\n\
83            **** GNUstep 'defaults' tool is renamed 'gdefaults' to avoid\
84            overriding Apple's defaults tool. *****\n\n"
85    }
86}
Note: See TracBrowser for help on using the repository browser.