Ticket #1264: Portfile_popt_1264

File Portfile_popt_1264, 1.3 KB (added by mathieu_carpentier_2x4@…, 19 years ago)

patch to make popt build

Line 
1# $Id: Portfile,v 1.14 2004/12/10 19:48:12 landonf Exp $
2
3PortSystem 1.0
4name            popt
5version         1.7
6revision        3
7categories      devel
8maintainers     landonf@opendarwin.org
9description     A getopt(3) like library with a number of enhancements
10long_description popt is a command line parsing library. It contains a number of enhancements over getopt(3), including being fully reentrant, allowing users to alias command line arguments, providing convience functions for parsing strings into argv[] style arrays and popt can parse arbitrary argv[] style arrays.
11
12platforms       darwin
13master_sites    ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.1.x/ \
14                ftp://ftp.mirror.ac.uk/sites/ftp.rpm.org/pub/rpm/dist/rpm-4.1.x/
15
16depends_lib     lib:libintl.3:gettext
17
18post-patch {
19        file copy -force /usr/share/libtool/config.guess ${worksrcpath}/config.guess
20        file copy -force /usr/share/libtool/config.sub ${worksrcpath}/config.sub
21}
22
23configure.args  --mandir=${prefix}/share/man
24
25destroot.args   localedir=${prefix}/share/locale
26post-destroot {
27        file delete -force ${destroot}${prefix}/share/locale/locale.alias
28        file delete -force ${destroot}${prefix}/lib/charset.alias
29}
30
31checksums       md5 5988e7aeb0ae4dac8d83561265984cc9
32
33platform darwin 6 {
34        configure.args  --mandir=${prefix}/share/man --with-included-gettext
35}
36
37platform darwin 8 {
38        configure.args  --mandir=${prefix}/share/man --with-included-gettext
39}