Skip to content
Permalink
Browse files

This is the test release of wxWidgets. Version 2.7.1.

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@20271 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
jyrkiwahlstedt committed Nov 1, 2006
1 parent 31c6594 commit 2cf6305f72629d9adabdcc1a12c915bf4a05ffec
Showing with 91 additions and 0 deletions.
  1. +91 −0 graphics/wxWidgets-devel/Portfile
@@ -0,0 +1,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"
}

0 comments on commit 2cf6305

Please sign in to comment.
You can’t perform that action at this time.