source: trunk/dports/emulators/lisaem/Portfile

Last change on this file was 110360, checked in by ryandesign@…, 4 years ago

lisaem: fix destroot if done separately from build

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 110360 2013-08-30 16:52:45Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               wxWidgets 1.0
6
7name                    lisaem
8version                 1.2.6
9revision                2
10maintainers             ryandesign
11platforms               darwin
12categories              emulators
13license                 GPL-2
14homepage                http://lisa.sunder.net/
15master_sites            ${homepage}downloads/
16use_bzip2               yes
17use_parallel_build      no
18
19description \
20    Apple Lisa emulator
21
22long_description \
23    ${description}
24
25checksums \
26    md5 b236d7fa06c7589bb0de5d13ed680c9a \
27    sha1 c3552eb2fc89ff6e47994767aa4e524de7000dc7 \
28    rmd160 bc541ef181b417ee369ed960f29637f87cc1308a
29
30patchfiles \
31    patch-build.sh.diff
32
33use_configure           no
34
35build.cmd               ./build.sh
36build.target            build
37pre-build {
38    build.env-append    CC="${configure.cc} [get_canonical_archflags cc] -Wno-error -Wno-return-type" \
39                        CXX="${configure.cxx} [get_canonical_archflags cxx]"
40}
41
42destroot.destdir
43pre-destroot {
44    destroot.env-append CC="${configure.cc} [get_canonical_archflags cc] -Wno-error -Wno-return-type" \
45                        CXX="${configure.cxx} [get_canonical_archflags cxx]" \
46                        PREFIXAPP=${destroot}${applications_dir} \
47                        PREFIXBIN=${destroot}${prefix}/bin \
48                        PREFIXLIB=${destroot}${prefix}/share
49}
50
51post-activate {
52    # lisaem 1.2.6_0 installed items to /usr/local/bin; remove them if found
53    foreach file {lisadiskinfo lisafsh-tool} {
54        set filepath /usr/local/bin/${file}
55        if {[file exists ${filepath}] && [registry_file_registered ${filepath}] == "0"} {
56            if {[catch {delete ${filepath}}]} {
57                ui_warn "Cannot delete ${filepath}; please remove it manually"
58            }
59        }
60    }
61}
62
63# the two wxWidgets variants can go away if lisaem gets ported to wxWidgets-3.0
64variant wxwidgets28 conflicts wxgtk28 description {Use 32-bit Carbon-based wxWidgets 2.8} {
65    wxWidgets.use       wxWidgets-2.8
66    depends_lib-append  port:${wxWidgets.port}
67    build.env-append    WX_CONFIG=${wxWidgets.wxconfig}
68    destroot.env-append WX_CONFIG=${wxWidgets.wxconfig}
69}
70
71variant wxgtk28 conflicts wxwidgets28 description {Use wxWidgets 2.8 with GTK} {
72    wxWidgets.use       wxGTK-2.8
73    depends_lib-append  port:${wxWidgets.port}
74    build.env-append    WX_CONFIG=${wxWidgets.wxconfig}
75    destroot.env-append WX_CONFIG=${wxWidgets.wxconfig}
76}
77
78if {![variant_isset wxwidgets28] && ![variant_isset wxgtk28]} {
79    if {[vercmp $xcodeversion 4.4] >= 0} {
80        default_variants +wxgtk28
81    } else {
82        default_variants +wxwidgets28
83    }
84}
85
86livecheck.type          regex
87livecheck.url           ${homepage}downloads.html
88livecheck.regex         ${name}-(\[0-9.\]+)\\.tar
Note: See TracBrowser for help on using the repository browser.