mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 21:30:08 +02:00
* codeblocks: new recipe * codeblocks, disable for all architectures --------- Co-authored-by: Schrijvers Luc <begasus@gmail.com>
150 lines
4.9 KiB
Bash
150 lines
4.9 KiB
Bash
SUMMARY="A open source, cross platform, free C, C++ and Fortran IDE"
|
|
DESCRIPTION="Code::Blocks is a free C, C++ and Fortran IDE built to meet the most demanding \
|
|
needs of its users. It is designed to be very extensible and fully configurable. \
|
|
Finally, an IDE with all the features you need, having a consistent look, feel \
|
|
and operation across platforms. \
|
|
Built around a plugin framework, Code::Blocks can be extended with plugins. \
|
|
Any kind of functionality can be added by installing/coding a plugin. \
|
|
For instance, compiling and debugging functionality is already provided by plugins!"
|
|
HOMEPAGE="https://codeblocks.org"
|
|
COPYRIGHT="2020 The Code::Blocks team"
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="1"
|
|
SOURCE_URI="http://sourceforge.net/projects/codeblocks/files/Sources/$portVersion/codeblocks-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="15eeb3e28aea054e1f38b0c7f4671b4d4d1116fd05f63c07aa95a91db89eaac5"
|
|
SOURCE_DIR="codeblocks-$portVersion"
|
|
PATCHES="codeblocks-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="?all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="?x86"
|
|
|
|
PROVIDES="
|
|
codeblocks$secondaryArchSuffix = $portVersion
|
|
app:CodeBlocks$secondaryArchSuffix = $portVersion
|
|
cmd:cb_console_runner$secondaryArchSuffix = $portVersion
|
|
cmd:cb_share_config$secondaryArchSuffix = $portVersion
|
|
cmd:codeblocks$secondaryArchSuffix = $portVersion
|
|
lib:libcodeblocks$secondaryArchSuffix = $portVersion
|
|
lib:codeblocks$secondaryArchSuffix = 0.0.0
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libcairo$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libpng16$secondaryArchSuffix
|
|
lib:libQt5Concurrent$secondaryArchSuffix
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
lib:libQt5Designer$secondaryArchSuffix
|
|
lib:libQt5DesignerComponents$secondaryArchSuffix
|
|
lib:libQt5Gui$secondaryArchSuffix
|
|
lib:libQt5Help$secondaryArchSuffix
|
|
lib:libQt5Network$secondaryArchSuffix
|
|
lib:libQt5PrintSupport$secondaryArchSuffix
|
|
lib:libQt5Qml$secondaryArchSuffix
|
|
lib:libQt5Quick$secondaryArchSuffix
|
|
lib:libQt5QuickWidgets$secondaryArchSuffix
|
|
lib:libQt5Script$secondaryArchSuffix
|
|
lib:libQt5Sql$secondaryArchSuffix
|
|
lib:libQt5Svg$secondaryArchSuffix
|
|
lib:libQt5Widgets$secondaryArchSuffix
|
|
lib:libQt5Xml$secondaryArchSuffix
|
|
lib:libtiff$secondaryArchSuffix
|
|
lib:libwx_baseu_3.1$secondaryArchSuffix
|
|
lib:libwx_baseu_net_3.1$secondaryArchSuffix
|
|
lib:libwx_baseu_xml_3.1$secondaryArchSuffix
|
|
lib:libwx_qtu_adv_3.1$secondaryArchSuffix
|
|
lib:libwx_qtu_aui_3.1$secondaryArchSuffix
|
|
lib:libwx_qtu_core_3.1$secondaryArchSuffix
|
|
lib:libwx_qtu_html_3.1$secondaryArchSuffix
|
|
lib:libwx_qtu_media_3.1$secondaryArchSuffix
|
|
lib:libwx_qtu_propgrid_3.1$secondaryArchSuffix
|
|
lib:libwx_qtu_qa_3.1$secondaryArchSuffix
|
|
lib:libwx_qtu_ribbon_3.1$secondaryArchSuffix
|
|
lib:libwx_qtu_richtext_3.1$secondaryArchSuffix
|
|
lib:libwx_qtu_stc_3.1$secondaryArchSuffix
|
|
lib:libwx_qtu_xrc_3.1$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
codeblocks${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libcodeblocks$secondaryArchSuffix = $portVersion compat >= 1
|
|
"
|
|
REQUIRES_devel="
|
|
codeblocks$secondaryArchSuffix == $portVersion base
|
|
devel:libcodeblocks$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libcairo$secondaryArchSuffix
|
|
devel:libjpeg$secondaryArchSuffix
|
|
devel:libGL$secondaryArchSuffix
|
|
devel:liblzma$secondaryArchSuffix
|
|
devel:libQt5Concurrent$secondaryArchSuffix
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
devel:libQt5Designer$secondaryArchSuffix
|
|
devel:libQt5DesignerComponents$secondaryArchSuffix
|
|
devel:libQt5Gui$secondaryArchSuffix
|
|
devel:libQt5Help$secondaryArchSuffix
|
|
devel:libQt5Network$secondaryArchSuffix
|
|
devel:libQt5PrintSupport$secondaryArchSuffix
|
|
devel:libQt5Qml$secondaryArchSuffix
|
|
devel:libQt5Quick$secondaryArchSuffix
|
|
devel:libQt5QuickWidgets$secondaryArchSuffix
|
|
devel:libQt5Script$secondaryArchSuffix
|
|
devel:libQt5Sql$secondaryArchSuffix
|
|
devel:libQt5Svg$secondaryArchSuffix
|
|
devel:libQt5Widgets$secondaryArchSuffix
|
|
devel:libQt5Xml$secondaryArchSuffix
|
|
devel:libpng16$secondaryArchSuffix
|
|
devel:libtiff$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
wxqt${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:automake
|
|
cmd:autoconf
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:m4
|
|
cmd:make
|
|
cmd:python2
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:which
|
|
cmd:zip
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
libtoolize -fci
|
|
|
|
aclocal -I m4
|
|
|
|
automake --add-missing --force-missing
|
|
|
|
runConfigure ./configure --enable-compiler=yes \
|
|
--enable-debugger=yes --prefix=$prefix \
|
|
--libdir=$libDir --mandir=$manDir/man1 \
|
|
--bindir=$binDir --datadir=$dataDir \
|
|
--with-contrib-plugins=`yes,-DoxyBlocks,-keybinder,-dragscroll,-FileManager,-NassiShneiderman,-spellchecker,-wxsmith,-wxsmithcontrib,-wxcontrib,-wxsmithaui`
|
|
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
mkdir -p $appsDir
|
|
|
|
ln -s $prefix/bin/codeblocks $appsDir/CodeBlocks
|
|
addAppDeskbarSymlink $appsDir/CodeBlocks
|
|
|
|
prepareInstalledDevelLib libcodeblocks
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|