I followed the instructions here:
http://wiki.codeblocks.org/index.php?title=Compiling_Code::Blocks_in_Mac_OS_X#Install_with_MacPorts
sudo port install wxWidgets
worked fine.
but then I had some trouble:
$ sudo port install codeblocks-devel +aqua
Password:
---> Fetching codeblocks-devel
---> Verifying checksum(s) for codeblocks-devel
---> Extracting codeblocks-devel
---> Configuring codeblocks-devel
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_codeblocks-devel/work/trunk" && ./bootstrap && ./configure --prefix=/opt/local --with-contrib-plugins=all " returned error 1
Command output: checking for vsnprintf... yes
checking for library containing gzopen... -lz
checking for library containing BZ2_bzopen... -lbz2
checking whether to enable debugging... no
checking whether to build the source formatter plugin... yes
checking whether to build the autosave plugin... yes
checking whether to build the class wizard plugin... yes
checking whether to build the code completion plugin... yes
checking whether to build the compiler plugin... yes
checking whether to build the debugger plugin... yes
checking whether to build the default MIME handler plugin... yes
checking whether to build the foreign projects importer plugin... yes
checking whether to build the scripted wizard plugin... yes
checking whether to build the to-do plugin... yes
checking which (if any) contrib plugins to build... all
checking if the compiler supports precompiled headers... yes
checking for pkg-config... yes
checking for pkg-config... /opt/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GTK2... configure: error: Package requirements (gtk+-2.0 >= 2.0.0) were not met:
No package 'gtk+-2.0' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables GTK2_CFLAGS
and GTK2_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Error: Status 1 encountered during processing.
Any ideas?