Portfile

# $Id: Portfile 21388 2007-01-22 19:54:58Z yves@macports.org $

PortSystem 1.0

name qtplay
version 1.3.1
categories audio
platforms macosx
maintainers yves@macports.org
description A command line utility to play Audio CDs and music files.
long_description \
Quicktime player is a command line utility \
to play Audio CDs and music files. \
Plays any audio file supported by Quicktime \
Special flag for simply playing CDs, for lazy people. \
Playlist features such as loop, shuffle, and random. \
Special flag for reading playlist via standard input. \
Support for process signals: SIGINT, SIGTSTP, and SIGCONT.

homepage http://rainbowflight.googlepages.com/
master_sites ${homepage}
distname ${name}${version}
checksums md5 f6cb47521afbfc5b40efdd2d8433830d

post-extract {
file delete ${workpath}/${name}
}
use_configure no
build {
cd ${workpath}
system "gcc -o ${name} \
-framework Carbon -framework QuickTime ${name}.c"
}

destroot {
xinstall -m 755 ${workpath}/${name} \
${destroot}${prefix}/bin
xinstall -m 644 ${workpath}/${name}.1 \
${destroot}${prefix}/share/man/man1
}