1 | # $Id: Portfile,v 1.4 2006/03/28 04:05:08 yves Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup gnustep 1.0 |
---|
5 | |
---|
6 | name gnustep-base |
---|
7 | version 1.12.0 |
---|
8 | revision 1 |
---|
9 | platforms darwin |
---|
10 | maintainers yves@opendarwin.org |
---|
11 | |
---|
12 | description A library of general-purpose Objective C objects. |
---|
13 | long_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 | |
---|
23 | checksums md5 e2ab022f8312fbbc1a9cab938edf70c4 |
---|
24 | depends_lib port:gnustep-make port:libxslt port:openssl |
---|
25 | |
---|
26 | pre-extract { |
---|
27 | set fl [open "| grep -c gnu-gnu-gnu ${prefix}/GNUstep/System/Library/Makefiles/config.make"] |
---|
28 | set data [read $fl] |
---|
29 | if {[catch {close $fl} err]} { |
---|
30 | ui_msg "\n\n\ |
---|
31 | gnustep-base depends on 'gnustep-make +puredarwin'\n\ |
---|
32 | Please uninstall gnustep-make and reinstall with the proper variant\n\ |
---|
33 | " |
---|
34 | exit 1 |
---|
35 | } |
---|
36 | if { |
---|
37 | [catch {set ilist [registry_installed ${name}]} result ] && |
---|
38 | [variant_isset with_docs] |
---|
39 | } then { |
---|
40 | ui_msg "\n\nWARNING\n\ |
---|
41 | gnustep-base documentation depends on gnustep-base ... \n\ |
---|
42 | You must install gnustep-base before trying to install\ |
---|
43 | gnustep-base +with_docs\n\n" |
---|
44 | exit 1 |
---|
45 | } |
---|
46 | } |
---|
47 | |
---|
48 | use_configure yes |
---|
49 | configure.args CC=gcc-dp-4.1 |
---|
50 | |
---|
51 | platform powerpc { |
---|
52 | configure.args-append --with-ffi-include=${prefix}/include/gcc41 \ |
---|
53 | --with-ffi-library=${prefix}/lib/gcc41 |
---|
54 | } |
---|
55 | |
---|
56 | platform x86 { |
---|
57 | depends_lib-append port:ffcall |
---|
58 | } |
---|
59 | |
---|
60 | platform darwin { |
---|
61 | build.args-append GUI_LIBS="" |
---|
62 | destroot.keepdirs ${destroot}${prefix}/var/run |
---|
63 | |
---|
64 | post-destroot { |
---|
65 | file rename ${destroot}${prefix}/GNUstep/System/Tools/defaults \ |
---|
66 | ${destroot}${prefix}/GNUstep/System/Tools/gdefaults |
---|
67 | } |
---|
68 | post-install { |
---|
69 | ui_msg "\n\n\ |
---|
70 | **** GNUstep 'defaults' tool is renamed 'gdefaults' to avoid\ |
---|
71 | overriding Apple's defaults tool. *****\n\n" |
---|
72 | } |
---|
73 | |
---|
74 | startupitem.create yes |
---|
75 | startupitem.name gdomap |
---|
76 | startupitem.pidfile cleanup |
---|
77 | startupitem.start \ |
---|
78 | "GNUSTEP_SYSTEM_ROOT=${prefix}/GNUstep/System" \ |
---|
79 | "\[ -f \$GNUSTEP_SYSTEM_ROOT/Tools/gdomap \] && \\" \ |
---|
80 | "\$GNUSTEP_SYSTEM_ROOT/Tools/gdomap -p -I ${prefix}/var/run/gdomap.pid" |
---|
81 | # startupitem.stop \ |
---|
82 | # "\[ -r ${prefix}/var/run/gdomap.pid \] && \\" \ |
---|
83 | # "kill -9 `cat ${prefix}/var/run/gdomap.pid` && \\" \ |
---|
84 | # "rm -f ${prefix}/var/run/gdomap.pid" |
---|
85 | } |
---|
86 | |
---|