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

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

gnustep-make: match gnustep portgroup's compiler selection

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