# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $

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         freeshell.org:dms
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}
use_configure       no
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/MacPorts"
                      file copy "${worksrcpath}/JHymn.app" \
                        "${destroot}/Applications/MacPorts" }

pre-fetch	{
	return -code error "This application is subject to a cease and desist order barring distribution."
}
