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

Last change on this file since 102253 was 102253, checked in by jeremyhu@…, 7 years ago

gnustep-make: Use compiler.blacklist

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.2 KB
Line 
1# $Id: Portfile 102253 2013-01-29 16:53:04Z jeremyhu@macports.org $
2
3PortSystem 1.0
4
5name            gnustep-make
6version         2.6.1
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
24
25checksums           rmd160  a72970e1bf0fa93622981e991717714795cdb7a5 \
26                    sha256  c48b0a4c85eee4799b12cceeb327c470b168100cbcda4f111b1edad71f8762eb
27
28destroot.violate_mtree yes
29
30compiler.blacklist  gcc-4.0
31
32# TODO: base should do this: http://trac.macports.org/ticket/32542
33if {[info exists portconfigure::compiler_name_map(${configure.compiler})]} {
34    depends_build-append port:$portconfigure::compiler_name_map(${configure.compiler})
35
36    # base 2.1.x ignores the argument and just use ${configure.compiler}
37    if {[portconfigure::arch_flag_supported ${configure.compiler}]} {
38        depends_skip_archcheck-append $portconfigure::compiler_name_map(${configure.compiler})
39    }
40
41    if {[string match macports-gcc* ${configure.compiler}]} {
42        depends_lib-append port:$portconfigure::compiler_name_map(${configure.compiler})
43    }
44}
45
46configure.args      CC=${configure.cc} \
47                    --with-library-combo=gnu-gnu-gnu \
48                    --with-objc-lib-flag=-lobjc-gnu
49
50destroot.args       messages=yes
51
52if {![variant_isset fhs_layout]} {
53    default_variants    +gnustep_layout
54}
55
56# for the curious only, not really supported by MacPorts
57variant fhs_layout conflicts gnustep_layout description {Use FHS layout (unsupported)} {
58    configure.args-append   --with-layout=fhs \
59                            --with-config-file=${prefix}/etc/GNUstep.conf
60    post-patch {
61        reinplace "s|=/man|=/share/man|g" \
62            ${worksrcpath}/FilesystemLayouts/fhs
63        reinplace "s|=/info|=/share/info|g" \
64            ${worksrcpath}/FilesystemLayouts/fhs
65    }
66}
67
68variant gnustep_layout conflicts fhs_layout description {Use standard GNUstep layout} {
69    configure.pre_args      --prefix=${prefix}/GNUstep
70    configure.args-append   \
71        --with-config-file=${prefix}/GNUstep/System/Library/GNUstep.conf
72
73    destroot.keepdirs       ${destroot}${prefix}/GNUstep/Local
74
75        notes "\
76##########################################################
77To have a fully working GNUstep make system, please add
78'. ${prefix}/GNUstep/share/GNUstep/Makefiles/GNUstep.sh'
79to your shell login (in ~/.profile)
80
81You may also want to set up your MANPATH :
82export MANPATH=\$GNUSTEP_LOCAL_ROOT/Library/Documentation/man:\$GNUSTEP_SYSTEM_ROOT/Library/Documentation/man:${prefix}/share/man:/usr/share/man
83##########################################################
84"
85}
86
87platform darwin {
88    post-patch {
89        reinplace "s|/home|/Users|g" \
90            ${worksrcpath}/FilesystemLayouts/gnustep \
91            ${worksrcpath}/FilesystemLayouts/fhs
92    }
93}
Note: See TracBrowser for help on using the repository browser.