Files

121 lines
4.3 KiB
Tcl
Raw Permalink Normal View History

2022-09-08 09:30:13 -07:00
# -*- coding: utf-8; mode: tcl; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=2:ts=2:sts=2
PortSystem 1.0
PortGroup wxWidgets 1.0
PortGroup boost 1.0
PortGroup app 1.0
name codeblocks-devel
conflicts codeblocks
categories devel aqua x11
license GPL-3+
license_noconflict boost
maintainers nomaintainer
homepage https://www.codeblocks.org/
description Open Source, Cross-platform, Free C/C++/D IDE
2022-09-08 20:54:11 -07:00
long_description {*}${description}. This port tracks the upstream development \
2022-09-08 09:30:13 -07:00
of CodeBlocks.
fetch.type svn
svn.url svn://svn.code.sf.net/p/codeblocks/code/trunk
2025-01-01 18:05:41 -08:00
svn.revision 13598
2025-01-03 09:25:55 -08:00
# hold back until resolved https://trac.macports.org/ticket/71733
if {${os.platform} eq "darwin" && ${os.version} < 11} {
svn.revision r13593
}
2022-10-13 14:59:31 -07:00
svn.method checkout
2025-01-01 18:05:41 -08:00
version 20250101-r${svn.revision}
2024-06-07 07:41:31 -07:00
revision 0
2022-09-08 09:30:13 -07:00
2023-02-03 22:20:28 -08:00
worksrcdir trunk
2023-02-01 17:15:10 -08:00
svn.args-append --ignore-externals
2024-02-10 08:35:00 -08:00
# svn info https://svn.code.sf.net/p/fortranproject/code/trunk
2024-09-28 16:19:31 -07:00
set fortranproject_rev 385
post-fetch {
system -W ${worksrcpath}/src/plugins/contrib/ "${svn.cmd} checkout -r${fortranproject_rev} https://svn.code.sf.net/p/fortranproject/code/trunk FortranProject"
}
2022-09-08 09:30:13 -07:00
use_autoconf yes
autoconf.cmd ./bootstrap
depends_build-append port:autoconf \
port:automake \
port:libtool \
port:pkgconfig
boost.depends_type build
# bzip2 is used by the libhelp_plugin
depends_lib-append port:hunspell \
port:bzip2
compiler.cxx_standard 2011
2023-10-15 17:18:01 -07:00
# the build issue this was based on has scrolled off the buildbot logs
2022-11-22 04:03:48 +00:00
compiler.blacklist-append {clang < 801}
2022-09-08 09:30:13 -07:00
# FileManager does not build with Carbon/Cocoa
# and reportedly requires "gamin" to be installed when using wxGTK
configure.args --with-boost=[boost::install_area] \
--with-contrib-plugins=all,-FileManager
2025-01-01 18:05:41 -08:00
# work around missing link lib since r13594
# https://forums.codeblocks.org/index.php/topic,25932.msg176620.html#msg176620
if {${os.platform} eq "darwin" && ${os.version} > 10} {
configure.ldflags-append -framework Security
}
2022-09-08 09:30:13 -07:00
# work around a directory layout issue based on MacPorts default non-bundled layout
post-destroot {
2022-11-02 21:31:20 -07:00
ln -s ${prefix}/lib/codeblocks/plugins ${destroot}${prefix}/share/codeblocks/plugins
2022-09-08 09:30:13 -07:00
}
2023-10-15 17:18:01 -07:00
# this will need to be reassessed if we use the full bundle build
2022-09-08 09:30:13 -07:00
app.name CodeBlocks
app.executable codeblocks
app.use_launch_script yes
app.icon src/src/resources/icons/app.icns
app.hide_dock_icon yes
variant wxwidgets32 conflicts wxgtk30 description {Use Cocoa-based wxWidgets 3.2} {
wxWidgets.use wxWidgets-3.2
depends_lib-append port:${wxWidgets.port}
autoconf.env-append ACLOCAL_PATH=${wxWidgets.prefix}/share/aclocal
configure.args-append --with-wxdir=${wxWidgets.wxdir}
}
variant wxgtk30 conflicts wxwidgets32 description {Use wxWidgets 3.0 with GTK} {
wxWidgets.use wxGTK-3.0-cxx11
2022-09-08 09:30:13 -07:00
depends_lib-append port:${wxWidgets.port}
autoconf.env-append ACLOCAL_PATH=${wxWidgets.prefix}/share/aclocal
configure.args-append --with-wxdir=${wxWidgets.wxdir}
depends_lib-append port:atk \
path:lib/pkgconfig/cairo.pc:cairo \
path:lib/pkgconfig/gdk-pixbuf-2.0.pc:gdk-pixbuf2 \
path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
path:lib/pkgconfig/glib-2.0.pc:glib2 \
path:lib/pkgconfig/harfbuzz.pc:harfbuzz \
2022-09-08 09:30:13 -07:00
port:gettext-runtime \
path:lib/pkgconfig/pango.pc:pango
}
if {![variant_isset wxwidgets32] && ![variant_isset wxgtk30]} {
if {${os.platform} eq "darwin" && ${os.major} > 15} {
2022-09-08 09:30:13 -07:00
default_variants +wxwidgets32
} else {
default_variants +wxgtk30
}
}
2024-10-26 16:37:56 -07:00
notes {
for information about how to configure the spellchecker module\
please see https://trac.macports.org/ticket/71176
}
2022-09-08 09:30:13 -07:00
livecheck.type none