-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Portfile
91 lines (78 loc) · 2.75 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# $Id: Portfile,v 1.18 2006/04/04 06:29:12 blb Exp $
PortSystem 1.0
name wxWidgets-devel
version 2.7.1
categories graphics devel
platforms darwin
maintainers jwa@macports.org mww@macports.org
description mature cross-platform C++ GUI framework
long_description wxWidgets is a mature open-source cross-platform C++ \
GUI framework for MacOS, Unix, Linux, Windows. It can \
make use of a variety of native widget sets as well as \
its own widget set: MacOS, GTK+, Motif, WIN32. \
wxWidgets will even run on embedded systems using \
Linux and X11.
homepage http://www.wxwidgets.org/
distname wxWidgets
master_sites ftp://biolpc22.york.ac.uk/pub/${version}/ \
sourceforge:wxwindows
use_bzip2 yes
distfiles ${distname}-${version}${extract.suffix}
dist_subdir ${distname}/${version}
checksums ${distname}-${version}${extract.suffix} \
md5 5406cc14e87f9c7893753374f034c058 \
${distname}-${version}${extract.suffix} \
sha1 6cb5db4cfaab048527a0e9c6f73775cd5fba1c91 \
${distname}-${version}${extract.suffix} \
rmd160 258a5f98d617880bdb142bdfe239fcd982ba02c3
depends_lib port:jpeg \
port:tiff \
port:libpng \
port:zlib \
port:libiconv \
port:expat \
port:libsdl \
port:libsdl_mixer
#set worksrcdir build
set worksrcdir ${distname}-${version}/build
extract.only ${distname}-${version}${extract.suffix}
#configure.cmd ../${distname}-${version}/configure
configure.cmd ../configure
configure.env CPPFLAGS="-I${prefix}/include" \
CFLAGS="-I${prefix}/include" \
LDFLAGS="-L${prefix}/lib"
configure.args --mandir=${prefix}/share/man \
--with-libiconv-prefix=${prefix} \
--with-libjpeg \
--with-libtiff \
--with-libpng \
--with-zlib \
--with-sdl \
--with-opengl \
--with-mac \
--disable-sdltest \
--enable-unicode \
--enable-display \
--enable-monolithic
platform darwin 8 {
configure.env-append CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
}
set contrib "gizmos stc"
build.target
post-build {
system "cd ${build.dir} && make -C contrib/src/gizmos"
system "cd ${build.dir} && make -C contrib/src/stc"
}
post-destroot {
system "cd ${destroot.dir} && make -C contrib/src/gizmos install ${destroot.destdir}"
system "cd ${destroot.dir} && make -C contrib/src/stc install ${destroot.destdir}"
xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 -W ${workpath}/${name}-${version} \
install-mac.txt install-mgl.txt install-motif.txt \
INSTALL-OS2.txt install-x11.txt readme-cocoa.txt \
readme-gtk.txt readme-mac.txt \
readme-mgl.txt readme-motif.txt readme-x11.txt \
${destroot}${prefix}/share/doc/${name}
system "cd ${destroot}${prefix}/bin && \
ln -sf ${prefix}/lib/wx/config/mac-unicode-release-2.6 wx-config"
}