Ticket #6743: Portfile

File Portfile, 2.3 KB (added by g3zi7y.wu72nfp@…, 18 years ago)

the malfunctioning portfile

Line 
1# $Id: Portfile,v 1.17 2005/10/19 08:10:11 blb Exp $
2
3PortSystem 1.0
4
5name                    wxWidgets
6version                 2.6.2
7categories              graphics devel
8platforms               darwin
9maintainers             mww@opendarwin.org blb@opendarwin.org
10description             mature cross-platform C++ GUI framework
11long_description        wxWidgets is a mature open-source cross-platform C++ \
12                                GUI framework for MacOS, Unix, Linux, Windows. It can \
13                                make use of a variety of native widget sets as well as \
14                                its own widget set: MacOS, GTK+, Motif, WIN32. \
15                                wxWidgets will even run on embedded systems using \
16                                Linux and X11.
17
18homepage                http://www.wxwidgets.org/
19master_sites    ftp://biolpc22.york.ac.uk/pub/${version}/ \
20                                sourceforge:wxwindows
21dist_subdir             ${name}/${version}
22checksums               md5 ee0aa211febd992c8540e6c9df749b51
23use_bzip2               yes
24
25depends_lib             port:jpeg \
26                                port:tiff \
27                                port:libpng \
28                                port:zlib \
29                                port:libiconv \
30                                port:expat \
31                                port:libsdl \
32                                port:libsdl_mixer
33
34set worksrcdir  build
35
36post-extract {
37        file mkdir ${worksrcpath}
38}
39
40configure.cmd   ../${name}-${version}/configure
41configure.env   CPPFLAGS="-I${prefix}/include" \
42                                CFLAGS="-I${prefix}/include" \
43                                LDFLAGS="-L${prefix}/lib"
44configure.args  --mandir=${prefix}/share/man \
45                                --with-libiconv-prefix=${prefix} \
46                                --with-libjpeg \
47                                --with-libtiff \
48                                --with-libpng \
49                                --with-zlib \
50                                --with-sdl \
51                                --with-opengl \
52                                --with-mac \
53                                --disable-sdltest \
54                                --enable-unicode \
55                                --enable-display \
56                                --enable-monolithic
57
58platform darwin 8 {
59        configure.env-append    CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
60}
61
62set contrib             "animate gizmos stc"
63
64build.target
65post-build {
66        foreach target { ${contrib} } {
67                system "cd ${build.dir} && make -C contrib/src/${target}"
68        }
69}
70
71post-destroot {
72        foreach target { ${contrib} } {
73                system "cd ${destroot.dir} && make -C contrib/src/${target} install ${destroot.destdir}"
74        }
75        xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
76        xinstall -m 644 -W ${workpath}/${name}-${version} BuildCVS.txt CHANGES.txt \
77                COPYING.LIB INSTALL-MAC.txt INSTALL-MGL.txt INSTALL-MOTIF.txt \
78                INSTALL-OS2.txt INSTALL-X11.txt LICENCE.txt README-MAC.txt \
79                README-MGL.txt README-MOTIF.txt README-X11.txt README.txt \
80                ${destroot}${prefix}/share/doc/${name}
81        system "cd ${destroot}${prefix}/bin && \
82                ln -sf ${prefix}/lib/wx/config/mac-unicode-release-2.6 wx-config"
83}