# $Id: Portfile 63524 2010-02-07 06:02:45Z usami-k@macports.org $
PortSystem      1.0
name            rmtrash
version         0.3.3
revision        1
maintainers     usami-k
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/
master_sites    http://www.nightproductions.net/downloads/
distname        ${name}_source
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"
}
