Ticket #5342: Portfile.3

File Portfile.3, 1.0 KB (added by ben@…, 19 years ago)

libiconv 1.9.2 Portfile

Line 
1# $Id: Portfile,v 1.30 2005/05/02 19:41:16 mww Exp $
2
3PortSystem 1.0
4name            libiconv
5version         1.9.2
6revision        1
7categories      textproc
8platforms       darwin freebsd
9
10maintainers     mij@opendarwin.org
11description     Character set conversion library
12
13long_description A character-set conversion library which implements the \
14                 iconv() API for dealing with unicode and other types of \
15                 conversion.
16
17homepage        http://www.gnu.org/software/libiconv/
18master_sites    gnu
19checksums       md5 6bc300365053c815b10b800a21e0bc7e
20
21post-patch      { reinplace "s|@\mandir@|$\(prefix)/share/man|g" \
22                    ${worksrcpath}/Makefile.in
23                  reinplace "s|@\mandir@|$\(prefix)/share/man|g" \
24                    ${worksrcpath}/man/Makefile.in
25                  reinplace "s|$\(datadir)/doc/${portname}|$\(prefix)/share/doc/${portname}|g" \
26                    ${worksrcpath}/man/Makefile.in }
27
28configure.args  --enable-static
29
30pre-destroot    { system "install -m 755 -d \
31                    ${destroot}${prefix}/share/doc/${portname}" }
32
33destroot.destdir prefix=${destroot}${prefix}
34
35post-destroot {
36        file delete -force ${destroot}${prefix}/lib/charset.alias
37}