# -*- 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
# $Id: Portfile 85900 2011-10-17 08:24:28Z jmr@macports.org $

PortSystem       1.0
PortGroup        xcode 1.0

name             cfxr
version          0.2.0
platforms        darwin
categories       audio aqua
maintainers      orthogonalspace.ca:reid
description      A generator for simple sound effects.
long_description A port of DrPetter's sfxr with a native Mac UI. \
                 In DrPetter's words: Its original purpose was to provide a \
                 simple means of getting basic sound effects into a game for \
                 those people who were working hard to get their entries \
                 done within the 48 hours and didn't have time to spend \
                 looking for suitable ways of doing this.

homepage         http://thirdcog.eu/apps/cfxr

fetch.type       git
git.url          https://github.com/nevyn/cfxr.git
git.branch       3898d05c960682f1a5320cfc09ee22764a6ec1f3

post-patch {
        reinplace "s|/Library/Frameworks/SDL.framework|${frameworks_dir}/SDL.framework|g" \
            ${worksrcpath}/${name}.xcodeproj/project.pbxproj
}

xcode.configuration     Release
xcode.build.settings    FRAMEWORK_SEARCH_PATHS=${frameworks_dir}
xcode.destroot.settings FRAMEWORK_SEARCH_PATHS=${frameworks_dir}

depends_lib      port:libsdl-framework port:libsdl

livecheck.type   regex
livecheck.url    ${homepage}
livecheck.regex  ${name} (\\d.\\d.\\d)
