source: trunk/dports/x11/imake/Portfile

Last change on this file was 128009, checked in by ionic@…, 3 years ago

imake: fix building in trace mode. tradcpp is also used at build time.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 128009 2014-11-10 20:35:29Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name         imake
7version      1.0.7
8categories   x11 devel
9license      X11
10installs_libs no
11platforms    darwin
12maintainers  mcalhoun openmaintainer
13
14description       Discontinued imake build system.
15long_description  ${description}
16
17homepage http://xorg.freedesktop.org/
18master_sites xorg:individual/util/
19
20use_bzip2 yes
21
22checksums           rmd160  7a8d7b830463c1c429a8ad8349324e607ea255fb \
23                    sha256  690c2c4ac1fad2470a5ea73156cf930b8040dc821a0da4e322014a42c045f37e
24
25depends_run    port:xorg-cf-files path:bin/perl:perl5
26depends_build  port:pkgconfig port:xorg-xproto
27
28if {${os.platform} eq "darwin" && ${os.major} >= 12} {
29    depends_lib-append port:tradcpp
30    set cppcmd ${prefix}/bin/tradcpp
31} else {
32    set cppcmd /usr/bin/cpp
33}
34
35configure.env-append RAWCPP=${cppcmd}
36
37patchfiles     patch-imakemdep.h.diff
38post-patch {
39    reinplace "s|::CPPCMD::|${cppcmd}|" ${worksrcpath}/imakemdep.h
40}
41
42configure.env-append  HAS_PERL=yes
43
44post-configure {
45    # Ensure that the MacPorts perl is used
46    reinplace \
47        "s|#!/usr/bin/perl|#!${prefix}/bin/perl|" \
48        ${worksrcpath}/mkhtmlindex.pl
49}
50
51livecheck.type   regex
52livecheck.url    "http://xorg.freedesktop.org/releases/individual/util/?C=M;O=D"
53livecheck.regex  ${name}-(\\d+(?:\\.\\d+)*)
Note: See TracBrowser for help on using the repository browser.