source: trunk/dports/gnustep/gnustep-make/Portfile @ 26263

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

This is gnustep-make-2.0 and friends

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Portfile 26263 2007-06-17 22:01:27Z yves@macports.org $
2
3PortSystem 1.0
4name            gnustep-make
5version         2.0.1
6categories      gnustep devel cross
7platforms       darwin
8maintainers     yves@macports.org
9
10description     GNUstep makefile package
11long_description \
12    The GNUstep makefile package is a simple, powerful and extensible way to \
13    write makefiles for a GNUstep-based project.  It allows the user to \
14    write a project without having to deal with the complex issues \
15    associated with configuration, building, installation, and packaging. \
16    It also allows the user to easily create cross-compiled binaries.
17
18master_sites        gnustep:core
19checksums           md5 f268733ea23f53e211e3977e27b46098
20
21depends_lib         port:gcc42
22
23configure.args      CC=gcc-mp-4.2 \
24                    --with-library-combo=gnu-gnu-gnu
25
26destroot.args       messages=yes
27
28default_variants    +gnustep_layout
29
30# for the curious only, not really supported by MacPorts
31variant fhs_layout conflicts gnustep_layout {
32    configure.args-append   --with-layout=fhs \
33                            --with-config-file=${prefix}/etc/GNUstep.conf
34    post-patch {
35        reinplace "s|=/man|=/share/man|g" \
36            ${worksrcpath}/FilesystemLayouts/fhs
37        reinplace "s|=/info|=/share/info|g" \
38            ${worksrcpath}/FilesystemLayouts/fhs
39    }
40}
41
42variant gnustep_layout {
43    configure.pre_args      --prefix=${prefix}/GNUstep
44    configure.args-append   \
45        --with-config-file=${prefix}/GNUstep/System/Library/GNUstep.conf
46
47    destroot.keepdirs       ${destroot}${prefix}/GNUstep/Local
48
49    post-install {
50        ui_msg "
51##########################################################
52To have a fully working GNUstep make system, please add
53'. ${prefix}/GNUstep/System/Library/Makefiles/GNUstep.sh'
54to your shell login (in ~/.profile)
55
56You may also want to set up your MANPATH :
57export MANPATH=\$GNUSTEP_LOCAL_ROOT/Library/Documentation/man:\$GNUSTEP_SYSTEM_ROOT/Library/Documentation/man:${prefix}/share/man:/usr/share/man:/usr/X11R6/man
58##########################################################
59        "
60    }
61    if {[file exists ${prefix}/share/darwinports]} {
62        set res ${prefix}/share/darwinports/resources/port1.0/group
63    } elseif {[file exists ${prefix}/share/macports]} {
64        set res ${prefix}/share/macports/resources/port1.0/group
65    } else {
66        ui_error "Something is wrong with your MacPorts installation."
67        exit 1
68    }
69    xinstall -m 644 ${filespath}/gnustep-1.0.tcl $res
70}
71
72platform darwin {
73    post-patch {
74        reinplace "s|/home|/Users|g" \
75            ${worksrcpath}/FilesystemLayouts/gnustep \
76            ${worksrcpath}/FilesystemLayouts/fhs
77    }
78}
Note: See TracBrowser for help on using the repository browser.