# -*- 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
PortGroup compiler_blacklist_versions 1.0
# listing all these licenses is somewhat redundant when taken as a whole,
# but different separable components are licensed differently
license CDDL-1 BSD LGPL-2.1 GPL-2+ GPL-2
description ISO 9660 filesystem and CD creation tools
long_description The cdrtools software includes programs to create \
and/or extract ISO 9660 filesystems, verify their \
integrity, and write them to a disc.
homepage http://cdrecord.org
master_sites sourceforge:project/cdrtools
checksums rmd160 3696b1bc502905cbe7c06e492b42d2ffe2dba982 \
sha256 ed282eb6276c4154ce6a0b5dee0bdb81940d0cbbfc7d03f769c4735ef5f5860f
patchfiles patch-include_schily_sha2.h
reinplace -locale C "s|/opt/schily|${prefix}|g" \
${worksrcpath}/DEFAULTS/Defaults.darwin \
${worksrcpath}/DEFAULTS/Defaults.mac-os10 \
${worksrcpath}/DEFAULTS_ENG/Defaults.darwin \
${worksrcpath}/DEFAULTS_ENG/Defaults.mac-os10 \
${worksrcpath}/libfind/find.c \
${worksrcpath}/libfind/find_main.c \
${worksrcpath}/librscg/scsi-remote.c \
${worksrcpath}/TEMPLATES/Defaults.gcc
# hangs the same way as smake itself with both llvm-gcc-4.2 and Xcode 4.1's clang
# https://trac.macports.org/ticket/30310
compiler.blacklist llvm-gcc-4.2 macports-llvm-gcc-4.2 {clang < 300}
build.args CC=${configure.cc}
# The build script doesn't notice when a program fails to build, so
# we must verify it ourselves. See
# https://trac.macports.org/ticket/34823
set progs {btcflash cdda2wav cdrecord devdump isodebug isodump isoinfo isovfy mkisofs readcd scgcheck scgskeleton}
fs-traverse path ${worksrcpath} {
if {[file isfile ${path}] && [string match {*/OBJ/*} ${path}]} {
set file [file tail ${path}]