# $Id: Portfile 72245 2010-10-08 15:47:07Z takanori@macports.org $

PortSystem         1.0
name               AtomicParsley
version            0.9.0
categories         multimedia
platforms          darwin
maintainers        gmail.com:cedric.luthi
description        MPEG-4 command line tool
long_description   AtomicParsley is a lightweight command line program \
                   for reading, parsing and setting metadata into MPEG-4 files.

homepage           http://atomicparsley.sourceforge.net
master_sites       sourceforge:atomicparsley
distname           ${name}-source-${version}
use_zip            yes
checksums          md5 681e6ecec2921c98e07a9262bdcd6cf2 \
                   sha1 6a73aed6ba569e693fe94a313e7e9e9ce204d038 \
                   rmd160 53026ab6b251614eb3a649fe611f86d68e06dc8e

conflicts          AtomicParsley-devel

use_configure      no
build.cmd          ./build

pre-build {
    # fix usage of private type, b0rked in Leopard
    # -eridius
    reinplace s|_NSBitmapImageFileType|NSBitmapImageFileType|g ${worksrcpath}/AP_NSImage.mm
}

destroot {
    xinstall -m 755 -d ${destroot}${prefix}/bin
    xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin
}

livecheck.regex AtomicParsley v(.*) released
