wok-current view codeblocks/receipt @ rev 24542

updated fcron (3.2.1 -> 3.3.1)
author Hans-G?nter Theisgen
date Thu Feb 24 14:25:23 2022 +0100 (2022-02-24)
parents fa74795599b1
children
line source
1 # SliTaz package receipt.
3 PACKAGE="codeblocks"
4 VERSION="17.12"
5 CATEGORY="development"
6 TAGS="IDE"
7 SHORT_DESC="An open source, cross platform, free C++ IDE."
8 MAINTAINER="stefanossofroniou542@gmail.com"
9 LICENSE="GPL3"
10 WEB_SITE="http://www.codeblocks.org/"
12 TARBALL="${PACKAGE}_$VERSION.tar.xz"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 DEPENDS="gamin gcc49-lib-base hunspell wxWidgets"
16 BUILD_DEPENDS="autoconf automake expat-dev fontconfig-dev gamin-dev gcc49
17 gcc49-lib-base gnome-icon-theme hunspell-dev libboost-dev libtool
18 wxWidgets-dev xorg-libXau-dev xorg-libXdmcp-dev zip"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://sourceforge.net/projects/codeblocks/files/Sources/ 2>/dev/null | \
24 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
25 sed '/scope="row/!d;s|.*/Sources/||;s|/.*||;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
32 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lstdc++"
34 # before 10.05
35 # busybox patch -p1 -i $stuff/glib.u
37 # --with-boost=no does not work
38 # because(?) plugin NassiShneiderman/CParser needs libboost-dev
40 ./configure \
41 CC=gcc-49 \
42 CXX=g++-49 \
43 --with-boost-libdir=/usr/lib \
44 --with-contrib-plugins="all, -help" \
45 --prefix=/usr \
46 $CONFIGURE_ARGS &&
47 make $MAKEFLAGS &&
48 make DESTDIR=$DESTDIR install
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 mkdir -p $fs/usr/lib
55 mkdir -p $fs/usr/share
57 cp -a $install/usr/include $fs/usr
58 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
59 cp -a $install/usr/lib/*.so* $fs/usr/lib
60 cp -a $install/usr/lib/*.*a $fs/usr/lib
61 cp -a $install/usr/lib/codeblocks $fs/usr/lib
62 cp -a $install/usr/share/codeblocks $fs/usr/share
63 cp -a $install/usr/bin $fs/usr
65 # Remove plugin that load fail error on start.
66 rm $fs/usr/lib/codeblocks/plugins/libNassiShneiderman.*
67 }