# $Id: Portfile,v 1.2 2005/06/02 20:30:44 toby Exp $

PortSystem 1.0
name             recode
version          3.6
revision         1
categories       textproc
maintainers      toby@opendarwin.org
description      charset conversion program
long_description \
	This recode program has the purpose of converting files between \
	various character sets and usages. When exact transliterations \
	are not possible, as it is often the case, the program may get \
	rid of the offending characters or fall back on approximations.
homepage         http://www.gnu.org/software/recode/
platforms        darwin
master_sites     gnu
checksums        md5 be3f40ad2e93dae5cd5f628264bf1877

patchfiles       patch-src__Makefile.in

pre-configure {
	file copy -force /usr/share/libtool/config.guess ${worksrcpath}
	file copy -force /usr/share/libtool/config.sub ${worksrcpath}
}

configure.args   --infodir=${prefix}/share/info \
                 --mandir=${prefix}/share/man \
                 --disable-nls

pre-build {
	file copy ${worksrcpath}/lib/error.c ${worksrcpath}/src
}

post-destroot {
	file delete -force ${destroot}${prefix}/lib/charset.alias
	file delete -force ${destroot}${prefix}/share/info/dir
}
