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

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

Fix the post-install phase

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Portfile 26292 2007-06-18 15:52:58Z 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        if {[file exists ${prefix}/share/darwinports]} {
61                xinstall -m 644 ${filespath}/gnustep-1.0.tcl \
62                        ${prefix}/share/darwinports/resources/port1.0/group
63        }
64        if {[file exists ${prefix}/share/macports]} {
65            xinstall -m 644 ${filespath}/gnustep-1.0.tcl \
66                ${prefix}/share/macports/resources/port1.0/group
67        }
68    }
69}
70
71platform darwin {
72    post-patch {
73        reinplace "s|/home|/Users|g" \
74            ${worksrcpath}/FilesystemLayouts/gnustep \
75            ${worksrcpath}/FilesystemLayouts/fhs
76    }
77}
Note: See TracBrowser for help on using the repository browser.