# $Id: Portfile 86739 2011-11-02 17:12:18Z usami-k@macports.org $
PortSystem      1.0
name            rmtrash
version         0.3.3
revision        2
maintainers     usami-k
license         permissive
platforms       darwin
categories      sysutils
description     move the file to OS X's Trash
long_description \
                rmtrash is a small utility that will move the file to OS X's Trash \
                rather than obliterating the file (as rm does).
homepage        http://www.nightproductions.net/cli.htm
master_sites    http://www.nightproductions.net/downloads/
distname        ${name}_source
livecheck.type  regex
livecheck.regex {/rmtrash.tar.gz.*\(v([0-9.]+)\)}
checksums       md5 fecbb879766e23ec4c918b0e13bc7e43
worksrcdir      ${name}-source
patchfiles      patch-Makefile

use_configure   no

build.args      CFLAGS="${configure.cflags}" LDFLAGS="-framework Foundation"

destroot.destdir    DESTDIR=${destroot}${prefix}

variant universal {
    build.args  CFLAGS="${configure.cflags} ${configure.universal_cflags}" LDFLAGS="-framework Foundation"
}
