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

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

use supported_archs unconditionally, since MacPorts 1.9 has been out for awhile now

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
RevLine 
[20307]1# $Id: Portfile 70583 2010-08-14 13:56:39Z ryandesign@macports.org $
[17763]2
[26263]3PortSystem 1.0
[40990]4
[26263]5name            gnustep-make
[53602]6version         2.2.0
[26263]7categories      gnustep devel cross
8platforms       darwin
[30229]9maintainers     nomaintainer
[70583]10supported_archs noarch
[17763]11
[40990]12homepage        http://www.gnustep.org/
[26263]13description     GNUstep makefile package
[17763]14long_description \
15    The GNUstep makefile package is a simple, powerful and extensible way to \
[26263]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.
[17763]20
[26263]21master_sites        gnustep:core
[53602]22checksums           md5     3d2d06d3313432fc82e6b09c49fb7f8a \
23                    sha1    35654bab0a6576084e486e062e7e42603026509d \
24                    rmd160  6c020432fbce9f018b01d85935e5235b874fd88e
[17781]25
[61474]26destroot.violate_mtree yes
27
[61049]28depends_lib         port:gcc42
29configure.compiler  macports-gcc-4.2
[17763]30
[26263]31configure.args      CC=gcc-mp-4.2 \
[53602]32                    --with-library-combo=gnu-gnu-gnu \
33                    --with-objc-lib-flag=-lobjc-gnu
[17763]34
[26263]35destroot.args       messages=yes
[17763]36
[44284]37if {![variant_isset fhs_layout]} {
38    default_variants    +gnustep_layout
39}
[17763]40
[26263]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}
[17763]52
[44284]53variant gnustep_layout conflicts fhs_layout {
[26263]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 :
[50572]68export MANPATH=\$GNUSTEP_LOCAL_ROOT/Library/Documentation/man:\$GNUSTEP_SYSTEM_ROOT/Library/Documentation/man:${prefix}/share/man:/usr/share/man
[26263]69##########################################################
70        "
71    }
[17763]72}
[26263]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.