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

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

Indicate that all GNUstep ports (probably) violate the mtree; closes #16383

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Portfile 61469 2009-12-12 09:39:57Z 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
25universal_variant   no
26depends_lib         port:gcc42
27configure.compiler  macports-gcc-4.2
28
29configure.args      CC=gcc-mp-4.2 \
30                    --with-library-combo=gnu-gnu-gnu \
31                    --with-objc-lib-flag=-lobjc-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
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.