Ticket #20320: Portfile

File Portfile, 2.7 KB (added by mtalexander (Mike Alexander), 15 years ago)

Revised portfile that works when previous version of cdparanoia is installed

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 53548 2009-07-08 01:53:57Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name                    cdparanoia
7epoch                   20050508
8version                 10.2
9categories              audio
10maintainers             nomaintainer
11description             An audio extraction tool for sampling CDs.
12long_description        \
13        Cdparanoia is a Compact Disc Digital Audio (CDDA) extraction tool, \
14        commonly known on the net as a 'ripper'. The application is built \
15        on top of the Paranoia library, which is doing the real work (the \
16        Paranoia source is included in the cdparanoia source distribution). \
17        Like the original cdda2wav, cdparanoia package reads audio from the \
18        CDROM directly as data, with no analog step between, and writes the \
19        data to a file or pipe in WAV, AIFC or raw 16 bit linear PCM. \
20        Cdparanoia is a bit different than most other CDDA extraction \
21        tools. It contains few-to-no 'extra' features, concentrating only \
22        on the ripping process and knowing as much as possible about the \
23        hardware performing it. Cdparanoia will read correct, rock-solid \
24        audio data from inexpensive drives prone to misalignment, frame \
25        jitter and loss of streaming during atomic reads. Cdparanoia will \
26        also read and repair data from CDs that have been damaged in some \
27        way. At the same time, however, cdparanoia turns out to be easy to \
28        use and administrate. It has no compile time configuration, happily \
29        autodetecting the CDROM, its type, its interface and other aspects \
30        of the ripping process at runtime. A single binary can serve the \
31        diverse hardware of the do-it-yourself computer laboratory from Hell...
32
33# Original osx port mentioned here: http://www.livejournal.com/users/strangehours/9698.html
34homepage                http://www.xiph.org/paranoia
35platforms               darwin
36
37distname                cdparanoia-III-${version}
38extract.suffix  .src.tgz
39master_sites            http://downloads.xiph.org/releases/cdparanoia
40checksums           md5     b304bbe8ab63373924a744eac9ebc652 \
41                    sha1    1901e20d3a370ca6afa4c76a9ef30d3f03044320 \
42                    rmd160  d6c4ea9cc4aa4d5bcca4985e668ea6142d53cc55
43
44patchfiles          osx_interface.patch
45patch.args -p1
46
47depends_build   port:autoconf
48
49use_autoconf    yes
50
51# The make file sets its own optimization flags as appropriate.
52configure.cflags-delete -O2
53# It doesn't need anything from ${prefix}/lib and it finds old versions of its own
54# dynamic libraries there so don't let it look.
55configure.ldflags-delete -L${prefix}/lib
56
57destroot.destdir        prefix=${destroot}${prefix}
58
59platform darwin 8 {
60    patchfiles-append   patch-paranoia_paranoia.c.10.4.diff
61}
62
63livecheck.check regex
64livecheck.url   ${master_sites}
65livecheck.regex "cdparanoia-III-(\\d+(?:\\.\\d+)*)${extract.suffix}"