source: trunk/dports/sysutils/cdrtools/Portfile @ 91672

Last change on this file since 91672 was 91672, checked in by jmr@…, 8 years ago

cdrtools: avoid llvm-gcc-4.2 and older clang versions

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 91672 2012-04-07 15:37:28Z jmr@macports.org $
2
3PortSystem 1.0
4
5name            cdrtools
6version         3.00
7revision        1
8categories      sysutils
9platforms               darwin
10description     ISO 9660 filesystem and CD creation tools
11long_description        The cdrtools software includes programs to create \
12                        and/or extract ISO 9660 filesystems, verify their \
13                        integrity, and write them to a disc. \
14                        Note, this port conflicts with the dvdrtools port.
15homepage        http://cdrecord.berlios.de/old/private/cdrecord.html
16maintainers     gmail.com:bytestorm openmaintainer
17master_sites    ftp://ftp.berlios.de/pub/cdrecord/ \
18                ftp://ftp.cs.tu-berlin.de/pub/misc/cdrecord/alpha/
19
20checksums       md5     f9fbab08fbd458b0d2312976d8c5f558 \
21                sha1    6464844d6b936d4f43ee98a04d637cd91131de4e \
22                rmd160  210684ab5e286ef59b788b49bd0b74d88f6435f4
23
24use_bzip2       yes
25
26depends_build   port:smake
27
28depends_lib     port:gettext
29
30post-patch {
31        reinplace "s|/opt/schily|${prefix}|g" \
32                ${worksrcpath}/DEFAULTS/Defaults.darwin \
33                ${worksrcpath}/DEFAULTS/Defaults.mac-os10 \
34                ${worksrcpath}/DEFAULTS_ENG/Defaults.darwin \
35                ${worksrcpath}/DEFAULTS_ENG/Defaults.mac-os10 \
36                ${worksrcpath}/libfind/find.c \
37                ${worksrcpath}/libfind/find_main.c \
38                ${worksrcpath}/librscg/scsi-remote.c \
39                ${worksrcpath}/TEMPLATES/Defaults.gcc
40}
41
42use_configure   no
43
44# hangs the same way as smake itself with both llvm-gcc-4.2 and
45# Xcode 4.1's clang
46if {${configure.compiler} == "llvm-gcc-4.2"} {
47    configure.compiler  gcc-4.2
48} elseif {${configure.compiler} == "clang" && [vercmp $xcodeversion 4.3] < 0} {
49    depends_build-append port:apple-gcc42
50    configure.compiler  apple-gcc-4.2
51}
52
53build.cmd       smake
54build.args  CC=${configure.cc}
55
56use_parallel_build no
57
58destroot.args   DEFINSUSR=${install.user} DEFINSGRP=${install.group} INS_BASE=${prefix}
59
60post-destroot {
61    move ${destroot}/etc/default ${destroot}${prefix}/etc/
62}
63
64livecheck.url   [lindex ${master_sites} 0]
65livecheck.regex ${name}-(\[0-9.\]+)\\.tar
Note: See TracBrowser for help on using the repository browser.