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

Last change on this file since 44284 was 44284, checked in by ryandesign@…, 11 years ago

gnustep-make: gnustep_layout should only be automatically selected if the user has not already requested fhs_layout

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