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

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

gnustep-make: put back destroot.violate_mtree because this doesn't use the gnustep portgroup; see #16383

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Portfile 61474 2009-12-12 17:00:52Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            gnustep-make
6version         2.2.0
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     3d2d06d3313432fc82e6b09c49fb7f8a \
22                    sha1    35654bab0a6576084e486e062e7e42603026509d \
23                    rmd160  6c020432fbce9f018b01d85935e5235b874fd88e
24
25destroot.violate_mtree yes
26
27universal_variant   no
28depends_lib         port:gcc42
29configure.compiler  macports-gcc-4.2
30
31configure.args      CC=gcc-mp-4.2 \
32                    --with-library-combo=gnu-gnu-gnu \
33                    --with-objc-lib-flag=-lobjc-gnu
34
35destroot.args       messages=yes
36
37if {![variant_isset fhs_layout]} {
38    default_variants    +gnustep_layout
39}
40
41# for the curious only, not really supported by MacPorts
42variant fhs_layout conflicts gnustep_layout {
43    configure.args-append   --with-layout=fhs \
44                            --with-config-file=${prefix}/etc/GNUstep.conf
45    post-patch {
46        reinplace "s|=/man|=/share/man|g" \
47            ${worksrcpath}/FilesystemLayouts/fhs
48        reinplace "s|=/info|=/share/info|g" \
49            ${worksrcpath}/FilesystemLayouts/fhs
50    }
51}
52
53variant gnustep_layout conflicts fhs_layout {
54    configure.pre_args      --prefix=${prefix}/GNUstep
55    configure.args-append   \
56        --with-config-file=${prefix}/GNUstep/System/Library/GNUstep.conf
57
58    destroot.keepdirs       ${destroot}${prefix}/GNUstep/Local
59
60    post-install {
61        ui_msg "
62##########################################################
63To have a fully working GNUstep make system, please add
64'. ${prefix}/GNUstep/System/Library/Makefiles/GNUstep.sh'
65to your shell login (in ~/.profile)
66
67You may also want to set up your MANPATH :
68export MANPATH=\$GNUSTEP_LOCAL_ROOT/Library/Documentation/man:\$GNUSTEP_SYSTEM_ROOT/Library/Documentation/man:${prefix}/share/man:/usr/share/man
69##########################################################
70        "
71    }
72}
73
74platform darwin {
75    post-patch {
76        reinplace "s|/home|/Users|g" \
77            ${worksrcpath}/FilesystemLayouts/gnustep \
78            ${worksrcpath}/FilesystemLayouts/fhs
79    }
80}
Note: See TracBrowser for help on using the repository browser.