# $Id: Portfile 42492 2008-11-22 08:27:52Z blb@macports.org $

PortSystem      1.0

name            scalc
version         1.15
revision        1
categories      math
platforms       darwin
maintainers     nomaintainer
description     tool for simple integer calculations or for converting numbers
long_description \
   The calc command may be used to do simple integer calculations or to \
   convert numbers from one radix to another.

homepage        http://www.fokus.fraunhofer.de/research/cc/berlios/employees/joerg.schilling/private/
master_sites    ftp://ftp.berlios.de/pub/calc/
distname        calc-${version}
checksums       md5 f2a89c26bf52078b156af79897d8556a

depends_build   port:smake

patchfiles      patch-RULES_rules.prg.diff

use_configure   no

build.cmd       smake

destroot.destdir   INS_BASE=${destroot}${prefix} \
                   MANDIR=share/man
post-destroot {
   delete ${destroot}${prefix}/lib ${destroot}${prefix}/include \
      ${destroot}${prefix}/share/man/man5
   move ${destroot}${prefix}/bin/calc ${destroot}${prefix}/bin/${name}
   move ${destroot}${prefix}/share/man/man1/calc.1 \
      ${destroot}${prefix}/share/man/man1/${name}.1
}

