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

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

gnustep-make: not universal... fixed gcc dependency to run

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# $Id: Portfile 43915 2008-12-17 07:37:56Z jeremyhu@macports.org $
2
3PortSystem 1.0
4
5name            gnustep-make
6version         2.0.1
7categories      gnustep devel cross
8platforms       darwin
9maintainers     nomaintainer
10dist_subdir     ${name}/${version}_1
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 6bed419109959c6664a99d4986f86706 \
23                    sha1 278cb6797dec94707082b9554b490f17abe268ae
24
25destroot.violate_mtree yes
26
27universal_variant   no
28depends_run         port:gcc42
29
30configure.args      CC=gcc-mp-4.2 \
31                    --with-library-combo=gnu-gnu-gnu
32
33destroot.args       messages=yes
34
35default_variants    +gnustep_layout
36
37# for the curious only, not really supported by MacPorts
38variant fhs_layout conflicts gnustep_layout {
39    configure.args-append   --with-layout=fhs \
40                            --with-config-file=${prefix}/etc/GNUstep.conf
41    post-patch {
42        reinplace "s|=/man|=/share/man|g" \
43            ${worksrcpath}/FilesystemLayouts/fhs
44        reinplace "s|=/info|=/share/info|g" \
45            ${worksrcpath}/FilesystemLayouts/fhs
46    }
47}
48
49variant gnustep_layout {
50    configure.pre_args      --prefix=${prefix}/GNUstep
51    configure.args-append   \
52        --with-config-file=${prefix}/GNUstep/System/Library/GNUstep.conf
53
54    destroot.keepdirs       ${destroot}${prefix}/GNUstep/Local
55
56    post-install {
57        ui_msg "
58##########################################################
59To have a fully working GNUstep make system, please add
60'. ${prefix}/GNUstep/System/Library/Makefiles/GNUstep.sh'
61to your shell login (in ~/.profile)
62
63You may also want to set up your MANPATH :
64export MANPATH=\$GNUSTEP_LOCAL_ROOT/Library/Documentation/man:\$GNUSTEP_SYSTEM_ROOT/Library/Documentation/man:${prefix}/share/man:/usr/share/man:/usr/X11R6/man
65##########################################################
66        "
67    }
68}
69
70platform darwin {
71    post-patch {
72        reinplace "s|/home|/Users|g" \
73            ${worksrcpath}/FilesystemLayouts/gnustep \
74            ${worksrcpath}/FilesystemLayouts/fhs
75    }
76}
Note: See TracBrowser for help on using the repository browser.