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

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

Add depends_skip_archcheck apple-gcc42; see #31584

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# $Id: Portfile 85585 2011-10-14 20:17:51Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            gnustep-make
6version         2.4.0
7categories      gnustep devel cross
8platforms       darwin
9license         GPL-3+
10maintainers     nomaintainer
11supported_archs noarch
12installs_libs   no
13
14homepage        http://www.gnustep.org/
15description     GNUstep makefile package
16long_description \
17    The GNUstep makefile package is a simple, powerful and extensible way to \
18    write makefiles for a GNUstep-based project.  It allows the user to \
19    write a project without having to deal with the complex issues \
20    associated with configuration, building, installation, and packaging. \
21    It also allows the user to easily create cross-compiled binaries.
22
23master_sites        gnustep:core
24checksums           md5     bc2138e6256665e55b00fb0ffac766f1 \
25                    sha1    afda14186394c65b0871dba93f92dc965b2fc724 \
26                    rmd160  6f1dd81039c9935e41eb7988923c3b3c6507e383
27
28destroot.violate_mtree yes
29
30platform darwin 8 {
31    depends_lib         port:apple-gcc42
32    depends_skip_archcheck apple-gcc42
33    configure.compiler  apple-gcc-4.2
34}
35platform darwin 9 {
36    configure.compiler  gcc-4.2
37}
38
39configure.args      CC=${configure.cc} \
40                    --with-library-combo=gnu-gnu-gnu \
41                    --with-objc-lib-flag=-lobjc-gnu
42
43destroot.args       messages=yes
44
45if {![variant_isset fhs_layout]} {
46    default_variants    +gnustep_layout
47}
48
49# for the curious only, not really supported by MacPorts
50variant fhs_layout conflicts gnustep_layout description {Use FHS layout (unsupported)} {
51    configure.args-append   --with-layout=fhs \
52                            --with-config-file=${prefix}/etc/GNUstep.conf
53    post-patch {
54        reinplace "s|=/man|=/share/man|g" \
55            ${worksrcpath}/FilesystemLayouts/fhs
56        reinplace "s|=/info|=/share/info|g" \
57            ${worksrcpath}/FilesystemLayouts/fhs
58    }
59}
60
61variant gnustep_layout conflicts fhs_layout description {Use standard GNUstep layout} {
62    configure.pre_args      --prefix=${prefix}/GNUstep
63    configure.args-append   \
64        --with-config-file=${prefix}/GNUstep/System/Library/GNUstep.conf
65
66    destroot.keepdirs       ${destroot}${prefix}/GNUstep/Local
67
68        notes "\
69##########################################################
70To have a fully working GNUstep make system, please add
71'. ${prefix}/GNUstep/System/Library/Makefiles/GNUstep.sh'
72to your shell login (in ~/.profile)
73
74You may also want to set up your MANPATH :
75export MANPATH=\$GNUSTEP_LOCAL_ROOT/Library/Documentation/man:\$GNUSTEP_SYSTEM_ROOT/Library/Documentation/man:${prefix}/share/man:/usr/share/man
76##########################################################
77"
78}
79
80platform darwin {
81    post-patch {
82        reinplace "s|/home|/Users|g" \
83            ${worksrcpath}/FilesystemLayouts/gnustep \
84            ${worksrcpath}/FilesystemLayouts/fhs
85    }
86}
Note: See TracBrowser for help on using the repository browser.