# $Id: Portfile,v 1.5 2006/06/12 17:06:34 markd Exp $

PortSystem 1.0

name                JHymn
version             0.9.2
platforms           darwin
categories          aqua audio
description         iTMS DRM removal utility
long_description    The purpose of JHymn is to allow you to exercise your \
                    fair-use rights under copyright law. It allows you to free \
                    your iTunes Music Store (protected AAC/m4p) purchases from \
                    their DRM restrictions with no sound quality loss. These \
                    songs can then be played outside of the iTunes \
                    environment, even on operating systems not supported by \
                    iTunes.
maintainers         dms@freeshell.org
homepage            http://www.hymn-project.org/jhymndoc/
master_sites        http://www.hymn-project.org/download/
distname            [regsub -all {[\.-]} ${distname} _]_source
use_zip             yes
checksums           md5 d0a0ef88e504cab658692f21ae1fb8a4
worksrcdir          ${name}
configure           {}
depends_build       bin:faad:faad2 \
                    bin:lame:lame
pre-build           { xinstall "[binaryInPath faad]" "[binaryInPath lame]" \
                        "${worksrcpath}" }
build.cmd           ./build_mac.sh
build.target        {}
destroot            { xinstall -m 755 -d "${destroot}/Applications/DarwinPorts"
                      file copy "${worksrcpath}/JHymn.app" \
                        "${destroot}/Applications/DarwinPorts" }
