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

Last change on this file since 45046 was 45046, checked in by jmr@…, 12 years ago

gnustep-make: don't use flat namespace (no rev bump, in before the index)

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