source: trunk/dports/sysutils/cdrtools/Portfile

Last change on this file was 127901, checked in by mf2k@…, 3 years ago

cdrtools: Port abandoned. (#45212)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 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 127901 2014-11-06 15:09:44Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           compiler_blacklist_versions 1.0
6
7name                cdrtools
8version             3.00
9revision            1
10categories          sysutils
11# listing all these licenses is somewhat redundant when taken as a whole,
12# but different separable components are licensed differently
13license             CDDL-1 BSD LGPL-2.1 GPL-2+ GPL-2
14platforms           darwin
15conflicts           dvdrtools
16
17description         ISO 9660 filesystem and CD creation tools
18long_description    The cdrtools software includes programs to create \
19                    and/or extract ISO 9660 filesystems, verify their \
20                    integrity, and write them to a disc.
21homepage            http://cdrecord.org
22maintainers         nomaintainer
23master_sites        sourceforge:project/cdrtools
24
25checksums           rmd160  210684ab5e286ef59b788b49bd0b74d88f6435f4 \
26                    sha256  7f9cb64820055573b880f77b2f16662a512518336ba95ab49228a1617973423d
27
28use_bzip2           yes
29
30depends_build       port:smake
31
32depends_lib         port:gettext
33
34patchfiles          patch-include_schily_sha2.h
35post-patch {
36    reinplace -locale C "s|/opt/schily|${prefix}|g" \
37        ${worksrcpath}/DEFAULTS/Defaults.darwin \
38        ${worksrcpath}/DEFAULTS/Defaults.mac-os10 \
39        ${worksrcpath}/DEFAULTS_ENG/Defaults.darwin \
40        ${worksrcpath}/DEFAULTS_ENG/Defaults.mac-os10 \
41        ${worksrcpath}/libfind/find.c \
42        ${worksrcpath}/libfind/find_main.c \
43        ${worksrcpath}/librscg/scsi-remote.c \
44        ${worksrcpath}/TEMPLATES/Defaults.gcc
45}
46
47use_configure       no
48
49# hangs the same way as smake itself with both llvm-gcc-4.2 and Xcode 4.1's clang
50# https://trac.macports.org/ticket/30310
51compiler.blacklist  llvm-gcc-4.2 macports-llvm-gcc-4.2 {clang < 300}
52
53build.cmd           smake
54build.args          CC=${configure.cc}
55
56use_parallel_build  no
57
58post-build {
59    # The build script doesn't notice when a program fails to build, so
60    # we must verify it ourselves. See
61    # https://trac.macports.org/ticket/34823
62    set progs {btcflash cdda2wav cdrecord devdump isodebug isodump isoinfo isovfy mkisofs readcd scgcheck scgskeleton}
63    fs-traverse path ${worksrcpath} {
64        if {[file isfile ${path}] && [string match {*/OBJ/*} ${path}]} {
65            set file [file tail ${path}]
66            set prog_index [lsearch ${progs} ${file}]
67            if {${prog_index} != -1} {
68                set progs [lreplace ${progs} ${prog_index} ${prog_index}]
69            }
70        }
71    }
72    if {[llength ${progs}] > 0} {
73        ui_error "The following programs did not build: [join ${progs} {, }]"
74        return -code error "build failed"
75    }
76}
77
78destroot.args       DEFINSUSR=${install.user} \
79                    DEFINSGRP=${install.group} \
80                    INS_BASE=${prefix}
81
82post-destroot {
83    move ${destroot}/etc/default ${destroot}${prefix}/etc/
84}
85
86livecheck.url       http://sourceforge.net/projects/cdrtools/files/
87livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.